| @@ -73,27 +73,9 @@ | ||
| 73 | 73 | public function get_keywords() { |
| 74 | 74 | return [ 'accordion', 'tabs', 'toggle' ]; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - protected function is_dynamic_content(): bool { | |
| 78 | - return false; | |
| 79 | - } | |
| 80 | - | |
| 81 | 77 | /** |
| 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-accordion' ]; | |
| 93 | - } | |
| 94 | - | |
| 95 | - /** | |
| 96 | 78 | * Hide widget from panel. |
| 97 | 79 | * |
| 98 | 80 | * Hide the toggle widget from the panel if nested-accordion experiment is active. |
| 99 | 81 | * |
| @@ -100,15 +82,11 @@ | ||
| 100 | 82 | * @since 3.15.0 |
| 101 | 83 | * @return bool |
| 102 | 84 | */ |
| 103 | 85 | public function show_in_panel(): bool { |
| 104 | - return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements', true ); | |
| 86 | + return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements' ); | |
| 105 | 87 | } |
| 106 | 88 | |
| 107 | - public function has_widget_inner_wrapper(): bool { | |
| 108 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 109 | - } | |
| 110 | - | |
| 111 | 89 | /** |
| 112 | 90 | * Register accordion widget controls. |
| 113 | 91 | * |
| 114 | 92 | * Adds different input fields to allow the user to change and customize the widget settings. |
| @@ -303,10 +281,10 @@ | ||
| 303 | 281 | 'label' => esc_html__( 'Border Color', 'elementor' ), |
| 304 | 282 | 'type' => Controls_Manager::COLOR, |
| 305 | 283 | 'selectors' => [ |
| 306 | 284 | '{{WRAPPER}} .elementor-accordion-item' => 'border-color: {{VALUE}};', |
| 307 | - '{{WRAPPER}} .elementor-accordion-item .elementor-tab-content' => 'border-block-start-color: {{VALUE}};', | |
| 308 | - '{{WRAPPER}} .elementor-accordion-item .elementor-tab-title.elementor-active' => 'border-block-end-color: {{VALUE}};', | |
| 285 | + '{{WRAPPER}} .elementor-accordion-item .elementor-tab-content' => 'border-top-color: {{VALUE}};', | |
| 286 | + '{{WRAPPER}} .elementor-accordion-item .elementor-tab-title.elementor-active' => 'border-bottom-color: {{VALUE}};', | |
| 309 | 287 | ], |
| 310 | 288 | ] |
| 311 | 289 | ); |
| 312 | 290 | |
| @@ -474,9 +452,10 @@ | ||
| 474 | 452 | 'max' => 1, |
| 475 | 453 | ], |
| 476 | 454 | ], |
| 477 | 455 | 'selectors' => [ |
| 478 | - '{{WRAPPER}} .elementor-accordion-icon' => 'margin-inline-end: {{SIZE}}{{UNIT}};', | |
| 456 | + '{{WRAPPER}} .elementor-accordion-icon.elementor-accordion-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};', | |
| 457 | + '{{WRAPPER}} .elementor-accordion-icon.elementor-accordion-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};', | |
| 479 | 458 | ], |
| 480 | 459 | ] |
| 481 | 460 | ); |
| 482 | 461 | |
| @@ -657,37 +636,8 @@ | ||
| 657 | 636 | * |
| 658 | 637 | * @since 2.9.0 |
| 659 | 638 | * @access protected |
| 660 | 639 | */ |
| 661 | - public function render_markdown(): string { | |
| 662 | - $settings = $this->get_settings_for_display(); | |
| 663 | - | |
| 664 | - if ( empty( $settings['tabs'] ) ) { | |
| 665 | - return ''; | |
| 666 | - } | |
| 667 | - | |
| 668 | - $sections = []; | |
| 669 | - | |
| 670 | - foreach ( $settings['tabs'] as $item ) { | |
| 671 | - $title = Utils::html_to_plain_text( $item['tab_title'] ?? '' ); | |
| 672 | - $content = \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $item['tab_content'] ?? '' ); | |
| 673 | - | |
| 674 | - if ( empty( $title ) && empty( $content ) ) { | |
| 675 | - continue; | |
| 676 | - } | |
| 677 | - | |
| 678 | - $section = '### ' . $title; | |
| 679 | - | |
| 680 | - if ( ! empty( $content ) ) { | |
| 681 | - $section .= "\n\n" . $content; | |
| 682 | - } | |
| 683 | - | |
| 684 | - $sections[] = $section; | |
| 685 | - } | |
| 686 | - | |
| 687 | - return implode( "\n\n", $sections ); | |
| 688 | - } | |
| 689 | - | |
| 690 | 640 | protected function content_template() { |
| 691 | 641 | ?> |
| 692 | 642 | <div class="elementor-accordion"> |
| 693 | 643 | <# |