PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /proc/self/root/home/oligap/www/wp-content/themes/woodmart/js/scripts/wc/ |
| Server: Linux cloud.virginhosting.lk 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64 IP: 128.140.68.198 |
| Dir : //proc/self/root/home/oligap/www/wp-content/themes/woodmart/js/scripts/wc/shopMasonry.js |
/* 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'
});
});
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);