Opal-Estate-Pro/templates/single-property/virtualtour.php

23 lines
518 B
PHP
Raw Normal View History

2019-09-10 06:27:33 +02:00
<?php
global $property;
2019-10-03 05:13:19 +02:00
if ( 'on' !== $property->get_block_setting( 'virtual_tour' ) ) {
2019-09-26 10:43:47 +02:00
return;
}
$virtual_tour = $property->get_virtual_tour();
if ( ! $virtual_tour ) {
return;
}
2019-09-10 06:27:33 +02:00
?>
2019-09-26 10:43:47 +02:00
2019-09-10 06:27:33 +02:00
<div class="opalestate-box-content property-360-virtual-session">
2019-09-26 10:43:47 +02:00
<h4 class="outbox-title" id="block-tour360"><?php esc_html_e( '360° Virtual Tour', 'opalestate-pro' ); ?></h4>
2019-09-10 06:27:33 +02:00
<div class=" opalestate-box">
<div class="box-info">
2019-09-26 10:43:47 +02:00
<?php echo do_shortcode( $virtual_tour ); ?>
2019-09-10 06:27:33 +02:00
</div>
</div>
</div>