| @@ -585,37 +585,8 @@ | ||
| 585 | 585 | * |
| 586 | 586 | * @since 2.9.0 |
| 587 | 587 | * @access protected |
| 588 | 588 | */ |
| 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 | 589 | protected function content_template() { |
| 619 | 590 | ?> |
| 620 | 591 | <div class="elementor-tabs" role="tablist" aria-orientation="vertical"> |
| 621 | 592 | <# if ( settings.tabs ) { |