PluginProbe
Elementor Website Builder – more than just a page builder / 3.24.8
Elementor Website Builder – more than just a page builder v3.24.8
4.3.0-beta3 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 All 452 releases
← All changes | modules/floating-buttons/base/widget-contact-button-base.php +12 -23 4.2.0-dev23.24.8 View file →
@@ -28,27 +28,14 @@
28 28 return 'floating-buttons';
29 29 }
30 30
31 31 public function get_style_depends(): array {
32 - $widget_name = $this->get_name();
33 -
34 - $style_depends = Plugin::$instance->experiments->is_feature_active( 'e_font_icon_svg' )
35 - ? parent::get_style_depends()
36 - : [ 'elementor-icons-fa-solid', 'elementor-icons-fa-brands', 'elementor-icons-fa-regular' ];
37 -
38 - $style_depends[] = 'widget-contact-buttons-base';
39 -
40 - if ( 'contact-buttons' !== $widget_name ) {
41 - $style_depends[] = "widget-{$widget_name}";
32 + if ( Plugin::$instance->experiments->is_feature_active( 'e_font_icon_svg' ) ) {
33 + return parent::get_style_depends();
42 34 }
43 -
44 - return $style_depends;
35 + return [ 'elementor-icons-fa-solid', 'elementor-icons-fa-brands', 'elementor-icons-fa-regular' ];
45 36 }
46 37
47 - public function has_widget_inner_wrapper(): bool {
48 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
49 - }
50 -
51 38 public function hide_on_search(): bool {
52 39 return true;
53 40 }
54 41
@@ -416,8 +403,11 @@
416 403 'chat_button_url',
417 404 [
418 405 'label' => esc_html__( 'Link', 'elementor' ),
419 406 'type' => Controls_Manager::URL,
407 + 'default' => [
408 + 'is_external' => true,
409 + ],
420 410 'dynamic' => [
421 411 'active' => true,
422 412 ],
423 413 'ai' => [
@@ -747,12 +737,11 @@
747 737 [
748 738 'type' => Controls_Manager::ALERT,
749 739 'alert_type' => 'info',
750 740 '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>'
741 + __( 'Add between <b>%1$d</b> to <b>%2$d</b> contact buttons', 'elementor' ),
742 + $config['content']['contact_section']['platform']['min_items'],
743 + $config['content']['contact_section']['platform']['limit']
755 744 ),
756 745 ]
757 746 );
758 747 } else {
@@ -761,11 +750,10 @@
761 750 [
762 751 'type' => Controls_Manager::ALERT,
763 752 'alert_type' => 'info',
764 753 '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>'
754 + __( 'Add up to <b>%d</b> contact buttons', 'elementor' ),
755 + $config['content']['contact_section']['platform']['limit']
768 756 ),
769 757 ]
770 758 );
771 759 }
@@ -3121,8 +3109,9 @@
3121 3109
3122 3110 Plugin::$instance->controls_manager->add_custom_css_controls( $this, static::TAB_ADVANCED );
3123 3111
3124 3112 Plugin::$instance->controls_manager->add_custom_attributes_controls( $this, static::TAB_ADVANCED );
3113 +
3125 3114 }
3126 3115
3127 3116 protected function render(): void {
3128 3117 $render_strategy = new Contact_Buttons_Core_Render( $this );