/
pageless.php
20 lines (20 loc) · 1.28 KB
/
pageless.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php foreach ($posts as $post) { ?>
<div id="entry-<?php echo $post->slug; ?>" class="hentry entry <?php echo $post->statusname , ' ' , $post->tags_class; ?>">
<div class="entry-head">
<div class="entry-date"><abbr class="published" title="<?php echo $post->pubdate->out(HabariDateTime::ISO8601); ?>"><?php echo $post->pubdate->out('Y • m • d'); ?></abbr></div>
<br class="clear" />
<h2 class="entry-title"><a href="<?php echo $post->permalink; ?>" title="<?php echo strip_tags($post->title_out); ?>" rel="bookmark"><?php echo $post->title_out; ?></a></h2>
<br class="clear" />
<span class="comments-link"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post', 'demorgan'); ?>"><?php echo $post->comments->approved->count; ?> <?php _ne('Comment', 'Comments', $post->comments->approved->count, 'demorgan'); ?></a></span>
<?php if (is_array($post->tags)) { ?>
<span class="entry-tags"><?php echo $post->tags_out; ?></span>
<?php } ?>
<?php if ($loggedin) { ?>
<span class="entry-edit"><a href="<?php echo $post->editlink; ?>" title="<?php _e('Edit post', 'demorgan'); ?>"><?php _e('Edit', 'demorgan'); ?></a></span>
<?php } ?>
</div>
<div class="entry-content">
<?php echo $post->content_out; ?>
</div>
</div>
<?php } ?>