| @@ -267,10 +267,10 @@ | ||
| 267 | 267 | [ |
| 268 | 268 | 'label' => esc_html__( 'Alignment', 'elementor' ), |
| 269 | 269 | 'type' => Controls_Manager::CHOOSE, |
| 270 | 270 | 'options' => [ |
| 271 | - 'start' => [ | |
| 272 | - 'title' => esc_html__( 'Start', 'elementor' ), | |
| 271 | + 'left' => [ | |
| 272 | + 'title' => esc_html__( 'Left', 'elementor' ), | |
| 273 | 273 | 'icon' => 'eicon-text-align-left', |
| 274 | 274 | ], |
| 275 | 275 | 'center' => [ |
| 276 | 276 | 'title' => esc_html__( 'Center', 'elementor' ), |
| @@ -275,10 +275,10 @@ | ||
| 275 | 275 | 'center' => [ |
| 276 | 276 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 277 | 277 | 'icon' => 'eicon-text-align-center', |
| 278 | 278 | ], |
| 279 | - 'end' => [ | |
| 280 | - 'title' => esc_html__( 'End', 'elementor' ), | |
| 279 | + 'right' => [ | |
| 280 | + 'title' => esc_html__( 'Right', 'elementor' ), | |
| 281 | 281 | 'icon' => 'eicon-text-align-right', |
| 282 | 282 | ], |
| 283 | 283 | 'justify' => [ |
| 284 | 284 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| @@ -284,13 +284,8 @@ | ||
| 284 | 284 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| 285 | 285 | 'icon' => 'eicon-text-align-justify', |
| 286 | 286 | ], |
| 287 | 287 | ], |
| 288 | - 'classes' => 'elementor-control-start-end', | |
| 289 | - 'selectors_dictionary' => [ | |
| 290 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 291 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 292 | - ], | |
| 293 | 288 | 'selectors' => [ |
| 294 | 289 | '{{WRAPPER}} .elementor-image-box-wrapper' => 'text-align: {{VALUE}};', |
| 295 | 290 | ], |
| 296 | 291 | 'separator' => 'after', |
| @@ -894,31 +889,6 @@ | ||
| 894 | 889 | |
| 895 | 890 | print( html ); |
| 896 | 891 | #> |
| 897 | 892 | <?php |
| 898 | - } | |
| 899 | - | |
| 900 | - public function render_markdown(): string { | |
| 901 | - $settings = $this->get_settings_for_display(); | |
| 902 | - $title = Utils::html_to_plain_text( $settings['title_text'] ?? '' ); | |
| 903 | - $description = Utils::html_to_plain_text( $settings['description_text'] ?? '' ); | |
| 904 | - $image_url = $settings['image']['url'] ?? ''; | |
| 905 | - if ( empty( $title ) && empty( $description ) && empty( $image_url ) ) { | |
| 906 | - return ''; | |
| 907 | - } | |
| 908 | - $parts = []; | |
| 909 | - if ( ! empty( $image_url ) ) { | |
| 910 | - $parts[] = ' . ')'; | |
| 911 | - } | |
| 912 | - if ( ! empty( $title ) ) { | |
| 913 | - if ( ! empty( $settings['link']['url'] ) ) { | |
| 914 | - $parts[] = '### [' . $title . '](' . esc_url( $settings['link']['url'] ) . ')'; | |
| 915 | - } else { | |
| 916 | - $parts[] = '### ' . $title; | |
| 917 | - } | |
| 918 | - } | |
| 919 | - if ( ! empty( $description ) ) { | |
| 920 | - $parts[] = $description; | |
| 921 | - } | |
| 922 | - return implode( "\n\n", $parts ); | |
| 923 | 893 | } |
| 924 | 894 | } |