<?php
/**
 * Displays featured image header
 *
 * @package House Roofing
 */
?>

<div class="featured-header-image">
    <img src="<?php
    $house_roofing_banner_image = get_the_post_thumbnail_url();

    if ( empty( $house_roofing_banner_image ) ) {
        $house_roofing_banner_image = get_template_directory_uri() . '/assets/img/banner-img.png';
    }
    ?>">
    <div class="inner-banner" style="background-image: url('<?php echo esc_url( $house_roofing_banner_image ); ?>');">
        <header class="entry-header centered">
            <?php the_title('<h1 class="entry-title">', '</h1>'); ?>
        </header>
    </div>
</div>