<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * Please see /external/default-utilities.php for info on Default_Utilities::get_template_parts()
 *
 * @package 	WordPress
 * @subpackage 	Default
 * @since 		Default 4.0
 * Template name: Main Content
 */
?>

<?php Default_Utilities::get_template_parts( array( 'parts/shared/html-header', 'parts/shared/header' ) ); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<section id="page-banner">
	<img src="<?php echo get_field('page_banner')['url']; ?>">
		<h1><?php the_title(); ?></h1>
</section>
<section id="main-content">
	<div class="container">
		<div class="row">
			<div class="col-md-8 offset-md-2">
				<?php the_content(); ?>
			</div>
		</div>		
	</div>
</section>
<?php endwhile; ?>
<?php Default_Utilities::get_template_parts( array( 'parts/shared/footer','parts/shared/html-footer' ) ); ?>
