<?php get_header(); ?>
<div class="container-fluid posts-wrapper">
<div class="row-fluid"> 
<?php if(imwb_zonpress_get_option('pagesidebar') == '1' && is_active_sidebar("sidebar-page-widget")) { ?>
   <div id="post-sidebar" class="span4 content_sidebar left">
	   <?php dynamic_sidebar("sidebar-page-widget"); ?>
   </div>
<?php } ?>
<div class="<?php echo (imwb_zonpress_get_option('pagesidebar') == '0' || !is_active_sidebar("sidebar-page-widget")) ? 'span12' : 'span8';?> the-post the-page"> 
<?php while(have_posts()): the_post(); ?>

   <?php if(imwb_zonpress_get_option('hidepgtitle') == 'N') { ?>
   	<h1 class="title"><?php the_title(); ?></h1>
   <?php } ?>
   
   <div id="description">
   <?php the_content(); ?>
   </div>
   <?php if(imwb_zonpress_get_option('hidepgcomments') == 'N') { ?>	
   	<?php comments_template("", true); ?>
   <?php } ?>	

<?php endwhile;?>
</div>
<?php if(imwb_zonpress_get_option('pagesidebar') == '2' && is_active_sidebar("sidebar-page-widget")) { ?>
   <div id="post-sidebar" class="span4 content_sidebar right">
	   <?php dynamic_sidebar("sidebar-page-widget"); ?>
   </div>
<?php } ?>
</div>
</div>
<?php get_footer(); ?>
