| @@ -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 | } |
| @@ -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' ), |
| @@ -746,13 +740,8 @@ | ||
| 746 | 740 | 'justify' => [ |
| 747 | 741 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| 748 | 742 | 'icon' => 'eicon-text-align-justify', |
| 749 | 743 | ], |
| 750 | - ], | |
| 751 | - 'classes' => 'elementor-control-start-end', | |
| 752 | - 'selectors_dictionary' => [ | |
| 753 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 754 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 755 | 744 | ], |
| 756 | 745 | 'selectors' => [ |
| 757 | 746 | '{{WRAPPER}} > .elementor-element-populated' => 'text-align: {{VALUE}};', |
| 758 | 747 | ], |