PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.2
Elementor Website Builder – more than just a page builder v3.20.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/toggle.php +5 -47 4.1.03.20.2 View file →
@@ -73,27 +73,9 @@
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 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-toggle' ];
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 toggle widget controls.
113 91 *
114 92 * Adds different input fields to allow the user to change and customize the widget settings.
@@ -304,9 +282,9 @@
304 282 [
305 283 'label' => esc_html__( 'Border Color', 'elementor' ),
306 284 'type' => Controls_Manager::COLOR,
307 285 'selectors' => [
308 - '{{WRAPPER}} .elementor-tab-content' => 'border-block-end-color: {{VALUE}};',
286 + '{{WRAPPER}} .elementor-tab-content' => 'border-bottom-color: {{VALUE}};',
309 287 '{{WRAPPER}} .elementor-tab-title' => 'border-color: {{VALUE}};',
310 288 ],
311 289 ]
312 290 );
@@ -328,9 +306,9 @@
328 306 'max' => 10,
329 307 ],
330 308 ],
331 309 'selectors' => [
332 - '{{WRAPPER}} .elementor-toggle-item:not(:last-child)' => 'margin-block-end: {{SIZE}}{{UNIT}}',
310 + '{{WRAPPER}} .elementor-toggle-item:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}',
333 311 ],
334 312 ]
335 313 );
336 314
@@ -498,9 +476,10 @@
498 476 'max' => 10,
499 477 ],
500 478 ],
501 479 'selectors' => [
502 - '{{WRAPPER}} .elementor-toggle-icon' => 'margin-inline-end: {{SIZE}}{{UNIT}};',
480 + '{{WRAPPER}} .elementor-toggle-icon.elementor-toggle-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
481 + '{{WRAPPER}} .elementor-toggle-icon.elementor-toggle-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
503 482 ],
504 483 ]
505 484 );
506 485
@@ -737,27 +716,6 @@
737 716 } );
738 717 } #>
739 718 </div>
740 719 <?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 720 }
763 721 }