| @@ -100,15 +100,11 @@ | ||
| 100 | 100 | * @since 3.15.0 |
| 101 | 101 | * @return bool |
| 102 | 102 | */ |
| 103 | 103 | public function show_in_panel(): bool { |
| 104 | - return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements', true ); | |
| 104 | + return ! Plugin::$instance->experiments->is_feature_active( 'nested-elements' ); | |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - public function has_widget_inner_wrapper(): bool { | |
| 108 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 109 | - } | |
| 110 | - | |
| 111 | 107 | /** |
| 112 | 108 | * Register accordion widget controls. |
| 113 | 109 | * |
| 114 | 110 | * Adds different input fields to allow the user to change and customize the widget settings. |
| @@ -303,10 +299,10 @@ | ||
| 303 | 299 | 'label' => esc_html__( 'Border Color', 'elementor' ), |
| 304 | 300 | 'type' => Controls_Manager::COLOR, |
| 305 | 301 | 'selectors' => [ |
| 306 | 302 | '{{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}};', | |
| 303 | + '{{WRAPPER}} .elementor-accordion-item .elementor-tab-content' => 'border-top-color: {{VALUE}};', | |
| 304 | + '{{WRAPPER}} .elementor-accordion-item .elementor-tab-title.elementor-active' => 'border-bottom-color: {{VALUE}};', | |
| 309 | 305 | ], |
| 310 | 306 | ] |
| 311 | 307 | ); |
| 312 | 308 | |
| @@ -474,9 +470,10 @@ | ||
| 474 | 470 | 'max' => 1, |
| 475 | 471 | ], |
| 476 | 472 | ], |
| 477 | 473 | 'selectors' => [ |
| 478 | - '{{WRAPPER}} .elementor-accordion-icon' => 'margin-inline-end: {{SIZE}}{{UNIT}};', | |
| 474 | + '{{WRAPPER}} .elementor-accordion-icon.elementor-accordion-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};', | |
| 475 | + '{{WRAPPER}} .elementor-accordion-icon.elementor-accordion-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};', | |
| 479 | 476 | ], |
| 480 | 477 | ] |
| 481 | 478 | ); |
| 482 | 479 | |
| @@ -657,37 +654,8 @@ | ||
| 657 | 654 | * |
| 658 | 655 | * @since 2.9.0 |
| 659 | 656 | * @access protected |
| 660 | 657 | */ |
| 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 | 658 | protected function content_template() { |
| 691 | 659 | ?> |
| 692 | 660 | <div class="elementor-accordion"> |
| 693 | 661 | <# |