<?php
/**
 * The default page template
 * @package ninja
 */

get_header(); ?>

<div id="primary" class="content-area">

	<main id="main" class="site-main" role="main">

	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

		<div id="container">
			<?php 
	          if ( has_post_thumbnail() ) {
	          	$featured_image_url = get_the_post_thumbnail_url( get_the_ID(), 'full' );
	            echo '<div class="page-featured-banner" style="background-image:url('.$featured_image_url.')">
	            <div class="container"><h1>'.get_the_title().'</h1></div></div>';
	          } 
	        ?>

	        <?php do_action('ninja_breadcrumbs'); ?>

			<div class="content">
				<?php the_content(); ?>
			</div><!-- .content -->
		</div><!-- #container -->

	<?php endwhile; else : ?>
		<p><?php _e( 'Sorry, there is nothing here. Perhaps searching might help.' ); ?></p>
		<?php get_search_form(); ?>
	<?php endif; ?>

	</main><!-- #main -->
</div><!-- #primary -->

<?php get_footer(); ?>