-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentry.single.php
28 lines (28 loc) · 1.65 KB
/
entry.single.php
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
<?php include 'header.php'; ?>
<div id="content">
<div id="post-<?php echo $post->id; ?>" class="<?php echo $post->statusname; ?> post">
<h2 class="title"><a href="<?php echo $post->permalink; ?>" rel="bookmark" title="Permanent Link to <?php echo $post->title_out; ?>"><?php echo $post->title_out; ?></a></h2>
<div class="entry">
<?php echo $post->content_out; ?>
</div>
<p class="meta">
<?php echo $post->pubdate_out; ?> <?php if ( ! $post->info->comments_disabled ) { ?> | <a href="<?php echo $post->permalink; ?>#comments" title="Comments on this post"><?php echo $post->comments->approved->count; ?> <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a><?php } ?><?php if ( $user->loggedin ) { ?> | <a href="<?php URL::out( 'admin', 'page=publish&id=' . $post->id); ?>" title="Edit post">Edit</a><?php } ?><br>
<?php if ( count($post->tags) ) { ?> Tagged: <?php echo $post->tags_out; ?><?php } ?>
</p>
<div id="comments">
<?php include 'comments.php'; ?>
</div>
</div>
<div class="paging">
<?php if ( $previous= $post->descend() ): ?>
« <a href="<?php echo $previous->permalink; ?>" title="<?php echo _t('View') . ' ' . $previous->title_out; ?>"><?php echo $previous->title_out; ?></a>
<?php endif; ?>
<?php if ( $next= $post->ascend() && $previous= $post->descend() ): ?>
—
<?php endif; ?>
<?php if ( $next= $post->ascend() ): ?>
<a href="<?php echo $next->permalink; ?>" title="<?php echo _t('View') . ' ' . $next->title_out; ?>"><?php echo $next->title_out; ?></a> »
<?php endif; ?>
</div>
</div>
<?php include 'footer.php'; ?>