<?php /* Template Name: Page No Builder

*/ ?> 
<?php get_template_part('header');?>
  <body <?php body_class();?>>
 	<?php get_template_part('topbar');?>
    <?php get_template_part('logoarea');?>
    <div class="wrapper green-content">
    	<div class="container">
        	<div class="content-heading white">
    			<h2><?php the_title();?></h2>
            </div>
        </div>
    </div>
    <div class="wrapper" id="maincontent">
    <div class="container">
    <div class="row">
   <?php while ( have_posts() ) : the_post();?>
 		<div class="col-sm-<?php if ( is_active_sidebar(2) ){ ?>9<?php }else{?>12<?php }?>">
 		 <?php the_content();?>
         <?php wp_link_pages(); ?>
         </div>
  <?php endwhile;?>
  				<?php if ( is_active_sidebar(2) ){ ?>
                 <div class="col-sm-3 sidebar">
                	<div class="post-sidebar">
                    	<div class<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('page-sidebar') ) : ?><?php endif;?>
                    </div>
                 </div>
                 <?php }?>
    </div>
  </div>
  </div>
 <?php get_template_part('footer');?>