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