PluginProbe
Elementor Website Builder – more than just a page builder / 3.21.3
Elementor Website Builder – more than just a page builder v3.21.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/column.php +12 -64 4.2.03.21.3 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2 namespace Elementor;
3 3
4 4 use Elementor\Core\Breakpoints\Manager as Breakpoints_Manager;
5 -use Elementor\Plugin;
6 5
7 6 if ( ! defined( 'ABSPATH' ) ) {
8 7 exit; // Exit if accessed directly.
9 8 }
@@ -74,12 +73,8 @@
74 73 public function get_icon() {
75 74 return 'eicon-column';
76 75 }
77 76
78 - protected function is_dynamic_content(): bool {
79 - return false;
80 - }
81 -
82 77 /**
83 78 * Get initial config.
84 79 *
85 80 * Retrieve the current section initial configuration.
@@ -119,9 +114,9 @@
119 114 'tab' => Controls_Manager::TAB_LAYOUT,
120 115 ]
121 116 );
122 117
123 - // Element Name for the Navigator.
118 + // Element Name for the Navigator
124 119 $this->add_control(
125 120 '_title',
126 121 [
127 122 'label' => esc_html__( 'Title', 'elementor' ),
@@ -196,11 +191,11 @@
196 191 'top' => 'flex-start',
197 192 'bottom' => 'flex-end',
198 193 ],
199 194 'selectors' => [
200 - // TODO: The following line is for BC since 2.7.0.
195 + // TODO: The following line is for BC since 2.7.0
201 196 '.elementor-bc-flex-widget {{WRAPPER}}.elementor-column .elementor-widget-wrap' => 'align-items: {{VALUE}}',
202 - // This specificity is intended to make sure column css overwrites section css on vertical alignment (content_position).
197 + // This specificity is intended to make sure column css overwrites section css on vertical alignment (content_position)
203 198 '{{WRAPPER}}.elementor-column.elementor-element[data-element_type="column"] > .elementor-widget-wrap.elementor-element-populated' => 'align-content: {{VALUE}}; align-items: {{VALUE}};',
204 199 ],
205 200 ]
206 201 );
@@ -225,13 +220,8 @@
225 220 ],
226 221 ]
227 222 );
228 223
229 - $optimized_markup = Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
230 - $space_between_widgets = $optimized_markup
231 - ? '--kit-widget-spacing: {{VALUE}}px'
232 - : 'margin-block-end: {{VALUE}}px';
233 -
234 224 $this->add_responsive_control(
235 225 'space_between_widgets',
236 226 [
237 227 'label' => esc_html__( 'Widgets Space', 'elementor' ) . ' (px)',
@@ -237,9 +227,9 @@
237 227 'label' => esc_html__( 'Widgets Space', 'elementor' ) . ' (px)',
238 228 'type' => Controls_Manager::NUMBER,
239 229 'placeholder' => 20,
240 230 'selectors' => [
241 - '{{WRAPPER}} > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget__width-auto):not(.elementor-widget__width-initial):not(:last-child):not(.elementor-absolute)' => $space_between_widgets, // Need the full path for exclude the inner section.
231 + '{{WRAPPER}} > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget__width-auto):not(.elementor-widget__width-initial):not(:last-child):not(.elementor-absolute)' => 'margin-bottom: {{VALUE}}px', //Need the full path for exclude the inner section
242 232 ],
243 233 ]
244 234 );
245 235
@@ -300,45 +290,8 @@
300 290 ],
301 291 ]
302 292 );
303 293
304 - $this->add_control(
305 - 'handle_slideshow_asset_loading',
306 - [
307 - 'type' => Controls_Manager::HIDDEN,
308 - 'assets' => [
309 - 'styles' => [
310 - [
311 - 'name' => 'e-swiper',
312 - 'conditions' => [
313 - 'terms' => [
314 - [
315 - 'name' => 'background_background',
316 - 'operator' => '===',
317 - 'value' => 'slideshow',
318 - ],
319 - ],
320 - ],
321 - ],
322 - ],
323 - 'scripts' => [
324 - [
325 - 'name' => 'swiper',
326 - 'conditions' => [
327 - 'terms' => [
328 - [
329 - 'name' => 'background_background',
330 - 'operator' => '===',
331 - 'value' => 'slideshow',
332 - ],
333 - ],
334 - ],
335 - ],
336 - ],
337 - ],
338 - ]
339 - );
340 -
341 294 $this->end_controls_tab();
342 295
343 296 $this->start_controls_tab(
344 297 'tab_background_hover',
@@ -647,9 +600,9 @@
647 600 'operator' => '!==',
648 601 'value' => '',
649 602 ],
650 603 [
651 - 'name' => 'border_hover_border',
604 + 'name' => 'border_border',
652 605 'operator' => '!==',
653 606 'value' => '',
654 607 ],
655 608 ],
@@ -730,10 +683,10 @@
730 683 [
731 684 'label' => esc_html__( 'Text Align', 'elementor' ),
732 685 'type' => Controls_Manager::CHOOSE,
733 686 'options' => [
734 - 'start' => [
735 - 'title' => esc_html__( 'Start', 'elementor' ),
687 + 'left' => [
688 + 'title' => esc_html__( 'Left', 'elementor' ),
736 689 'icon' => 'eicon-text-align-left',
737 690 ],
738 691 'center' => [
739 692 'title' => esc_html__( 'Center', 'elementor' ),
@@ -738,10 +691,10 @@
738 691 'center' => [
739 692 'title' => esc_html__( 'Center', 'elementor' ),
740 693 'icon' => 'eicon-text-align-center',
741 694 ],
742 - 'end' => [
743 - 'title' => esc_html__( 'End', 'elementor' ),
695 + 'right' => [
696 + 'title' => esc_html__( 'Right', 'elementor' ),
744 697 'icon' => 'eicon-text-align-right',
745 698 ],
746 699 'justify' => [
747 700 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -747,13 +700,8 @@
747 700 'title' => esc_html__( 'Justified', 'elementor' ),
748 701 'icon' => 'eicon-text-align-justify',
749 702 ],
750 703 ],
751 - 'classes' => 'elementor-control-start-end',
752 - 'selectors_dictionary' => [
753 - 'left' => is_rtl() ? 'end' : 'start',
754 - 'right' => is_rtl() ? 'start' : 'end',
755 - ],
756 704 'selectors' => [
757 705 '{{WRAPPER}} > .elementor-element-populated' => 'text-align: {{VALUE}};',
758 706 ],
759 707 ]
@@ -845,9 +793,9 @@
845 793 );
846 794
847 795 Plugin::$instance->controls_manager->add_display_conditions_controls( $this );
848 796
849 - // TODO: Backward comparability for deprecated controls.
797 + // TODO: Backward comparability for deprecated controls
850 798 $this->add_control(
851 799 'screen_sm',
852 800 [
853 801 'type' => Controls_Manager::HIDDEN,
@@ -863,9 +811,9 @@
863 811 ],
864 812 'prefix_class' => 'elementor-sm-',
865 813 ]
866 814 );
867 - // END Backward comparability.
815 + // END Backward comparability
868 816
869 817 $this->end_controls_section();
870 818
871 819 $this->start_controls_section(
@@ -984,9 +932,9 @@
984 932 $overlay_background = $settings['background_overlay_background'] ?? '';
985 933 $overlay_hover_background = $settings['background_overlay_hover_background'] ?? '';
986 934
987 935 $has_background_overlay = in_array( $overlay_background, [ 'classic', 'gradient' ], true ) ||
988 - in_array( $overlay_hover_background, [ 'classic', 'gradient' ], true );
936 + in_array( $overlay_hover_background, [ 'classic', 'gradient' ], true );
989 937
990 938 $column_wrap_classes = [ 'elementor-widget-wrap' ];
991 939
992 940 if ( $this->get_children() ) {