<?php
if (!defined('WPINC')) {
    die();
}

use EstatebudConnect\Utilities\Helper; ?>
<?php get_header(); ?>
<div class="estatebud-listing-wrapper" data-listing-id="<?php echo esc_attr($listing->get_id()); ?>" data-listing-type="<?php echo esc_attr($listing_type); ?>">
    <?php Helper::render_markup_from_views('Public/Listing/sections/header.php', [
        'listing' => $listing,
        'settings_data' => $settings_data,
        'listing_settings' => $listing_settings,
    ]); ?>
    <?php Helper::render_markup_from_views('Public/Listing/sections/body.php', [
        'listing' => $listing,
        'whois' => $whois,
        'settings_data' => $settings_data,
        'listing_settings' => $listing_settings,
    ]); ?>
    <?php if ($listing_settings['similar_properties'] === true && $listing_type === 'property'): ?>
        <?php Helper::render_markup_from_views('Public/Listing/sections/footer.php', ['listing' => $listing]); ?>
    <?php endif; ?>
</div>
<?php get_footer(); ?>
