![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/store.cartinsight.co/wp-content/themes/woodmart/js/scripts/wc/ |
/* 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);