Server IP : 192.64.112.168 / Your IP : 18.191.200.151 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/wc/ |
Upload File : |
/* global woodmart_settings */ (function($) { woodmartThemeModule.$document.on('wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdShopPageInit wdRecentlyViewedProductLoaded', function () { woodmartThemeModule.shopMasonry(); }); $.each([ 'frontend/element_ready/wd_products.default', 'frontend/element_ready/wd_products_tabs.default', 'frontend/element_ready/wd_products_brands.default' ], function(index, value) { woodmartThemeModule.wdElementorAddAction(value, function() { woodmartThemeModule.shopMasonry(); }); }); woodmartThemeModule.shopMasonry = function() { if (typeof ($.fn.isotope) == 'undefined' || typeof ($.fn.packery) == 'undefined' || typeof ($.fn.imagesLoaded) == 'undefined') { return; } var $container = $('.elements-grid.grid-masonry'); $container.imagesLoaded(function() { $container.isotope({ isOriginLeft: !woodmartThemeModule.$body.hasClass('rtl'), itemSelector: '.product-category.product, .product-grid-item, .products.elements-grid > .element-title', masonry: { columnWidth: '.product-category.product, .product-grid-item' } }); }); woodmartThemeModule.$window.on('resize', function() { initMasonry(); }); initMasonry(); function initMasonry() { var $catsContainer = $('.categories-masonry'); var colWidth = ($catsContainer.hasClass('categories-style-masonry')) ? '.product-category.product' : '.col-lg-3.product-category.product'; $catsContainer.imagesLoaded(function() { $catsContainer.packery({ resizable : false, isOriginLeft: !woodmartThemeModule.$body.hasClass('rtl'), packery : { gutter : 0, columnWidth: colWidth }, itemSelector: '.product-category.product' }); }); } }; $(document).ready(function() { woodmartThemeModule.shopMasonry(); }); })(jQuery);