-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag.php
18 lines (18 loc) · 1.22 KB
/
tag.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php include 'header.php'; ?>
<h3 class="page_title">Posts tagged with <em><?php echo $tag; ?></em></h3>
<?php foreach ( $posts as $post ) { ?>
<div class="post<?php if($post->status == Post::status('draft')) { echo ' draft'; } ?>" id="post-<?php echo $post->id; ?>">
<p class="post_date"><span><?php $post->pubdate->out(); ?> | <strong><?php echo $post->author->displayname; ?></strong></span></p>
<h2 class="post_title"><a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a></h2>
<div class="post_content">
<?php echo $post->content_out; ?>
</div>
<p class="post_meta"><span><?php if ( count( $post->tags ) ) { ?>Tags: <?php echo $post->tags_out; ?> | <?php } ?><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?>
<?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span></p>
</div>
<?php } ?>
<div class="page_navigation">
<p><?php $theme->prev_page_link(); ?> <?php $theme->page_selector( null, array( 'leftSide' => 2, 'rightSide' => 2 ) ); ?> <?php $theme->next_page_link(); ?></p>
</div>
<?php include 'sidebar.php'; ?>
<?php include 'footer.php'; ?>