← All changes
|
modules/floating-buttons/base/widget-contact-button-base.php
+9
-11
4.1.0-beta1
→
3.26.4
View file →
| @@ -43,12 +43,8 @@ | ||
| 43 | 43 | |
| 44 | 44 | return $style_depends; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - public function has_widget_inner_wrapper(): bool { | |
| 48 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 49 | - } | |
| 50 | - | |
| 51 | 47 | public function hide_on_search(): bool { |
| 52 | 48 | return true; |
| 53 | 49 | } |
| 54 | 50 | |
| @@ -416,8 +412,11 @@ | ||
| 416 | 412 | 'chat_button_url', |
| 417 | 413 | [ |
| 418 | 414 | 'label' => esc_html__( 'Link', 'elementor' ), |
| 419 | 415 | 'type' => Controls_Manager::URL, |
| 416 | + 'default' => [ | |
| 417 | + 'is_external' => true, | |
| 418 | + ], | |
| 420 | 419 | 'dynamic' => [ |
| 421 | 420 | 'active' => true, |
| 422 | 421 | ], |
| 423 | 422 | 'ai' => [ |
| @@ -747,12 +746,11 @@ | ||
| 747 | 746 | [ |
| 748 | 747 | 'type' => Controls_Manager::ALERT, |
| 749 | 748 | 'alert_type' => 'info', |
| 750 | 749 | 'content' => sprintf( |
| 751 | - /* translators: 1: Minimum items, 2: Items limit. */ | |
| 752 | - esc_html__( 'Add between %1$s to %2$s contact buttons', 'elementor' ), | |
| 753 | - '<b>' . $config['content']['contact_section']['platform']['min_items'] . '</b>', | |
| 754 | - '<b>' . $config['content']['contact_section']['platform']['limit'] . '</b>' | |
| 750 | + __( 'Add between <b>%1$d</b> to <b>%2$d</b> contact buttons', 'elementor' ), | |
| 751 | + $config['content']['contact_section']['platform']['min_items'], | |
| 752 | + $config['content']['contact_section']['platform']['limit'] | |
| 755 | 753 | ), |
| 756 | 754 | ] |
| 757 | 755 | ); |
| 758 | 756 | } else { |
| @@ -761,11 +759,10 @@ | ||
| 761 | 759 | [ |
| 762 | 760 | 'type' => Controls_Manager::ALERT, |
| 763 | 761 | 'alert_type' => 'info', |
| 764 | 762 | 'content' => sprintf( |
| 765 | - /* translators: %s: Items limit. */ | |
| 766 | - esc_html__( 'Add up to %s contact buttons', 'elementor' ), | |
| 767 | - '<b>' . $config['content']['contact_section']['platform']['limit'] . '</b>' | |
| 763 | + __( 'Add up to <b>%d</b> contact buttons', 'elementor' ), | |
| 764 | + $config['content']['contact_section']['platform']['limit'] | |
| 768 | 765 | ), |
| 769 | 766 | ] |
| 770 | 767 | ); |
| 771 | 768 | } |
| @@ -3121,8 +3118,9 @@ | ||
| 3121 | 3118 | |
| 3122 | 3119 | Plugin::$instance->controls_manager->add_custom_css_controls( $this, static::TAB_ADVANCED ); |
| 3123 | 3120 | |
| 3124 | 3121 | Plugin::$instance->controls_manager->add_custom_attributes_controls( $this, static::TAB_ADVANCED ); |
| 3122 | + | |
| 3125 | 3123 | } |
| 3126 | 3124 | |
| 3127 | 3125 | protected function render(): void { |
| 3128 | 3126 | $render_strategy = new Contact_Buttons_Core_Render( $this ); |