PluginProbe
Elementor Website Builder – more than just a page builder / 3.19.2
Elementor Website Builder – more than just a page builder v3.19.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 +8 -71 4.2.33.19.2 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.
@@ -181,21 +159,14 @@
181 159 $this->add_control(
182 160 'type',
183 161 [
184 162 'label' => esc_html__( 'Position', 'elementor' ),
185 - 'type' => Controls_Manager::CHOOSE,
163 + 'type' => Controls_Manager::SELECT,
186 164 'default' => 'horizontal',
187 165 'options' => [
188 - 'vertical' => [
189 - 'title' => esc_html__( 'Vertical', 'elementor' ),
190 - 'icon' => 'eicon-h-align-left',
191 - ],
192 - 'horizontal' => [
193 - 'title' => esc_html__( 'Horizontal', 'elementor' ),
194 - 'icon' => 'eicon-v-align-top',
195 - ],
166 + 'horizontal' => esc_html__( 'Horizontal', 'elementor' ),
167 + 'vertical' => esc_html__( 'Vertical', 'elementor' ),
196 168 ],
197 - 'classes' => 'elementor-control-start-end',
198 169 'prefix_class' => 'elementor-tabs-view-',
199 170 'separator' => 'before',
200 171 ]
201 172 );
@@ -422,10 +393,10 @@
422 393 [
423 394 'label' => esc_html__( 'Alignment', 'elementor' ),
424 395 'type' => Controls_Manager::CHOOSE,
425 396 'options' => [
426 - 'start' => [
427 - 'title' => esc_html__( 'Start', 'elementor' ),
397 + 'left' => [
398 + 'title' => esc_html__( 'Left', 'elementor' ),
428 399 'icon' => 'eicon-text-align-left',
429 400 ],
430 401 'center' => [
431 402 'title' => esc_html__( 'Center', 'elementor' ),
@@ -430,18 +401,13 @@
430 401 'center' => [
431 402 'title' => esc_html__( 'Center', 'elementor' ),
432 403 'icon' => 'eicon-text-align-center',
433 404 ],
434 - 'end' => [
435 - 'title' => esc_html__( 'End', 'elementor' ),
405 + 'right' => [
406 + 'title' => esc_html__( 'Right', 'elementor' ),
436 407 'icon' => 'eicon-text-align-right',
437 408 ],
438 409 ],
439 - 'classes' => 'elementor-control-start-end',
440 - 'selectors_dictionary' => [
441 - 'left' => is_rtl() ? 'end' : 'start',
442 - 'right' => is_rtl() ? 'start' : 'end',
443 - ],
444 410 'selectors' => [
445 411 '{{WRAPPER}} .elementor-tab-title' => 'text-align: {{VALUE}};',
446 412 ],
447 413 'condition' => [
@@ -585,37 +551,8 @@
585 551 *
586 552 * @since 2.9.0
587 553 * @access protected
588 554 */
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 555 protected function content_template() {
619 556 ?>
620 557 <div class="elementor-tabs" role="tablist" aria-orientation="vertical">
621 558 <# if ( settings.tabs ) {