florianfiegel / Clean-Home

Port of the WordPress-Theme "Clean Home" for Habari

Clean-Home / multiple.php
100644 27 lines (21 sloc) 1.268 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
<?php include 'header.php'; ?>
 
<div id="content">
 
<?php $posts = (array) $posts; ?>
<?php if ( sizeof( $posts ) ): ?>
<?php $post =reset($posts); ?>
<div class="post">
<h1><a href="<?php echo $post->permalink; ?>"><?php echo $post->title; ?></a></h1>
<small><b>Posted:</b> <?php $post->pubdate->out(); ?> | <b>Author:</b> <?php $post->author->displayname; ?> <?php if ( is_array( $post->tags ) ) : ?>| <b>Tags:</b> <?php echo $post->tags_out; endif; ?> <?php if ( $loggedin ) : ?> | <b>Modify:</b> <a href="<?php echo $post->editlink; ?>">EDIT</a> <?php endif; ?>| <a href="<?php echo $post->permalink.'#comment-form'; ?>" title="<?php _e( "Comments on this post" ); ?>"><?php $theme->post_comments_link( $post, _t('No Comments'), _t('%s Comment'), _t('%s Comments') ); ?></a></small>
<?php echo $post->content_out; ?>
<hr/>
</div>
<div class="navigation">
<div class="alignleft"><?php $theme->next_page_link( _t('Older Posts') ); ?></div>
<div class="alignright"><?php $theme->prev_page_link( _t('Newer Posts') ); ?></div>
</div>
<?php else: ?>
<p class="noposts prompt"><?php _e( "No posts published, yet." ); ?></p>
<?php endif; ?>
 
</div>
<?php include 'sidebar.php' ?>
 
<?php include 'footer.php'; ?>