<?php get_header(); ?>
<div id="wrap">
     <div id="content">
          <div id="contentleft">
                   <div class = "page">
               <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
               <h1><?php the_title(); ?></h1>
               <?php the_content(__('Read more'));?>
               <?php endwhile; else: ?>
               <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
          </div> <!-- end page div -->
     
               <p><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></p>
          </div> <!-- end contentleft div -->
     <?php include(TEMPLATEPATH."/r_sidebar.php");?>
     </div> <!-- end content div -->
   <div style="clear:both;"></div>
</div> <!-- end wrap div -->
<?php get_footer(); ?>