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

23 lines
471 B
PHP
Raw Normal View History

2019-09-10 06:27:33 +02:00
<?php
global $property;
if ( ! $property->get_block_setting( 'video' ) ) {
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>