PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.2
Elementor Website Builder – more than just a page builder v3.31.2
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 +7 -11 4.0.73.31.2 View file →
@@ -38,9 +38,9 @@
38 38 * @param array|null $args
39 39 *
40 40 * @return void
41 41 */
42 - public function __construct( array $data = [], ?array $args = null ) {
42 + public function __construct( array $data = [], array $args = null ) {
43 43 parent::__construct( $data, $args );
44 44
45 45 $this->active_kit = Plugin::$instance->kits_manager->get_active_kit();
46 46 }
@@ -139,9 +139,8 @@
139 139 $config['controls'] = $this->get_controls();
140 140 $config['tabs_controls'] = $this->get_tabs_controls();
141 141 $config['show_in_panel'] = true;
142 142 $config['categories'] = [ 'layout' ];
143 - $config['include_in_widgets_config'] = true;
144 143
145 144 return $config;
146 145 }
147 146
@@ -166,8 +165,9 @@
166 165 view.addRenderAttribute(
167 166 'background-video-container',
168 167 {
169 168 'class': 'elementor-background-video-container',
169 + 'aria-hidden': 'true',
170 170 }
171 171 );
172 172
173 173 if ( ! settings.background_play_on_mobile ) {
@@ -174,10 +174,10 @@
174 174 view.addRenderAttribute( 'background-video-container', 'class', 'elementor-hidden-mobile' );
175 175 }
176 176 #>
177 177 <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>
178 + <div class="elementor-background-video-embed"></div>
179 + <video class="elementor-background-video-hosted" {{ videoAttributes }}></video>
180 180 </div>
181 181 <# } #>
182 182 <div class="elementor-shape elementor-shape-top" aria-hidden="true"></div>
183 183 <div class="elementor-shape elementor-shape-bottom" aria-hidden="true"></div>
@@ -208,8 +208,9 @@
208 208 $this->add_render_attribute(
209 209 'background-video-container',
210 210 [
211 211 'class' => 'elementor-background-video-container',
212 + 'aria-hidden' => 'true',
212 213 ]
213 214 );
214 215
215 216 if ( ! $settings['background_play_on_mobile'] ) {
@@ -217,9 +218,9 @@
217 218 }
218 219
219 220 ?><div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>>
220 221 <?php if ( $video_properties ) : ?>
221 - <div class="elementor-background-video-embed" role="presentation"></div>
222 + <div class="elementor-background-video-embed"></div>
222 223 <?php
223 224 else :
224 225 $video_tag_attributes = 'autoplay muted playsinline';
225 226
@@ -226,9 +227,9 @@
226 227 if ( 'yes' !== $settings['background_play_once'] ) {
227 228 $video_tag_attributes .= ' loop';
228 229 }
229 230 ?>
230 - <video class="elementor-background-video-hosted" role="presentation" <?php echo esc_attr( $video_tag_attributes ); ?>></video>
231 + <video class="elementor-background-video-hosted" <?php echo esc_attr( $video_tag_attributes ); ?>></video>
231 232 <?php endif; ?>
232 233 </div><?php
233 234 }
234 235
@@ -339,12 +340,8 @@
339 340 if ( in_array( $element_data['elType'], $el_types, true ) ) {
340 341 return Plugin::$instance->elements_manager->get_element_types( $element_data['elType'] );
341 342 }
342 343
343 - if ( ! isset( $element_data['widgetType'] ) ) {
344 - return null;
345 - }
346 -
347 344 return Plugin::$instance->widgets_manager->get_widget_types( $element_data['widgetType'] );
348 345 }
349 346
350 347 /**
@@ -492,9 +489,8 @@
492 489 'max' => 1440,
493 490 ],
494 491 ],
495 492 'description' => sprintf(
496 - /* translators: %s: 100vh. */
497 493 esc_html__( 'To achieve full height Container use %s.', 'elementor' ),
498 494 '100vh'
499 495 ),
500 496 'selectors' => [