| @@ -100,9 +100,9 @@ | ||
| 100 | 100 | * @since 3.15.0 |
| 101 | 101 | * @return bool |
| 102 | 102 | */ |
| 103 | 103 | public function show_in_panel(): bool { |
| 104 | - return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements', true ); | |
| 104 | + return ! Plugin::$instance->experiments->is_feature_active( 'container' ); | |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | public function has_widget_inner_wrapper(): bool { |
| 108 | 108 | return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); |
| @@ -657,8 +657,37 @@ | ||
| 657 | 657 | * |
| 658 | 658 | * @since 2.9.0 |
| 659 | 659 | * @access protected |
| 660 | 660 | */ |
| 661 | + public function render_markdown(): string { | |
| 662 | + $settings = $this->get_settings_for_display(); | |
| 663 | + | |
| 664 | + if ( empty( $settings['tabs'] ) ) { | |
| 665 | + return ''; | |
| 666 | + } | |
| 667 | + | |
| 668 | + $sections = []; | |
| 669 | + | |
| 670 | + foreach ( $settings['tabs'] as $item ) { | |
| 671 | + $title = Utils::html_to_plain_text( $item['tab_title'] ?? '' ); | |
| 672 | + $content = \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $item['tab_content'] ?? '' ); | |
| 673 | + | |
| 674 | + if ( empty( $title ) && empty( $content ) ) { | |
| 675 | + continue; | |
| 676 | + } | |
| 677 | + | |
| 678 | + $section = '### ' . $title; | |
| 679 | + | |
| 680 | + if ( ! empty( $content ) ) { | |
| 681 | + $section .= "\n\n" . $content; | |
| 682 | + } | |
| 683 | + | |
| 684 | + $sections[] = $section; | |
| 685 | + } | |
| 686 | + | |
| 687 | + return implode( "\n\n", $sections ); | |
| 688 | + } | |
| 689 | + | |
| 661 | 690 | protected function content_template() { |
| 662 | 691 | ?> |
| 663 | 692 | <div class="elementor-accordion"> |
| 664 | 693 | <# |