public
Description:
Homepage:
Clone URL: git://github.com/ma38su/wp.vicuna.ext.git
wp.vicuna.ext / index.php
100644 67 lines (62 sloc) 2.922 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php get_header();
$css = get_vicuna_css('index');
?>
<link rel="stylesheet" type="text/css" href="<?php echo $css; ?>" />
<title><?php bloginfo('name'); ?></title>
</head>
<body class="mainIndex <?php vicuna_layout('index'); ?>">
<div id="header">
<p class="siteName"><a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a></p>
<?php vicuna_description(); ?>
<?php vicuna_global_navigation() ?>
</div>
 
<div id="content">
<div id="main">
<p class="topicPath"><a href="<?php bloginfo('home'); ?>" title="<?php _e('Home', 'vicuna'); ?>"><?php _e('Home', 'vicuna'); ?></a></p>
<h1><?php bloginfo('name'); ?></h1>
<?php
if (have_posts()) :
while (have_posts()) {
the_post();
$title = get_the_title();
?>
 
<div class="section entry" id="entry<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>"><?php echo $title; ?></a></h2>
<ul class="info">
<li class="date"><?php the_time(__('Y-m-d (D)', 'vicuna')) ?></li>
<li class="category"><?php the_category(' | ') ?></li>
<?php if (function_exists('the_tags')) : the_tags('<li class="tags">', ' | ', '</li>'); endif; ?>
<?php do_action("entry_info"); ?>
<?php edit_post_link(__('Edit', 'vicuna'), '<li class="admin">', '</li>'); ?>
</ul>
<div class="textBody">
<?php the_content(__('Continue reading', 'vicuna')); ?>
</div>
<ul class="reaction">
<?php
$trackpingCount = get_vicuna_pings_count();
$commentCount = (int) get_comments_number() - (int) $trackpingCount;
if ($commentCount > 0 || 'open' == $post->comment_status) : ?>
<li class="comment"><a href="<?php the_permalink() ?>#comments" title="<?php printf(__('Comments on %s', 'vicuna'), $title); ?>" rel="nofollow"><?php if ('open' == $post->comment_status) : _e('Comments', 'vicuna'); else : _e('Comments (Close)', 'vicuna'); endif; ?></a>: <span class="count"><?php echo $commentCount; ?></span></li>
<?php else : ?>
<li><?php _e('Comments (Close)', 'vicuna'); ?>: <span class="count"><?php echo $commentCount; ?></span></li>
<?php
endif;
if ($trackpingCount > 0 || 'open' == $post->ping_status) :
?>
<li class="trackback"><a href="<?php the_permalink() ?>#trackback" title="<?php printf(__('Trackbacks to %s', 'vicuna'), $title); ?>" rel="nofollow"><?php if ('open' == $post->ping_status) : _e('Trackbacks', 'vicuna'); else : _e('Trackbacks (Close)', 'vicuna'); endif; ?></a>: <span class="count"><?php echo $trackpingCount; ?></span></li>
<?php else : ?>
<li><?php _e('Trackbacks (Close)', 'vicuna'); ?>: <span class="count"><?php echo $trackpingCount; ?></span></li>
<?php endif ?>
<?php do_action("entry_reaction"); ?>
</ul>
</div>
<?php
}
endif;
?>
<?php do_action('entries_footer'); ?>
<p class="topicPath"><a href="<?php bloginfo('home'); ?>" title="<?php _e('Home', 'vicuna'); ?>"><?php _e('Home', 'vicuna'); ?></a></p>
</div><!-- end main-->
 
<?php get_sidebar(); ?>
 
<?php get_footer(); ?>