]> _ Git - physioassist-wordpress.git/commitdiff
Fix #3627 @0.5
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 4 May 2020 13:45:52 +0000 (13:45 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 4 May 2020 13:45:52 +0000 (13:45 +0000)
wp-content/mu-plugins/physioassist/src/Elementor/Widgets/ProfileGrid.php
wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextCarousel.php

index 35a39ea781bcac28a9d4edfbb63f3c1fbc30f63e..baaa9428967df0e78c49d53ef7490b306394ed05 100644 (file)
@@ -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',
index 1694a555cad73b61cc9cc5470f5f11d1dc753c45..b1187d57fd867f8c717c02c4c701585fd94023a4 100644 (file)
@@ -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.