Opal-Estate-Pro/templates/single-property/preview/virtualtour.php
2019-09-10 11:27:33 +07:00

16 lines
411 B
PHP
Executable File

<?php
global $property;
$virtualTour = $property->get_virtual_tour();
?>
<?php if( $virtualTour ) : ?>
<div class="property-preview property-preview-custom-size">
<?php echo do_shortcode( $virtualTour ); ?>
</div>
<?php else : ?>
<?php if ( has_post_thumbnail() ): ?>
<div class="property-thumbnail">
<?php the_post_thumbnail( 'full' ); ?>
</div>
<?php endif; ?>
<?php endif; ?>