<?php get_header(); ?>
<?php $options = get_option('pb_options'); ?>
<div id="middle-contents" class="clearfix">
<?php $wp_query->query('cat='.$options['news_post_id'].'&paged='.$paged); ?>
<div id="left-col">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<ul class="post-info">
<li><?php the_time('F jS, Y') ?></li>
<?php if ($options['author']) : ?><li>By <?php the_author_posts_link(); ?></li><?php endif; ?>
<li class="write-comment"><a href="<?php the_permalink() ?>#comments">Write comment</a></li>
<li class="post-edit"><?php edit_post_link('[ EDIT ]', '', '' ); ?></li>
</ul>
<div class="post-content">
<?php the_content('Read more'); ?>
<div class="clear"></div>
<?php wp_link_pages(); ?>
</div>
</div>
<div class="post-meta">
<ul class="clearfix">
<li class="post-category"> <?php the_tags('<li class="post-tag">', ' . ', '</li>'); ?></li>
<li class="post-comment"><?php comments_popup_link('Write comment', '1 comment', '% comments'); ?></li>
</ul>
</div>
<?php endwhile; ?>
<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { include('navigation.php'); } ?>
<?php else: ?>
<div class="common-navi-wrapper">
<p>Sorry nothing found</p>
</div>
<?php endif; ?>
</div><!-- #left-col end -->
<?php get_sidebar('blog'); ?>
</div><!-- #middle-contents end -->
<?php get_footer(); ?>