| @@ -132,8 +132,11 @@ | ||
| 132 | 132 | 'icon_exclude_inline_options' => $args['icon_exclude_inline_options'], |
| 133 | 133 | ] |
| 134 | 134 | ); |
| 135 | 135 | |
| 136 | + $start = is_rtl() ? 'right' : 'left'; | |
| 137 | + $end = is_rtl() ? 'left' : 'right'; | |
| 138 | + | |
| 136 | 139 | $this->add_control( |
| 137 | 140 | 'icon_align', |
| 138 | 141 | [ |
| 139 | 142 | 'label' => esc_html__( 'Icon Position', 'elementor' ), |
| @@ -141,16 +144,15 @@ | ||
| 141 | 144 | 'default' => is_rtl() ? 'row-reverse' : 'row', |
| 142 | 145 | 'options' => [ |
| 143 | 146 | 'row' => [ |
| 144 | 147 | 'title' => esc_html__( 'Start', 'elementor' ), |
| 145 | - 'icon' => 'eicon-h-align-left', | |
| 148 | + 'icon' => "eicon-h-align-{$start}", | |
| 146 | 149 | ], |
| 147 | 150 | 'row-reverse' => [ |
| 148 | 151 | 'title' => esc_html__( 'End', 'elementor' ), |
| 149 | - 'icon' => 'eicon-h-align-right', | |
| 152 | + 'icon' => "eicon-h-align-{$end}", | |
| 150 | 153 | ], |
| 151 | 154 | ], |
| 152 | - 'classes' => 'elementor-control-start-end', | |
| 153 | 155 | 'selectors_dictionary' => [ |
| 154 | 156 | 'left' => is_rtl() ? 'row-reverse' : 'row', |
| 155 | 157 | 'right' => is_rtl() ? 'row' : 'row-reverse', |
| 156 | 158 | ], |
| @@ -272,8 +274,11 @@ | ||
| 272 | 274 | 'condition' => $args['section_condition'], |
| 273 | 275 | ] |
| 274 | 276 | ); |
| 275 | 277 | |
| 278 | + $start = is_rtl() ? 'right' : 'left'; | |
| 279 | + $end = is_rtl() ? 'left' : 'right'; | |
| 280 | + | |
| 276 | 281 | $this->add_responsive_control( |
| 277 | 282 | 'content_align', |
| 278 | 283 | [ |
| 279 | 284 | 'label' => esc_html__( 'Alignment', 'elementor' ), |
| @@ -280,9 +285,9 @@ | ||
| 280 | 285 | 'type' => Controls_Manager::CHOOSE, |
| 281 | 286 | 'options' => [ |
| 282 | 287 | 'start' => [ |
| 283 | 288 | 'title' => esc_html__( 'Start', 'elementor' ), |
| 284 | - 'icon' => 'eicon-text-align-left', | |
| 289 | + 'icon' => "eicon-text-align-{$start}", | |
| 285 | 290 | ], |
| 286 | 291 | 'center' => [ |
| 287 | 292 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 288 | 293 | 'icon' => 'eicon-text-align-center', |
| @@ -288,9 +293,9 @@ | ||
| 288 | 293 | 'icon' => 'eicon-text-align-center', |
| 289 | 294 | ], |
| 290 | 295 | 'end' => [ |
| 291 | 296 | 'title' => esc_html__( 'End', 'elementor' ), |
| 292 | - 'icon' => 'eicon-text-align-right', | |
| 297 | + 'icon' => "eicon-text-align-{$end}", | |
| 293 | 298 | ], |
| 294 | 299 | 'space-between' => [ |
| 295 | 300 | 'title' => esc_html__( 'Space between', 'elementor' ), |
| 296 | 301 | 'icon' => 'eicon-text-align-justify', |
| @@ -296,9 +301,8 @@ | ||
| 296 | 301 | 'icon' => 'eicon-text-align-justify', |
| 297 | 302 | ], |
| 298 | 303 | ], |
| 299 | 304 | 'default' => $args['content_alignment_default'], |
| 300 | - 'classes' => 'elementor-control-start-end', | |
| 301 | 305 | 'selectors' => [ |
| 302 | 306 | '{{WRAPPER}} .elementor-button .elementor-button-content-wrapper' => 'justify-content: {{VALUE}};', |
| 303 | 307 | ], |
| 304 | 308 | 'condition' => array_merge( $args['section_condition'], [ 'align' => 'justify' ] ), |