| @@ -843,10 +843,10 @@ | ||
| 843 | 843 | [ |
| 844 | 844 | 'label' => esc_html__( 'Alignment', 'elementor' ), |
| 845 | 845 | 'type' => Controls_Manager::CHOOSE, |
| 846 | 846 | 'options' => [ |
| 847 | - 'start' => [ | |
| 848 | - 'title' => esc_html__( 'Start', 'elementor' ), | |
| 847 | + 'left' => [ | |
| 848 | + 'title' => esc_html__( 'Left', 'elementor' ), | |
| 849 | 849 | 'icon' => 'eicon-text-align-left', |
| 850 | 850 | ], |
| 851 | 851 | 'center' => [ |
| 852 | 852 | 'title' => esc_html__( 'Center', 'elementor' ), |
| @@ -851,10 +851,10 @@ | ||
| 851 | 851 | 'center' => [ |
| 852 | 852 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 853 | 853 | 'icon' => 'eicon-text-align-center', |
| 854 | 854 | ], |
| 855 | - 'end' => [ | |
| 856 | - 'title' => esc_html__( 'End', 'elementor' ), | |
| 855 | + 'right' => [ | |
| 856 | + 'title' => esc_html__( 'Right', 'elementor' ), | |
| 857 | 857 | 'icon' => 'eicon-text-align-right', |
| 858 | 858 | ], |
| 859 | 859 | 'justify' => [ |
| 860 | 860 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| @@ -860,13 +860,8 @@ | ||
| 860 | 860 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| 861 | 861 | 'icon' => 'eicon-text-align-justify', |
| 862 | 862 | ], |
| 863 | 863 | ], |
| 864 | - 'classes' => 'elementor-control-start-end', | |
| 865 | - 'selectors_dictionary' => [ | |
| 866 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 867 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 868 | - ], | |
| 869 | 864 | 'default' => 'center', |
| 870 | 865 | 'selectors' => [ |
| 871 | 866 | '{{WRAPPER}} .elementor-image-carousel-caption' => 'text-align: {{VALUE}};', |
| 872 | 867 | ], |
| @@ -1141,26 +1136,6 @@ | ||
| 1141 | 1136 | ]; |
| 1142 | 1137 | } |
| 1143 | 1138 | |
| 1144 | 1139 | Icons_Manager::render_icon( $icon_settings, [ 'aria-hidden' => 'true' ] ); |
| 1145 | - } | |
| 1146 | - | |
| 1147 | - public function render_markdown(): string { | |
| 1148 | - $settings = $this->get_settings_for_display(); | |
| 1149 | - if ( empty( $settings['carousel'] ) ) { | |
| 1150 | - return ''; | |
| 1151 | - } | |
| 1152 | - $images = []; | |
| 1153 | - foreach ( $settings['carousel'] as $item ) { | |
| 1154 | - $url = $item['url'] ?? ''; | |
| 1155 | - if ( empty( $url ) ) { | |
| 1156 | - continue; | |
| 1157 | - } | |
| 1158 | - $alt = ''; | |
| 1159 | - if ( ! empty( $item['id'] ) ) { | |
| 1160 | - $alt = get_post_meta( $item['id'], '_wp_attachment_image_alt', true ); | |
| 1161 | - } | |
| 1162 | - $images[] = ' . ')'; | |
| 1163 | - } | |
| 1164 | - return implode( "\n\n", $images ); | |
| 1165 | 1140 | } |
| 1166 | 1141 | } |