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/container.php +12 -10 4.2.23.34.1 View file →
@@ -166,8 +166,9 @@
166 166 view.addRenderAttribute(
167 167 'background-video-container',
168 168 {
169 169 'class': 'elementor-background-video-container',
170 + 'aria-hidden': 'true',
170 171 }
171 172 );
172 173
173 174 if ( ! settings.background_play_on_mobile ) {
@@ -174,10 +175,10 @@
174 175 view.addRenderAttribute( 'background-video-container', 'class', 'elementor-hidden-mobile' );
175 176 }
176 177 #>
177 178 <div {{{ view.getRenderAttributeString( 'background-video-container' ) }}}>
178 - <div class="elementor-background-video-embed" role="presentation"></div>
179 - <video class="elementor-background-video-hosted" role="presentation" {{ videoAttributes }}></video>
179 + <div class="elementor-background-video-embed"></div>
180 + <video class="elementor-background-video-hosted" {{ videoAttributes }}></video>
180 181 </div>
181 182 <# } #>
182 183 <div class="elementor-shape elementor-shape-top" aria-hidden="true"></div>
183 184 <div class="elementor-shape elementor-shape-bottom" aria-hidden="true"></div>
@@ -202,14 +203,15 @@
202 203 if ( ! $settings['background_video_link'] ) {
203 204 return;
204 205 }
205 206
206 - $is_embed_video = Embed::is_embed_video( $settings['background_video_link'] );
207 + $video_properties = Embed::get_video_properties( $settings['background_video_link'] );
207 208
208 209 $this->add_render_attribute(
209 210 'background-video-container',
210 211 [
211 212 'class' => 'elementor-background-video-container',
213 + 'aria-hidden' => 'true',
212 214 ]
213 215 );
214 216
215 217 if ( ! $settings['background_play_on_mobile'] ) {
@@ -216,10 +218,10 @@
216 218 $this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-mobile' );
217 219 }
218 220
219 221 ?><div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>>
220 - <?php if ( $is_embed_video ) : ?>
221 - <div class="elementor-background-video-embed" role="presentation"></div>
222 + <?php if ( $video_properties ) : ?>
223 + <div class="elementor-background-video-embed"></div>
222 224 <?php
223 225 else :
224 226 $video_tag_attributes = 'autoplay muted playsinline';
225 227
@@ -226,9 +228,9 @@
226 228 if ( 'yes' !== $settings['background_play_once'] ) {
227 229 $video_tag_attributes .= ' loop';
228 230 }
229 231 ?>
230 - <video class="elementor-background-video-hosted" role="presentation" <?php echo esc_attr( $video_tag_attributes ); ?>></video>
232 + <video class="elementor-background-video-hosted" <?php echo esc_attr( $video_tag_attributes ); ?>></video>
231 233 <?php endif; ?>
232 234 </div><?php
233 235 }
234 236
@@ -1412,9 +1414,9 @@
1412 1414 [
1413 1415 'label' => esc_html__( 'Column Span', 'elementor' ),
1414 1416 'type' => Controls_Manager::SELECT,
1415 1417 'options' => [
1416 - '' => ' ' . esc_html__( 'Default', 'elementor' ),
1418 + '' => ' Default',
1417 1419 '1' => '1',
1418 1420 '2' => '2',
1419 1421 '3' => '3',
1420 1422 '4' => '4',
@@ -1425,9 +1427,9 @@
1425 1427 '9' => '9',
1426 1428 '10' => '10',
1427 1429 '11' => '11',
1428 1430 '12' => '12',
1429 - 'custom' => esc_html__( 'Custom', 'elementor' ),
1431 + 'custom' => 'Custom',
1430 1432 ],
1431 1433 'selectors' => [
1432 1434 '{{WRAPPER}}' => 'grid-column: span {{VALUE}};',
1433 1435 ],
@@ -1456,9 +1458,9 @@
1456 1458 [
1457 1459 'label' => esc_html__( 'Row Span', 'elementor' ),
1458 1460 'type' => Controls_Manager::SELECT,
1459 1461 'options' => [
1460 - '' => ' ' . esc_html__( 'Default', 'elementor' ),
1462 + '' => ' Default',
1461 1463 '1' => '1',
1462 1464 '2' => '2',
1463 1465 '3' => '3',
1464 1466 '4' => '4',
@@ -1469,9 +1471,9 @@
1469 1471 '9' => '9',
1470 1472 '10' => '10',
1471 1473 '11' => '11',
1472 1474 '12' => '12',
1473 - 'custom' => esc_html__( 'Custom', 'elementor' ),
1475 + 'custom' => 'Custom',
1474 1476 ],
1475 1477 'selectors' => [
1476 1478 '{{WRAPPER}}' => 'grid-row: span {{VALUE}};',
1477 1479 ],