From 7929a3d969ebf0c5292716083f71c1b42bfd698e Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Mon, 4 May 2020 13:45:52 +0000 Subject: [PATCH] Fix #3627 @0.5 --- .../physioassist/src/Elementor/Widgets/ProfileGrid.php | 7 ++++++- .../physioassist/src/Elementor/Widgets/TextCarousel.php | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/ProfileGrid.php b/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/ProfileGrid.php index 35a39ea7..baaa9428 100644 --- a/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/ProfileGrid.php +++ b/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/ProfileGrid.php @@ -49,7 +49,8 @@ class ProfileGrid extends Widget_Base { true // In footer? ); - return ['cube-profile-grid']; + // Use script already registered by Elementor so we don't have to include another copy of Slick + return ['jquery-slick', 'cube-profile-grid']; } /** * Register the widget controls. @@ -115,6 +116,9 @@ class ProfileGrid extends Widget_Base { 'label' => __('Body', 'cube'), 'type' => Controls_Manager::WYSIWYG, 'default' => '', + 'dynamic' => [ + 'active' => false, + ], ], [ 'name' => 'cta_text', @@ -159,6 +163,7 @@ class ProfileGrid extends Widget_Base { 'type' => Controls_Manager::NUMBER, 'default' => '5', 'condition' => [ + 'type' => 'grid', 'truncate_text!' => '' ], 'separator' => 'none', diff --git a/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextCarousel.php b/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextCarousel.php index 1694a555..b1187d57 100644 --- a/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextCarousel.php +++ b/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextCarousel.php @@ -49,7 +49,8 @@ class TextCarousel extends Widget_Base { true // In footer? ); - return ['cube-text-carousel']; + // Use script already registered by Elementor so we don't have to include another copy of Slick + return ['jquery-slick', 'cube-text-carousel']; } /** * Register the widget controls. -- 2.39.5