PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.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 -29 4.1.0-dev23.25.2 View file →
@@ -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 toggle widget controls.
113 109 *
114 110 * Adds different input fields to allow the user to change and customize the widget settings.
@@ -304,9 +300,9 @@
304 300 [
305 301 'label' => esc_html__( 'Border Color', 'elementor' ),
306 302 'type' => Controls_Manager::COLOR,
307 303 'selectors' => [
308 - '{{WRAPPER}} .elementor-tab-content' => 'border-block-end-color: {{VALUE}};',
304 + '{{WRAPPER}} .elementor-tab-content' => 'border-bottom-color: {{VALUE}};',
309 305 '{{WRAPPER}} .elementor-tab-title' => 'border-color: {{VALUE}};',
310 306 ],
311 307 ]
312 308 );
@@ -328,9 +324,9 @@
328 324 'max' => 10,
329 325 ],
330 326 ],
331 327 'selectors' => [
332 - '{{WRAPPER}} .elementor-toggle-item:not(:last-child)' => 'margin-block-end: {{SIZE}}{{UNIT}}',
328 + '{{WRAPPER}} .elementor-toggle-item:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}',
333 329 ],
334 330 ]
335 331 );
336 332
@@ -498,9 +494,10 @@
498 494 'max' => 10,
499 495 ],
500 496 ],
501 497 'selectors' => [
502 - '{{WRAPPER}} .elementor-toggle-icon' => 'margin-inline-end: {{SIZE}}{{UNIT}};',
498 + '{{WRAPPER}} .elementor-toggle-icon.elementor-toggle-icon-left' => 'margin-right: {{SIZE}}{{UNIT}};',
499 + '{{WRAPPER}} .elementor-toggle-icon.elementor-toggle-icon-right' => 'margin-left: {{SIZE}}{{UNIT}};',
503 500 ],
504 501 ]
505 502 );
506 503
@@ -737,27 +734,6 @@
737 734 } );
738 735 } #>
739 736 </div>
740 737 <?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 738 }
763 739 }