PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.2
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 4.0.7 All 451 releases
← All changes | includes/widgets/tabs.php +6 -45 4.2.23.25.2 View file →
@@ -92,15 +92,11 @@
92 92 return [ 'widget-tabs' ];
93 93 }
94 94
95 95 public function show_in_panel(): bool {
96 - return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements', true );
96 + return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements' );
97 97 }
98 98
99 - public function has_widget_inner_wrapper(): bool {
100 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
101 - }
102 -
103 99 /**
104 100 * Register tabs widget controls.
105 101 *
106 102 * Adds different input fields to allow the user to change and customize the widget settings.
@@ -186,9 +182,9 @@
186 182 'default' => 'horizontal',
187 183 'options' => [
188 184 'vertical' => [
189 185 'title' => esc_html__( 'Vertical', 'elementor' ),
190 - 'icon' => 'eicon-h-align-left',
186 + 'icon' => 'eicon-h-align-' . ( is_rtl() ? 'right' : 'left' ),
191 187 ],
192 188 'horizontal' => [
193 189 'title' => esc_html__( 'Horizontal', 'elementor' ),
194 190 'icon' => 'eicon-v-align-top',
@@ -193,9 +189,8 @@
193 189 'title' => esc_html__( 'Horizontal', 'elementor' ),
194 190 'icon' => 'eicon-v-align-top',
195 191 ],
196 192 ],
197 - 'classes' => 'elementor-control-start-end',
198 193 'prefix_class' => 'elementor-tabs-view-',
199 194 'separator' => 'before',
200 195 ]
201 196 );
@@ -422,10 +417,10 @@
422 417 [
423 418 'label' => esc_html__( 'Alignment', 'elementor' ),
424 419 'type' => Controls_Manager::CHOOSE,
425 420 'options' => [
426 - 'start' => [
427 - 'title' => esc_html__( 'Start', 'elementor' ),
421 + 'left' => [
422 + 'title' => esc_html__( 'Left', 'elementor' ),
428 423 'icon' => 'eicon-text-align-left',
429 424 ],
430 425 'center' => [
431 426 'title' => esc_html__( 'Center', 'elementor' ),
@@ -430,18 +425,13 @@
430 425 'center' => [
431 426 'title' => esc_html__( 'Center', 'elementor' ),
432 427 'icon' => 'eicon-text-align-center',
433 428 ],
434 - 'end' => [
435 - 'title' => esc_html__( 'End', 'elementor' ),
429 + 'right' => [
430 + 'title' => esc_html__( 'Right', 'elementor' ),
436 431 'icon' => 'eicon-text-align-right',
437 432 ],
438 433 ],
439 - 'classes' => 'elementor-control-start-end',
440 - 'selectors_dictionary' => [
441 - 'left' => is_rtl() ? 'end' : 'start',
442 - 'right' => is_rtl() ? 'start' : 'end',
443 - ],
444 434 'selectors' => [
445 435 '{{WRAPPER}} .elementor-tab-title' => 'text-align: {{VALUE}};',
446 436 ],
447 437 'condition' => [
@@ -585,37 +575,8 @@
585 575 *
586 576 * @since 2.9.0
587 577 * @access protected
588 578 */
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 579 protected function content_template() {
619 580 ?>
620 581 <div class="elementor-tabs" role="tablist" aria-orientation="vertical">
621 582 <# if ( settings.tabs ) {