| @@ -78,22 +78,8 @@ | ||
| 78 | 78 | return false; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 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-toggle' ]; | |
| 93 | - } | |
| 94 | - | |
| 95 | - /** | |
| 96 | 82 | * Hide widget from panel. |
| 97 | 83 | * |
| 98 | 84 | * Hide the toggle widget from the panel if nested-accordion experiment is active. |
| 99 | 85 | * |
| @@ -100,15 +86,11 @@ | ||
| 100 | 86 | * @since 3.15.0 |
| 101 | 87 | * @return bool |
| 102 | 88 | */ |
| 103 | 89 | public function show_in_panel(): bool { |
| 104 | - return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements', true ); | |
| 90 | + return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements' ); | |
| 105 | 91 | } |
| 106 | 92 | |
| 107 | - public function has_widget_inner_wrapper(): bool { | |
| 108 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 109 | - } | |
| 110 | - | |
| 111 | 93 | /** |
| 112 | 94 | * Register toggle widget controls. |
| 113 | 95 | * |
| 114 | 96 | * Adds different input fields to allow the user to change and customize the widget settings. |
| @@ -304,9 +286,9 @@ | ||
| 304 | 286 | [ |
| 305 | 287 | 'label' => esc_html__( 'Border Color', 'elementor' ), |
| 306 | 288 | 'type' => Controls_Manager::COLOR, |
| 307 | 289 | 'selectors' => [ |
| 308 | - '{{WRAPPER}} .elementor-tab-content' => 'border-block-end-color: {{VALUE}};', | |
| 290 | + '{{WRAPPER}} .elementor-tab-content' => 'border-bottom-color: {{VALUE}};', | |
| 309 | 291 | '{{WRAPPER}} .elementor-tab-title' => 'border-color: {{VALUE}};', |
| 310 | 292 | ], |
| 311 | 293 | ] |
| 312 | 294 | ); |
| @@ -328,9 +310,9 @@ | ||
| 328 | 310 | 'max' => 10, |
| 329 | 311 | ], |
| 330 | 312 | ], |
| 331 | 313 | 'selectors' => [ |
| 332 | - '{{WRAPPER}} .elementor-toggle-item:not(:last-child)' => 'margin-block-end: {{SIZE}}{{UNIT}}', | |
| 314 | + '{{WRAPPER}} .elementor-toggle-item:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}', | |
| 333 | 315 | ], |
| 334 | 316 | ] |
| 335 | 317 | ); |
| 336 | 318 | |
| @@ -498,9 +480,10 @@ | ||
| 498 | 480 | 'max' => 10, |
| 499 | 481 | ], |
| 500 | 482 | ], |
| 501 | 483 | 'selectors' => [ |
| 502 | - '{{WRAPPER}} .elementor-toggle-icon' => 'margin-inline-end: {{SIZE}}{{UNIT}};', | |
| 484 | + '{{WRAPPER}} .elementor-toggle-icon.elementor-toggle-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};', | |
| 485 | + '{{WRAPPER}} .elementor-toggle-icon.elementor-toggle-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};', | |
| 503 | 486 | ], |
| 504 | 487 | ] |
| 505 | 488 | ); |
| 506 | 489 | |
| @@ -737,27 +720,6 @@ | ||
| 737 | 720 | } ); |
| 738 | 721 | } #> |
| 739 | 722 | </div> |
| 740 | 723 | <?php |
| 741 | - } | |
| 742 | - | |
| 743 | - public function render_markdown(): string { | |
| 744 | - $settings = $this->get_settings_for_display(); | |
| 745 | - if ( empty( $settings['tabs'] ) ) { | |
| 746 | - return ''; | |
| 747 | - } | |
| 748 | - $sections = []; | |
| 749 | - foreach ( $settings['tabs'] as $item ) { | |
| 750 | - $title = Utils::html_to_plain_text( $item['tab_title'] ?? '' ); | |
| 751 | - $content = \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $item['tab_content'] ?? '' ); | |
| 752 | - if ( empty( $title ) && empty( $content ) ) { | |
| 753 | - continue; | |
| 754 | - } | |
| 755 | - $section = '### ' . $title; | |
| 756 | - if ( ! empty( $content ) ) { | |
| 757 | - $section .= "\n\n" . $content; | |
| 758 | - } | |
| 759 | - $sections[] = $section; | |
| 760 | - } | |
| 761 | - return implode( "\n\n", $sections ); | |
| 762 | 724 | } |
| 763 | 725 | } |