| @@ -186,9 +186,9 @@ | ||
| 186 | 186 | 'default' => 'horizontal', |
| 187 | 187 | 'options' => [ |
| 188 | 188 | 'vertical' => [ |
| 189 | 189 | 'title' => esc_html__( 'Vertical', 'elementor' ), |
| 190 | - 'icon' => 'eicon-h-align-left', | |
| 190 | + 'icon' => 'eicon-h-align-' . ( is_rtl() ? 'right' : 'left' ), | |
| 191 | 191 | ], |
| 192 | 192 | 'horizontal' => [ |
| 193 | 193 | 'title' => esc_html__( 'Horizontal', 'elementor' ), |
| 194 | 194 | 'icon' => 'eicon-v-align-top', |
| @@ -193,9 +193,8 @@ | ||
| 193 | 193 | 'title' => esc_html__( 'Horizontal', 'elementor' ), |
| 194 | 194 | 'icon' => 'eicon-v-align-top', |
| 195 | 195 | ], |
| 196 | 196 | ], |
| 197 | - 'classes' => 'elementor-control-start-end', | |
| 198 | 197 | 'prefix_class' => 'elementor-tabs-view-', |
| 199 | 198 | 'separator' => 'before', |
| 200 | 199 | ] |
| 201 | 200 | ); |
| @@ -422,10 +421,10 @@ | ||
| 422 | 421 | [ |
| 423 | 422 | 'label' => esc_html__( 'Alignment', 'elementor' ), |
| 424 | 423 | 'type' => Controls_Manager::CHOOSE, |
| 425 | 424 | 'options' => [ |
| 426 | - 'start' => [ | |
| 427 | - 'title' => esc_html__( 'Start', 'elementor' ), | |
| 425 | + 'left' => [ | |
| 426 | + 'title' => esc_html__( 'Left', 'elementor' ), | |
| 428 | 427 | 'icon' => 'eicon-text-align-left', |
| 429 | 428 | ], |
| 430 | 429 | 'center' => [ |
| 431 | 430 | 'title' => esc_html__( 'Center', 'elementor' ), |
| @@ -430,18 +429,13 @@ | ||
| 430 | 429 | 'center' => [ |
| 431 | 430 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 432 | 431 | 'icon' => 'eicon-text-align-center', |
| 433 | 432 | ], |
| 434 | - 'end' => [ | |
| 435 | - 'title' => esc_html__( 'End', 'elementor' ), | |
| 433 | + 'right' => [ | |
| 434 | + 'title' => esc_html__( 'Right', 'elementor' ), | |
| 436 | 435 | 'icon' => 'eicon-text-align-right', |
| 437 | 436 | ], |
| 438 | 437 | ], |
| 439 | - 'classes' => 'elementor-control-start-end', | |
| 440 | - 'selectors_dictionary' => [ | |
| 441 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 442 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 443 | - ], | |
| 444 | 438 | 'selectors' => [ |
| 445 | 439 | '{{WRAPPER}} .elementor-tab-title' => 'text-align: {{VALUE}};', |
| 446 | 440 | ], |
| 447 | 441 | 'condition' => [ |
| @@ -585,37 +579,8 @@ | ||
| 585 | 579 | * |
| 586 | 580 | * @since 2.9.0 |
| 587 | 581 | * @access protected |
| 588 | 582 | */ |
| 589 | - public function render_markdown(): string { | |
| 590 | - $tabs = $this->get_settings_for_display( 'tabs' ); | |
| 591 | - | |
| 592 | - if ( empty( $tabs ) ) { | |
| 593 | - return ''; | |
| 594 | - } | |
| 595 | - | |
| 596 | - $sections = []; | |
| 597 | - | |
| 598 | - foreach ( $tabs as $item ) { | |
| 599 | - $title = Utils::html_to_plain_text( $item['tab_title'] ?? '' ); | |
| 600 | - $content = \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $item['tab_content'] ?? '' ); | |
| 601 | - | |
| 602 | - if ( empty( $title ) && empty( $content ) ) { | |
| 603 | - continue; | |
| 604 | - } | |
| 605 | - | |
| 606 | - $section = '### ' . $title; | |
| 607 | - | |
| 608 | - if ( ! empty( $content ) ) { | |
| 609 | - $section .= "\n\n" . $content; | |
| 610 | - } | |
| 611 | - | |
| 612 | - $sections[] = $section; | |
| 613 | - } | |
| 614 | - | |
| 615 | - return implode( "\n\n", $sections ); | |
| 616 | - } | |
| 617 | - | |
| 618 | 583 | protected function content_template() { |
| 619 | 584 | ?> |
| 620 | 585 | <div class="elementor-tabs" role="tablist" aria-orientation="vertical"> |
| 621 | 586 | <# if ( settings.tabs ) { |