PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.0-dev2
Elementor Website Builder – more than just a page builder v3.20.0-dev2
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 -63 4.2.13.20.0-dev2 View file →
@@ -73,34 +73,12 @@
73 73 public function get_keywords() {
74 74 return [ 'tabs', 'accordion', 'toggle' ];
75 75 }
76 76
77 - protected function is_dynamic_content(): bool {
78 - return false;
79 - }
80 -
81 - /**
82 - * Get style dependencies.
83 - *
84 - * Retrieve the list of style dependencies the widget requires.
85 - *
86 - * @since 3.24.0
87 - * @access public
88 - *
89 - * @return array Widget style dependencies.
90 - */
91 - public function get_style_depends(): array {
92 - return [ 'widget-tabs' ];
93 - }
94 -
95 77 public function show_in_panel(): bool {
96 - return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements', true );
78 + return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements' );
97 79 }
98 80
99 - public function has_widget_inner_wrapper(): bool {
100 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
101 - }
102 -
103 81 /**
104 82 * Register tabs widget controls.
105 83 *
106 84 * Adds different input fields to allow the user to change and customize the widget settings.
@@ -186,9 +164,9 @@
186 164 'default' => 'horizontal',
187 165 'options' => [
188 166 'vertical' => [
189 167 'title' => esc_html__( 'Vertical', 'elementor' ),
190 - 'icon' => 'eicon-h-align-left',
168 + 'icon' => 'eicon-h-align-' . ( is_rtl() ? 'right' : 'left' ),
191 169 ],
192 170 'horizontal' => [
193 171 'title' => esc_html__( 'Horizontal', 'elementor' ),
194 172 'icon' => 'eicon-v-align-top',
@@ -193,9 +171,8 @@
193 171 'title' => esc_html__( 'Horizontal', 'elementor' ),
194 172 'icon' => 'eicon-v-align-top',
195 173 ],
196 174 ],
197 - 'classes' => 'elementor-control-start-end',
198 175 'prefix_class' => 'elementor-tabs-view-',
199 176 'separator' => 'before',
200 177 ]
201 178 );
@@ -422,10 +399,10 @@
422 399 [
423 400 'label' => esc_html__( 'Alignment', 'elementor' ),
424 401 'type' => Controls_Manager::CHOOSE,
425 402 'options' => [
426 - 'start' => [
427 - 'title' => esc_html__( 'Start', 'elementor' ),
403 + 'left' => [
404 + 'title' => esc_html__( 'Left', 'elementor' ),
428 405 'icon' => 'eicon-text-align-left',
429 406 ],
430 407 'center' => [
431 408 'title' => esc_html__( 'Center', 'elementor' ),
@@ -430,18 +407,13 @@
430 407 'center' => [
431 408 'title' => esc_html__( 'Center', 'elementor' ),
432 409 'icon' => 'eicon-text-align-center',
433 410 ],
434 - 'end' => [
435 - 'title' => esc_html__( 'End', 'elementor' ),
411 + 'right' => [
412 + 'title' => esc_html__( 'Right', 'elementor' ),
436 413 'icon' => 'eicon-text-align-right',
437 414 ],
438 415 ],
439 - 'classes' => 'elementor-control-start-end',
440 - 'selectors_dictionary' => [
441 - 'left' => is_rtl() ? 'end' : 'start',
442 - 'right' => is_rtl() ? 'start' : 'end',
443 - ],
444 416 'selectors' => [
445 417 '{{WRAPPER}} .elementor-tab-title' => 'text-align: {{VALUE}};',
446 418 ],
447 419 'condition' => [
@@ -585,37 +557,8 @@
585 557 *
586 558 * @since 2.9.0
587 559 * @access protected
588 560 */
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 561 protected function content_template() {
619 562 ?>
620 563 <div class="elementor-tabs" role="tablist" aria-orientation="vertical">
621 564 <# if ( settings.tabs ) {