PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.3
Elementor Website Builder – more than just a page builder v3.32.3
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 +6 -8 4.0.73.32.3 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>
@@ -208,8 +209,9 @@
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'] ) {
@@ -217,9 +219,9 @@
217 219 }
218 220
219 221 ?><div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>>
220 222 <?php if ( $video_properties ) : ?>
221 - <div class="elementor-background-video-embed" role="presentation"></div>
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
@@ -337,12 +339,8 @@
337 339 $el_types = array_keys( Plugin::$instance->elements_manager->get_element_types() );
338 340
339 341 if ( in_array( $element_data['elType'], $el_types, true ) ) {
340 342 return Plugin::$instance->elements_manager->get_element_types( $element_data['elType'] );
341 - }
342 -
343 - if ( ! isset( $element_data['widgetType'] ) ) {
344 - return null;
345 343 }
346 344
347 345 return Plugin::$instance->widgets_manager->get_widget_types( $element_data['widgetType'] );
348 346 }