<?php
/**
 * The template for displaying all page
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-page
 * @since WP Deep Blue 1.0
 */
get_header(); 

$cls = wp_deep_blue_has_sidebar() ? 'col-md-8 col-lg-8' : 'col-12'; 
get_template_part( 'template-parts/content', 'banner' );
?> 
<div class="container">
	<main id="site-content" role="main">
		<div class="row">
			<div class="<?php echo esc_attr( $cls ); ?>">
				<div id="primary" class="content-area">
					<?php if ( have_posts() ): ?>
						<?php
							while ( have_posts() ){
								the_post(); 
								get_template_part( 'template-parts/content', 'single' );
							}
						?>
					<?php endif; ?>
				</div>
			</div>
			<?php if( wp_deep_blue_has_sidebar() ): ?>
				<div class="col-md-4 col-lg-4">
					<?php get_sidebar(); ?>
				</div>
			<?php endif; ?>
		</div>
	</main><!-- .site-main -->
</div>	
<?php get_footer() ?>