← All changes
|
modules/floating-buttons/base/widget-contact-button-base.php
+9
-7
4.2.4
→
3.27.4
View file →
| @@ -416,8 +416,11 @@ | ||
| 416 | 416 | 'chat_button_url', |
| 417 | 417 | [ |
| 418 | 418 | 'label' => esc_html__( 'Link', 'elementor' ), |
| 419 | 419 | 'type' => Controls_Manager::URL, |
| 420 | + 'default' => [ | |
| 421 | + 'is_external' => true, | |
| 422 | + ], | |
| 420 | 423 | 'dynamic' => [ |
| 421 | 424 | 'active' => true, |
| 422 | 425 | ], |
| 423 | 426 | 'ai' => [ |
| @@ -747,12 +750,11 @@ | ||
| 747 | 750 | [ |
| 748 | 751 | 'type' => Controls_Manager::ALERT, |
| 749 | 752 | 'alert_type' => 'info', |
| 750 | 753 | '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>' | |
| 754 | + __( 'Add between <b>%1$d</b> to <b>%2$d</b> contact buttons', 'elementor' ), | |
| 755 | + $config['content']['contact_section']['platform']['min_items'], | |
| 756 | + $config['content']['contact_section']['platform']['limit'] | |
| 755 | 757 | ), |
| 756 | 758 | ] |
| 757 | 759 | ); |
| 758 | 760 | } else { |
| @@ -761,11 +763,10 @@ | ||
| 761 | 763 | [ |
| 762 | 764 | 'type' => Controls_Manager::ALERT, |
| 763 | 765 | 'alert_type' => 'info', |
| 764 | 766 | '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>' | |
| 767 | + __( 'Add up to <b>%d</b> contact buttons', 'elementor' ), | |
| 768 | + $config['content']['contact_section']['platform']['limit'] | |
| 768 | 769 | ), |
| 769 | 770 | ] |
| 770 | 771 | ); |
| 771 | 772 | } |
| @@ -3121,8 +3122,9 @@ | ||
| 3121 | 3122 | |
| 3122 | 3123 | Plugin::$instance->controls_manager->add_custom_css_controls( $this, static::TAB_ADVANCED ); |
| 3123 | 3124 | |
| 3124 | 3125 | Plugin::$instance->controls_manager->add_custom_attributes_controls( $this, static::TAB_ADVANCED ); |
| 3126 | + | |
| 3125 | 3127 | } |
| 3126 | 3128 | |
| 3127 | 3129 | protected function render(): void { |
| 3128 | 3130 | $render_strategy = new Contact_Buttons_Core_Render( $this ); |