PluginProbe
Elementor Website Builder – more than just a page builder / 3.27.3
Elementor Website Builder – more than just a page builder v3.27.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 +11 -22 4.2.33.27.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 }
@@ -119,9 +118,9 @@
119 118 'tab' => Controls_Manager::TAB_LAYOUT,
120 119 ]
121 120 );
122 121
123 - // Element Name for the Navigator.
122 + // Element Name for the Navigator
124 123 $this->add_control(
125 124 '_title',
126 125 [
127 126 'label' => esc_html__( 'Title', 'elementor' ),
@@ -196,11 +195,11 @@
196 195 'top' => 'flex-start',
197 196 'bottom' => 'flex-end',
198 197 ],
199 198 'selectors' => [
200 - // TODO: The following line is for BC since 2.7.0.
199 + // TODO: The following line is for BC since 2.7.0
201 200 '.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).
201 + // This specificity is intended to make sure column css overwrites section css on vertical alignment (content_position)
203 202 '{{WRAPPER}}.elementor-column.elementor-element[data-element_type="column"] > .elementor-widget-wrap.elementor-element-populated' => 'align-content: {{VALUE}}; align-items: {{VALUE}};',
204 203 ],
205 204 ]
206 205 );
@@ -225,13 +224,8 @@
225 224 ],
226 225 ]
227 226 );
228 227
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 228 $this->add_responsive_control(
235 229 'space_between_widgets',
236 230 [
237 231 'label' => esc_html__( 'Widgets Space', 'elementor' ) . ' (px)',
@@ -237,9 +231,9 @@
237 231 'label' => esc_html__( 'Widgets Space', 'elementor' ) . ' (px)',
238 232 'type' => Controls_Manager::NUMBER,
239 233 'placeholder' => 20,
240 234 '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.
235 + '{{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 236 ],
243 237 ]
244 238 );
245 239
@@ -730,10 +724,10 @@
730 724 [
731 725 'label' => esc_html__( 'Text Align', 'elementor' ),
732 726 'type' => Controls_Manager::CHOOSE,
733 727 'options' => [
734 - 'start' => [
735 - 'title' => esc_html__( 'Start', 'elementor' ),
728 + 'left' => [
729 + 'title' => esc_html__( 'Left', 'elementor' ),
736 730 'icon' => 'eicon-text-align-left',
737 731 ],
738 732 'center' => [
739 733 'title' => esc_html__( 'Center', 'elementor' ),
@@ -738,10 +732,10 @@
738 732 'center' => [
739 733 'title' => esc_html__( 'Center', 'elementor' ),
740 734 'icon' => 'eicon-text-align-center',
741 735 ],
742 - 'end' => [
743 - 'title' => esc_html__( 'End', 'elementor' ),
736 + 'right' => [
737 + 'title' => esc_html__( 'Right', 'elementor' ),
744 738 'icon' => 'eicon-text-align-right',
745 739 ],
746 740 'justify' => [
747 741 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -747,13 +741,8 @@
747 741 'title' => esc_html__( 'Justified', 'elementor' ),
748 742 'icon' => 'eicon-text-align-justify',
749 743 ],
750 744 ],
751 - 'classes' => 'elementor-control-start-end',
752 - 'selectors_dictionary' => [
753 - 'left' => is_rtl() ? 'end' : 'start',
754 - 'right' => is_rtl() ? 'start' : 'end',
755 - ],
756 745 'selectors' => [
757 746 '{{WRAPPER}} > .elementor-element-populated' => 'text-align: {{VALUE}};',
758 747 ],
759 748 ]
@@ -845,9 +834,9 @@
845 834 );
846 835
847 836 Plugin::$instance->controls_manager->add_display_conditions_controls( $this );
848 837
849 - // TODO: Backward comparability for deprecated controls.
838 + // TODO: Backward comparability for deprecated controls
850 839 $this->add_control(
851 840 'screen_sm',
852 841 [
853 842 'type' => Controls_Manager::HIDDEN,
@@ -863,9 +852,9 @@
863 852 ],
864 853 'prefix_class' => 'elementor-sm-',
865 854 ]
866 855 );
867 - // END Backward comparability.
856 + // END Backward comparability
868 857
869 858 $this->end_controls_section();
870 859
871 860 $this->start_controls_section(
@@ -984,9 +973,9 @@
984 973 $overlay_background = $settings['background_overlay_background'] ?? '';
985 974 $overlay_hover_background = $settings['background_overlay_hover_background'] ?? '';
986 975
987 976 $has_background_overlay = in_array( $overlay_background, [ 'classic', 'gradient' ], true ) ||
988 - in_array( $overlay_hover_background, [ 'classic', 'gradient' ], true );
977 + in_array( $overlay_hover_background, [ 'classic', 'gradient' ], true );
989 978
990 979 $column_wrap_classes = [ 'elementor-widget-wrap' ];
991 980
992 981 if ( $this->get_children() ) {