This commit is contained in:
Lieu Le
2019-09-27 13:57:08 +07:00
parent 251eaf8ac5
commit 1815efd104
15 changed files with 213 additions and 106 deletions

View File

@@ -5,15 +5,18 @@ if ( ! $property->get_block_setting( 'video' ) ) {
return;
}
$videoURL = $property->get_video_url();
$video_url = $property->get_video_url();
if ( ! $video_url ) {
return;
}
?>
<?php if ( $videoURL ) : ?>
<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">
<?php echo wp_oembed_get( $videoURL ); ?>
<?php echo wp_oembed_get( $video_url ); ?>
</div>
</div>
</div>
<?php endif; ?>