PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.1
Elementor Website Builder – more than just a page builder v3.34.1
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 +8 -6 4.2.43.34.1 View file →
@@ -1442,8 +1442,9 @@
1442 1442 view.addRenderAttribute(
1443 1443 'background-video-container',
1444 1444 {
1445 1445 'class': 'elementor-background-video-container',
1446 + 'aria-hidden': 'true',
1446 1447 }
1447 1448 );
1448 1449
1449 1450 if ( ! settings.background_play_on_mobile ) {
@@ -1450,10 +1451,10 @@
1450 1451 view.addRenderAttribute( 'background-video-container', 'class', 'elementor-hidden-mobile' );
1451 1452 }
1452 1453 #>
1453 1454 <div {{{ view.getRenderAttributeString( 'background-video-container' ) }}}>
1454 - <div class="elementor-background-video-embed" role="presentation"></div>
1455 - <video class="elementor-background-video-hosted" role="presentation" {{ videoAttributes }}></video>
1455 + <div class="elementor-background-video-embed"></div>
1456 + <video class="elementor-background-video-hosted" {{ videoAttributes }}></video>
1456 1457 </div>
1457 1458 <# } #>
1458 1459 <div class="elementor-background-overlay"></div>
1459 1460 <div class="elementor-shape elementor-shape-top" aria-hidden="true"></div>
@@ -1479,14 +1480,15 @@
1479 1480 ?> <?php $this->print_render_attribute_string( '_wrapper' ); ?>>
1480 1481 <?php
1481 1482 if ( 'video' === $settings['background_background'] ) :
1482 1483 if ( $settings['background_video_link'] ) :
1483 - $is_embed_video = Embed::is_embed_video( $settings['background_video_link'] );
1484 + $video_properties = Embed::get_video_properties( $settings['background_video_link'] );
1484 1485
1485 1486 $this->add_render_attribute(
1486 1487 'background-video-container',
1487 1488 [
1488 1489 'class' => 'elementor-background-video-container',
1490 + 'aria-hidden' => 'true',
1489 1491 ]
1490 1492 );
1491 1493
1492 1494 if ( ! $settings['background_play_on_mobile'] ) {
@@ -1493,10 +1495,10 @@
1493 1495 $this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-mobile' );
1494 1496 }
1495 1497 ?>
1496 1498 <div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>>
1497 - <?php if ( $is_embed_video ) : ?>
1498 - <div class="elementor-background-video-embed" role="presentation"></div>
1499 + <?php if ( $video_properties ) : ?>
1500 + <div class="elementor-background-video-embed"></div>
1499 1501 <?php
1500 1502 else :
1501 1503 $video_tag_attributes = 'autoplay muted playsinline';
1502 1504 if ( 'yes' !== $settings['background_play_once'] ) :
@@ -1502,9 +1504,9 @@
1502 1504 if ( 'yes' !== $settings['background_play_once'] ) :
1503 1505 $video_tag_attributes .= ' loop';
1504 1506 endif;
1505 1507 ?>
1506 - <video class="elementor-background-video-hosted" role="presentation" <?php
1508 + <video class="elementor-background-video-hosted" <?php
1507 1509 // PHPCS - the variable $video_tag_attributes is a plain string.
1508 1510 echo $video_tag_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1509 1511 ?>></video>
1510 1512 <?php endif; ?>