Server IP : 162.0.217.223 / Your IP : 216.73.216.168 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/wp-content/themes/woodmart/js/scripts/elements/ |
Upload File : |
/* global woodmart_settings */ (function($) { $.each([ 'frontend/element_ready/wd_popup.default', ], function(index, value) { woodmartThemeModule.wdElementorAddAction(value, function() { woodmartThemeModule.contentPopup(); }); }); woodmartThemeModule.$document.on('wdShopPageInit', function() { woodmartThemeModule.contentPopup(); }); woodmartThemeModule.contentPopup = function() { if ('undefined' === typeof $.fn.magnificPopup) { return; } woodmartThemeModule.$document.on('click', '.wd-open-popup, .wp-block-wd-popup > a', function(e) { e.preventDefault(); var $btn = $(this); var $content = $btn.parent().siblings('.wd-popup'); if ($btn.hasClass('wp-block-wd-button')) { $content = $btn.siblings('.wd-popup'); } else if ($btn.attr('href')) { $content = $($btn.attr('href')) } $.magnificPopup.open({ items : { src : $content, type: 'inline', }, removalDelay : 600, //delay removal by X to allow out-animation tClose : woodmart_settings.close, tLoading : woodmart_settings.loading, fixedContentPos: true, callbacks : { beforeOpen: function() { this.wrap.addClass('wd-popup-slide-from-left'); }, open : function() { woodmartThemeModule.$document.trigger('wood-images-loaded'); woodmartThemeModule.$document.trigger('wdOpenPopup'); }, } }); }); }; $(document).ready(function() { woodmartThemeModule.contentPopup(); }); })(jQuery);