PluginProbe
Elementor Website Builder – more than just a page builder / 4.2.1
Elementor Website Builder – more than just a page builder v4.2.1
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/tabs.php +29 -0 4.0.74.2.1 View file →
@@ -585,8 +585,37 @@
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 +
589 618 protected function content_template() {
590 619 ?>
591 620 <div class="elementor-tabs" role="tablist" aria-orientation="vertical">
592 621 <# if ( settings.tabs ) {