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( 'video' ) ) {
|
2019-09-10 06:27:33 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-09-26 10:43:47 +02:00
|
|
|
$video_url = $property->get_video_url();
|
|
|
|
|
|
|
|
if ( ! $video_url ) {
|
|
|
|
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-video-session">
|
|
|
|
<h4 class="outbox-title" id="block-video"><?php esc_html_e( 'Video', 'opalestate-pro' ); ?></h4>
|
|
|
|
<div class="opalestate-box">
|
|
|
|
<div class="box-info">
|
2019-09-26 10:43:47 +02:00
|
|
|
<?php echo wp_oembed_get( $video_url ); ?>
|
2019-09-10 06:27:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|