Add hide virtual tour setting.

This commit is contained in:
Hoang Huu
2019-09-26 15:43:47 +07:00
parent ab83165eb7
commit 7630299415
5 changed files with 37 additions and 11 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; ?>