PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-dev2
Elementor Website Builder – more than just a page builder v4.0.0-dev2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/elements/section.php +2 -2 4.2.0-dev24.0.0-dev2 View file →
@@ -1479,9 +1479,9 @@
1479 1479 ?> <?php $this->print_render_attribute_string( '_wrapper' ); ?>>
1480 1480 <?php
1481 1481 if ( 'video' === $settings['background_background'] ) :
1482 1482 if ( $settings['background_video_link'] ) :
1483 - $is_embed_video = Embed::is_embed_video( $settings['background_video_link'] );
1483 + $video_properties = Embed::get_video_properties( $settings['background_video_link'] );
1484 1484
1485 1485 $this->add_render_attribute(
1486 1486 'background-video-container',
1487 1487 [
@@ -1493,9 +1493,9 @@
1493 1493 $this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-mobile' );
1494 1494 }
1495 1495 ?>
1496 1496 <div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>>
1497 - <?php if ( $is_embed_video ) : ?>
1497 + <?php if ( $video_properties ) : ?>
1498 1498 <div class="elementor-background-video-embed" role="presentation"></div>
1499 1499 <?php
1500 1500 else :
1501 1501 $video_tag_attributes = 'autoplay muted playsinline';