<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content-top">
<div id="roundc-tl">
<div id="roundc-tr">
</div>
</div>
</div>
<div id="content-container">
<div id="content-area">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="theposts">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?><?php if(is_sticky()) { echo " [Sticky]";} ?></a></h2>
<div class="postinfo">
<span class="theauthor">By <?php the_author_posts_link(); ?></span>
<span class="subdate">On <?php the_time('F j, Y'); ?></span>
<span class="catag">Under <?php the_category(', '); ?></span>
</div>
<div class="edit-comm">
<span class="editentry"><?php edit_post_link('(Edit)', '', ''); ?></span>
<span class="commresponse"><a href="<?php the_permalink() ?>#respond">Response</a></span>
</div>
<?php the_content('Read the rest of this entry »'); ?>
<p>
<?php
wp_link_pages('before=&after=&next_or_number=next&previouspagelink=previous&nextpagelink= ');
wp_link_pages('before=&after=&next_or_number=number');
echo " ";
wp_link_pages('before=&after=&next_or_number=next&previouspagelink= &nextpagelink=next');
?>
</p>
<p><?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></p>
<span class="postag">Tags: <?php the_tags('') ?></span>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
<div><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
<div class="bottom-paging">
<span class="pagingnavright"> <?php next_posts_link() ?></span>
<span class="pagingnavleft"> <?php previous_posts_link() ?></span>
</div>
</div>
</div>
<?php get_footer(); ?>