| @@ -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 | } |