From a0dff63ed7eeb64ffd3f2cfe4d2153fb653bdbe4 Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Wed, 13 May 2020 06:39:26 +0000 Subject: [PATCH] Fix #3640 @0.25 --- .../physioassist/src/Elementor/Widgets/TextBlock.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextBlock.php b/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextBlock.php index f904c05b..40ca825b 100644 --- a/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextBlock.php +++ b/wp-content/mu-plugins/physioassist/src/Elementor/Widgets/TextBlock.php @@ -5,6 +5,7 @@ namespace PhysioAssist\Elementor\Widgets; use Elementor\Widget_Base; use Elementor\Controls_Manager; use Elementor\Scheme_Color; +use PhysioAssist\Elementor\Utils; class TextBlock extends Widget_Base { @@ -303,7 +304,7 @@ class TextBlock extends Widget_Base { // For now only supporting links that start with https://www.youtube.com... if (strpos($cta_link['url'], 'https://www.youtube.com') === 0) { $cta_tag = 'div'; - $this->add_render_attribute('cta_text', 'data-elementor-lightbox', VideoGallery::lightbox($cta_link['url'], $this->get_id())); + $this->add_render_attribute('cta_text', 'data-elementor-lightbox', Utils::lightbox($cta_link['url'], $this->get_id())); $this->add_render_attribute('cta_text', 'data-elementor-open-lightbox', 'yes'); } else { $this->add_render_attribute( 'cta_text', 'href', $cta_link['url'] ); -- 2.39.5