<?php get_header(); ?>
	<?php while ( have_posts() ) : the_post(); ?>
	<?php if(has_post_thumbnail()){ 
		$id = get_post_thumbnail_id( get_the_ID()  ); 
        $url = wp_get_attachment_image_url($id, 'large'); } 
        else { $url = get_bloginfo('template_url').'/img/hero-image.jpg'; } ?>
    <header id="header" style="background-image:url(<?php echo $url; ?>);">
        <div class="header-info">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-xs-12 col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
                        <h1><?php the_title(); ?></h1>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-12 col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
                <div class="content">
                        <?php the_content(); ?>
                </div>
            </div>
        </div>
    </div>

		<?php endwhile; // end of the loop. ?>


<?php get_footer(); ?>