<?php
/**
 * Page Banner 
 */

$ultimate_hotel_booking_bannerImageUrl = get_template_directory_uri() . '/assets/img/page_header.jpg';


?>
<?php if ( class_exists( 'WooCommerce' ) &&  ( is_checkout() || is_cart() ) ) : ?>    
    <div class="tf-page-header-inner ultimate-hotel-booking-page-banner woo-page-header woocommerce_check">
        <div class="<?php echo esc_attr( apply_filters( 'ultimate_hotel_booking_page_tftcontainer', $ultimate_hotel_booking_container = '') ); ?>">
            <div class="ultimate-hotel-booking-page-banner">
                <?php 
                    the_title('<h1 class="entry-title">', '</h1>'); 
                ?>
            </div>
        </div>
    </div>
<?php else: ?>
    <div class="tf-page-header-inner ultimate-hotel-booking-page-banner" style="background-image:url('<?php echo esc_url( $ultimate_hotel_booking_bannerImageUrl ); ?>');">
        <div class="<?php echo esc_attr( apply_filters( 'ultimate_hotel_booking_page_tftcontainer', $ultimate_hotel_booking_container = '') ); ?>">
            <div class="ultimate-hotel-booking-page-banner">
                <?php 
                    the_title('<h1 class="entry-title">', '</h1>');
                ?>
                <?php 
                if( !empty($ultimate_hotel_booking_page_sub_title) ){
                ?>
                <p><?php echo esc_html( $ultimate_hotel_booking_page_sub_title ); ?></p>
                <?php } ?>
            </div>
        </div>
    </div>
<?php endif; ?>



