| @@ -1186,10 +1186,10 @@ | ||
| 1186 | 1186 | [ |
| 1187 | 1187 | 'label' => esc_html__( 'Text Align', 'elementor' ), |
| 1188 | 1188 | 'type' => Controls_Manager::CHOOSE, |
| 1189 | 1189 | 'options' => [ |
| 1190 | - 'start' => [ | |
| 1191 | - 'title' => esc_html__( 'Start', 'elementor' ), | |
| 1190 | + 'left' => [ | |
| 1191 | + 'title' => esc_html__( 'Left', 'elementor' ), | |
| 1192 | 1192 | 'icon' => 'eicon-text-align-left', |
| 1193 | 1193 | ], |
| 1194 | 1194 | 'center' => [ |
| 1195 | 1195 | 'title' => esc_html__( 'Center', 'elementor' ), |
| @@ -1194,10 +1194,10 @@ | ||
| 1194 | 1194 | 'center' => [ |
| 1195 | 1195 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 1196 | 1196 | 'icon' => 'eicon-text-align-center', |
| 1197 | 1197 | ], |
| 1198 | - 'end' => [ | |
| 1199 | - 'title' => esc_html__( 'End', 'elementor' ), | |
| 1198 | + 'right' => [ | |
| 1199 | + 'title' => esc_html__( 'Right', 'elementor' ), | |
| 1200 | 1200 | 'icon' => 'eicon-text-align-right', |
| 1201 | 1201 | ], |
| 1202 | 1202 | 'justify' => [ |
| 1203 | 1203 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| @@ -1203,13 +1203,8 @@ | ||
| 1203 | 1203 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| 1204 | 1204 | 'icon' => 'eicon-text-align-justify', |
| 1205 | 1205 | ], |
| 1206 | 1206 | ], |
| 1207 | - 'classes' => 'elementor-control-start-end', | |
| 1208 | - 'selectors_dictionary' => [ | |
| 1209 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 1210 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 1211 | - ], | |
| 1212 | 1207 | 'selectors' => [ |
| 1213 | 1208 | '{{WRAPPER}} > .elementor-container' => 'text-align: {{VALUE}};', |
| 1214 | 1209 | ], |
| 1215 | 1210 | ] |
| @@ -1442,8 +1437,9 @@ | ||
| 1442 | 1437 | view.addRenderAttribute( |
| 1443 | 1438 | 'background-video-container', |
| 1444 | 1439 | { |
| 1445 | 1440 | 'class': 'elementor-background-video-container', |
| 1441 | + 'aria-hidden': 'true', | |
| 1446 | 1442 | } |
| 1447 | 1443 | ); |
| 1448 | 1444 | |
| 1449 | 1445 | if ( ! settings.background_play_on_mobile ) { |
| @@ -1450,10 +1446,10 @@ | ||
| 1450 | 1446 | view.addRenderAttribute( 'background-video-container', 'class', 'elementor-hidden-mobile' ); |
| 1451 | 1447 | } |
| 1452 | 1448 | #> |
| 1453 | 1449 | <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> | |
| 1450 | + <div class="elementor-background-video-embed"></div> | |
| 1451 | + <video class="elementor-background-video-hosted" {{ videoAttributes }}></video> | |
| 1456 | 1452 | </div> |
| 1457 | 1453 | <# } #> |
| 1458 | 1454 | <div class="elementor-background-overlay"></div> |
| 1459 | 1455 | <div class="elementor-shape elementor-shape-top" aria-hidden="true"></div> |
| @@ -1479,14 +1475,15 @@ | ||
| 1479 | 1475 | ?> <?php $this->print_render_attribute_string( '_wrapper' ); ?>> |
| 1480 | 1476 | <?php |
| 1481 | 1477 | if ( 'video' === $settings['background_background'] ) : |
| 1482 | 1478 | if ( $settings['background_video_link'] ) : |
| 1483 | - $is_embed_video = Embed::is_embed_video( $settings['background_video_link'] ); | |
| 1479 | + $video_properties = Embed::get_video_properties( $settings['background_video_link'] ); | |
| 1484 | 1480 | |
| 1485 | 1481 | $this->add_render_attribute( |
| 1486 | 1482 | 'background-video-container', |
| 1487 | 1483 | [ |
| 1488 | 1484 | 'class' => 'elementor-background-video-container', |
| 1485 | + 'aria-hidden' => 'true', | |
| 1489 | 1486 | ] |
| 1490 | 1487 | ); |
| 1491 | 1488 | |
| 1492 | 1489 | if ( ! $settings['background_play_on_mobile'] ) { |
| @@ -1493,10 +1490,10 @@ | ||
| 1493 | 1490 | $this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-mobile' ); |
| 1494 | 1491 | } |
| 1495 | 1492 | ?> |
| 1496 | 1493 | <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> | |
| 1494 | + <?php if ( $video_properties ) : ?> | |
| 1495 | + <div class="elementor-background-video-embed"></div> | |
| 1499 | 1496 | <?php |
| 1500 | 1497 | else : |
| 1501 | 1498 | $video_tag_attributes = 'autoplay muted playsinline'; |
| 1502 | 1499 | if ( 'yes' !== $settings['background_play_once'] ) : |
| @@ -1502,9 +1499,9 @@ | ||
| 1502 | 1499 | if ( 'yes' !== $settings['background_play_once'] ) : |
| 1503 | 1500 | $video_tag_attributes .= ' loop'; |
| 1504 | 1501 | endif; |
| 1505 | 1502 | ?> |
| 1506 | - <video class="elementor-background-video-hosted" role="presentation" <?php | |
| 1503 | + <video class="elementor-background-video-hosted" <?php | |
| 1507 | 1504 | // PHPCS - the variable $video_tag_attributes is a plain string. |
| 1508 | 1505 | echo $video_tag_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 1509 | 1506 | ?>></video> |
| 1510 | 1507 | <?php endif; ?> |