<?php
/**
 * Template Name: Full Width Image
 *
 * @link    https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package wpstream-theme
 */

get_header();
?>

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

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

				<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>

				<header class="entry-header featured-full-width-img height-75 bg-dark text-light mb-3" style="background-image: url('<?php echo esc_attr( $thumb['0'] ?? '' ); ?>')">

					<div class="<?php echo esc_attr( wpstream_theme_container_class() ); ?> entry-header h-100 d-flex align-items-end pb-3">

						<h1 class="entry-title"><?php the_title(); ?></h1>

					</div>

				</header>

				<div class="<?php echo esc_attr( wpstream_theme_container_class() ); ?> pb-5">

					<!-- Hook to add something nice -->
					<?php wpstream_bs_after_primary(); ?>

					<div class="entry-content">

						<?php the_content(); ?>

					</div>

					<footer class="entry-footer">

						<?php comments_template(); ?>

					</footer>

				</div>

			</main>

		</div>
	</div>

<?php
get_footer();