<?php get_header(); ?>

<section id="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();

	$show_banner = types_render_field('show-banner', array('raw'=>'true') );
?>
	
	<div class="index-section">

		<?php if ($show_banner) { get_template_part( 'entry', 'banner' ); } ?>

		<div class="page-content">
			<div class="row">

				<div class="col-xs-12">
					<div class="text-block">
						<h2><?php the_title(); ?></h2>
					</div>

					<div class="text-block">
						<?php the_content(); ?>
					</div>
				</div>

	    	</div>
    	</div>

	</div>

<?php endwhile; endif; ?>
</section>

<?php get_footer(); ?>