| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mimradmin/.trash/wp-content/themes/11woodmart/js/scripts/portfolio/ |
Upload File : |
/* global woodmart_settings */
(function($) {
woodmartThemeModule.$document.on('wdPortfolioPjaxComplete', function () {
woodmartThemeModule.portfolioMasonryFilters();
});
$.each([
'frontend/element_ready/wd_portfolio.default',
], function(index, value) {
woodmartThemeModule.wdElementorAddAction(value, function() {
woodmartThemeModule.portfolioMasonryFilters();
});
});
woodmartThemeModule.portfolioMasonryFilters = function() {
var $filer = $('.wd-nav-portfolio');
$filer.on('click', 'li', function(e) {
e.preventDefault();
var $this = $(this);
var filterValue = $this.attr('data-filter');
setTimeout(function() {
woodmartThemeModule.$document.trigger('wood-images-loaded');
}, 300);
$filer.find('.wd-active').removeClass('wd-active');
$this.addClass('wd-active');
var $masonryContainer = $this.parents('.portfolio-filter').siblings('.wd-masonry.wd-projects');
if (!$masonryContainer.length) {
$masonryContainer = $('.wd-portfolio-archive .wd-masonry.wd-projects');
}
if ($masonryContainer.length) {
$masonryContainer.isotope({ filter: filterValue });
}
});
};
$(document).ready(function() {
woodmartThemeModule.portfolioMasonryFilters();
});
})(jQuery);