Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 96a913da4d
Fetching contributors…

Cannot retrieve contributors at this time

file 51 lines (39 sloc) 1.611 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
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<?php $theme->display ( 'header' ); ?>
<!-- tag -->
<div class="content">
<div id="primary">
<div id="primarycontent" class="hfeed">
<?php foreach ( $posts as $post ) { ?>
<div id="post-<?php echo $post->id; ?>" class="<?php echo $post->statusname; ?>">

<div class="entry-head">
<h3 class="entry-title"><a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a></h3>
<small class="entry-meta">
<span class="chronodata"><abbr class="published"><?php $post->pubdate->out(); ?></abbr></span> <?php if ( $show_author ) { ?> <?php _e( 'by %s', array( $post->author->displayname ), 'k2' ); } ?>
<?php echo $theme->comments_link($post); ?>
<?php if ( $loggedin ) { ?>
<span class="entry-edit"><a href="<?php echo $post->editlink; ?>" title="<?php _e('Edit post', 'k2'); ?>"><?php _e('Edit', 'k2'); ?></a></span>
<?php } ?>
<?php if ( count( $post->tags ) > 0 ) { ?>
<span class="entry-tags"><?php echo $post->tags_out; ?></span>
<?php } ?>
</small>
</div>

<div class="entry-content">
<?php echo $post->content_out; ?>

</div>

</div>
<?php } ?>
</div>

<div id="page-selector">
<?php echo $theme->prev_page_link(); ?> <?php echo $theme->page_selector( null, array( 'leftSide' => 2, 'rightSide' => 2 ) ); ?> <?php echo $theme->next_page_link(); ?>

</div>

</div>

<hr>

<div class="secondary">

<?php $theme->display ('sidebar' ); ?>

</div>

<div class="clear"></div>
</div>
<!-- /tag -->
<?php $theme->display ( 'footer' ); ?>
Something went wrong with that request. Please try again.