PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.0-beta3
Elementor Website Builder – more than just a page builder v4.3.0-beta3
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/widgets/toggle.php +22 -1 4.0.84.3.0-beta3 View file →
@@ -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' );
@@ -737,6 +737,27 @@
737 737 } );
738 738 } #>
739 739 </div>
740 740 <?php
741 + }
742 +
743 + public function render_markdown(): string {
744 + $settings = $this->get_settings_for_display();
745 + if ( empty( $settings['tabs'] ) ) {
746 + return '';
747 + }
748 + $sections = [];
749 + foreach ( $settings['tabs'] as $item ) {
750 + $title = Utils::html_to_plain_text( $item['tab_title'] ?? '' );
751 + $content = \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $item['tab_content'] ?? '' );
752 + if ( empty( $title ) && empty( $content ) ) {
753 + continue;
754 + }
755 + $section = '### ' . $title;
756 + if ( ! empty( $content ) ) {
757 + $section .= "\n\n" . $content;
758 + }
759 + $sections[] = $section;
760 + }
761 + return implode( "\n\n", $sections );
741 762 }
742 763 }