<?php
/**
 * The template for displaying archive pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package ultimate_hotel_booking
 */

get_header();
$ultimate_hotel_booking_prefix = 'travelfic_customizer_settings_';
$ultimate_hotel_booking_sidebar = get_theme_mod($ultimate_hotel_booking_prefix.'archive_sidebar', 'right');

if( $ultimate_hotel_booking_sidebar == 'none' ){  
	$ultimate_hotel_booking_content_wrap_class = 'ultimate-hotel-booking-no-sidebar';
} elseif($ultimate_hotel_booking_sidebar == 'left'){ 
	$ultimate_hotel_booking_content_wrap_class = 'ultimate-hotel-booking-left-sidebar';
}elseif($ultimate_hotel_booking_sidebar == 'right'){
	$ultimate_hotel_booking_content_wrap_class = 'ultimate-hotel-booking-right-sidebar';
}else{
	$ultimate_hotel_booking_content_wrap_class = 'ultimate-hotel-booking-right-sidebar';
}

?>
<div id="site-content" class="ultimate-hotel-booking-site-content ultimate-hotel-booking-single-post ultimate-hotel-booking-customizer-typography">
	<div class="tf-page-header">
		<?php ultimate_hotel_booking_archive_page_banner(); ?>
	</div>
	<div class="<?php echo esc_attr( apply_filters( 'ultimate_hotel_booking_page_tftcontainer', $ultimate_hotel_booking_container = '') ); ?> <?php echo esc_attr( $ultimate_hotel_booking_content_wrap_class ); ?>">
		<?php get_template_part('template-parts/archive', 'list'); ?>
		<?php         
			if( $ultimate_hotel_booking_sidebar != 'none'){
				get_sidebar();						
			} 
		?>
	</div>
</div>

<?php

get_footer();
