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

use EstatebudConnect\Utilities\Helper; ?>
<?php get_header(); ?>
<div class="estatebud-listing-wrapper">
    <?php Helper::render_markup_from_views('Public/partials/listing/header.php', [
        'listing' => $listing,
        'settings_data' => $settings_data,
        'listing_settings' => $listing_settings,
    ]); ?>
    <?php Helper::render_markup_from_views('Public/partials/listing/body.php', [
        'listing' => $listing,
        'whois' => $whois,
        'settings_data' => $settings_data,
        'listing_settings' => $listing_settings,
    ]); ?>
    <?php if ($listing_type === 'property' && $is_similar_listing_enable): ?>
        <?php Helper::render_markup_from_views('Public/partials/listing/footer.php', ['listing' => $listing]); ?>
    <?php endif; ?>
</div>
<?php get_footer(); ?>
