PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.2
Elementor Website Builder – more than just a page builder v4.3.2
4.3.2 4.3.1 4.3.0 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 All 455 releases
← All changes | includes/widgets/accordion.php +30 -1 4.0.9 → 4.3.2 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' );
@@ -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 <#