Server IP : 192.64.112.168 / Your IP : 18.190.176.244 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/themes/woodmart/js/scripts/global/ |
Upload File : |
/* global woodmart_settings */ (function($) { woodmartThemeModule.callPhotoSwipe = function(index, items) { if (woodmartThemeModule.$body.hasClass('rtl')) { index = items.length - index - 1; items = items.reverse(); } var options = { index : index, shareButtons : [ { id : 'facebook', label: woodmart_settings.share_fb, url : 'https://www.facebook.com/sharer/sharer.php?u={{url}}' }, { id : 'twitter', label: woodmart_settings.tweet, url : 'https://twitter.com/intent/tweet?text={{text}}&url={{url}}' }, { id : 'pinterest', label: woodmart_settings.pin_it, url : 'http://www.pinterest.com/pin/create/button/' + '?url={{url}}&media={{image_url}}&description={{text}}' }, { id : 'download', label : woodmart_settings.download_image, url : '{{raw_image_url}}', download: true } ], closeOnScroll: woodmart_settings.photoswipe_close_on_scroll, isClickableElement: function (el) { return el.tagName === 'A' || $(el).hasClass('wd-play-video')|| $(el).hasClass('wd-product-video'); }, getDoubleTapZoom: function (isMouseClick, item) { if (isMouseClick || 'undefined' !== typeof item.html) { return 1; } else { return item.initialZoomLevel < 0.7 ? 1 : 1.33; } } }; woodmartThemeModule.$body.find('.pswp').remove(); woodmartThemeModule.$body.append(woodmart_settings.photoswipe_template); var pswpElement = document.querySelectorAll('.pswp')[0]; // Initializes and opens PhotoSwipe var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options); woodmartThemeModule.$document.trigger('wdPhotoSwipeBeforeInited', gallery ); gallery.init(); }; })(jQuery);