PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/antonkerr/public_html/car/wp-content/themes/BookYourTravel/ |
| Server: Linux premium47.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 IP: 68.65.123.244 |
| Dir : /home/antonkerr/public_html/car/wp-content/themes/BookYourTravel/single-location.php |
<?php
/**
* The template for displaying single locations
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage BookYourTravel
* @since 1.0
* @version 8.00
*/
global $bookyourtravel_theme_globals;
get_header();
get_template_part('byt', 'header');
BookYourTravel_Theme_Controls::the_breadcrumbs();
get_sidebar('under-header');
$page_sidebar_positioning = $bookyourtravel_theme_globals->get_location_single_sidebar_position();
$section_class = BookYourTravel_Theme_Utils::get_page_section_class($page_sidebar_positioning);
if ( have_posts() ) while ( have_posts() ) : the_post();
global $post;
$has_featured_image = false;
$displayed_featured_element = get_post_meta($post->ID, $post->post_type . '_displayed_featured_element', true);
if ($displayed_featured_element == 'image' && has_post_thumbnail($post->ID)) {
$has_featured_image = true;
}
?>
<div class="row">
<?php
if ($page_sidebar_positioning == 'left' || $page_sidebar_positioning == 'both') {
get_sidebar('left');
}
?>
<section class="<?php echo esc_attr($section_class); ?> section-location-content">
<?php if (empty($page_sidebar_positioning) && !$has_featured_image) { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>
<?php do_action('bookyourtravel_before_single_location_content'); ?>
<?php get_template_part('includes/parts/location/single/single', 'content'); ?>
<?php do_action('bookyourtravel_after_single_location_content'); ?>
</section>
<?php
wp_reset_postdata();
wp_reset_query();
if ($page_sidebar_positioning == 'right' || $page_sidebar_positioning == 'both') {
get_sidebar('right');
}
?>
</div>
<?php
endwhile;
get_template_part('byt', 'footer');
get_footer();