HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/addons-for-elementor/assets/js/widgets/portfolio.js
( function ( $ ) {

    var WidgetLAEPortfolioHandler = function ($scope, $) {

        if ($().isotope === undefined) {
            return;
        }

        var portfolioElem = $scope.find('.lae-portfolio:not(.lae-custom-grid)');
        if (portfolioElem.length === 0) {
            return; // no items to filter or load and hence don't continue
        }

        var rtl = portfolioElem.attr('dir') === 'rtl';

        var isotopeOptions = portfolioElem.data('isotope-options');

        portfolioElem.isotope({
            // options
            itemSelector: isotopeOptions['itemSelector'],
            layoutMode: isotopeOptions['layoutMode'],
            originLeft: !rtl,
        });

        // layout Isotope after each image load
        portfolioElem.imagesLoaded().progress( function() {
            portfolioElem.isotope('layout');
        });

        /* -------------- Taxonomy Filter --------------- */

        $scope.find('.lae-taxonomy-filter .lae-filter-item a').on('click', function (e) {
            e.preventDefault();

            var selector = $(this).attr('data-value');
            portfolioElem.isotope({filter: selector});
            $(this).closest('.lae-taxonomy-filter').children().removeClass('lae-active');
            $(this).closest('.lae-filter-item').addClass('lae-active');
            return false;
        });

    };

    // Make sure you run this code under Elementor..
    $( window ).on( 'elementor/frontend/init', function () {

        elementorFrontend.hooks.addAction( 'frontend/element_ready/lae-portfolio.default', WidgetLAEPortfolioHandler );

    } );

} )( jQuery );