PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.4
Elementor Website Builder – more than just a page builder v3.31.4
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 +13 -17 4.2.03.31.4 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>
@@ -202,14 +202,15 @@
202 202 if ( ! $settings['background_video_link'] ) {
203 203 return;
204 204 }
205 205
206 - $is_embed_video = Embed::is_embed_video( $settings['background_video_link'] );
206 + $video_properties = Embed::get_video_properties( $settings['background_video_link'] );
207 207
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'] ) {
@@ -216,10 +217,10 @@
216 217 $this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-mobile' );
217 218 }
218 219
219 220 ?><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>
221 + <?php if ( $video_properties ) : ?>
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' => [
@@ -1412,9 +1408,9 @@
1412 1408 [
1413 1409 'label' => esc_html__( 'Column Span', 'elementor' ),
1414 1410 'type' => Controls_Manager::SELECT,
1415 1411 'options' => [
1416 - '' => ' ' . esc_html__( 'Default', 'elementor' ),
1412 + '' => ' Default',
1417 1413 '1' => '1',
1418 1414 '2' => '2',
1419 1415 '3' => '3',
1420 1416 '4' => '4',
@@ -1425,9 +1421,9 @@
1425 1421 '9' => '9',
1426 1422 '10' => '10',
1427 1423 '11' => '11',
1428 1424 '12' => '12',
1429 - 'custom' => esc_html__( 'Custom', 'elementor' ),
1425 + 'custom' => 'Custom',
1430 1426 ],
1431 1427 'selectors' => [
1432 1428 '{{WRAPPER}}' => 'grid-column: span {{VALUE}};',
1433 1429 ],
@@ -1456,9 +1452,9 @@
1456 1452 [
1457 1453 'label' => esc_html__( 'Row Span', 'elementor' ),
1458 1454 'type' => Controls_Manager::SELECT,
1459 1455 'options' => [
1460 - '' => ' ' . esc_html__( 'Default', 'elementor' ),
1456 + '' => ' Default',
1461 1457 '1' => '1',
1462 1458 '2' => '2',
1463 1459 '3' => '3',
1464 1460 '4' => '4',
@@ -1469,9 +1465,9 @@
1469 1465 '9' => '9',
1470 1466 '10' => '10',
1471 1467 '11' => '11',
1472 1468 '12' => '12',
1473 - 'custom' => esc_html__( 'Custom', 'elementor' ),
1469 + 'custom' => 'Custom',
1474 1470 ],
1475 1471 'selectors' => [
1476 1472 '{{WRAPPER}}' => 'grid-row: span {{VALUE}};',
1477 1473 ],