function edgtfInitLoadMoreItemsPortfolioFilter($portfolioList, $filterValue, $filterClassName) {
        var thisPortList = $portfolioList,
            thisPortListInner = thisPortList.find('.edgtf-pl-inner'),
            filterValue = $filterValue,
            filterClassName = $filterClassName,
            maxNumPages = 0;

        if (typeof thisPortList.data('max-num-pages') !== 'undefined' && thisPortList.data('max-num-pages') !== false) {
            maxNumPages = thisPortList.data('max-num-pages');
        }

        var	loadMoreDatta = edgtf.modules.common.getLoadMoreData(thisPortList),
            nextPage = loadMoreDatta.nextPage,
	        ajaxData = edgtf.modules.common.setLoadMoreAjaxData(loadMoreDatta, 'playerx_core_portfolio_ajax_load_more'),
            loadingItem = thisPortList.find('.edgtf-pl-loading');

        if(nextPage <= maxNumPages) {
            loadingItem.addClass('edgtf-showing edgtf-filter-trigger');
            thisPortListInner.css('opacity', '0');

            $.ajax({
                type: 'POST',
                data: ajaxData,
                url: edgtfGlobalVars.vars.edgtfAjaxUrl,
                success: function (data) {
                    nextPage++;
                    thisPortList.data('next-page', nextPage);
                    var response = $.parseJSON(data),
                        responseHtml = response.html;

                    thisPortList.waitForImages(function () {
                        thisPortListInner.append(responseHtml).isotope('reloadItems').isotope({sortBy: 'original-order'});
                        var portListHasArticles = !!thisPortListInner.children().hasClass(filterClassName);

                        if(portListHasArticles) {
                            setTimeout(function() {
	                            edgtf.modules.common.setFixedImageProportionSize(thisPortList, thisPortListInner.find('article'), thisPortListInner.find('.edgtf-masonry-grid-sizer').width());
                                thisPortListInner.isotope('layout').isotope({filter: filterValue});
                                loadingItem.removeClass('edgtf-showing edgtf-filter-trigger');

                                setTimeout(function() {
                                    thisPortListInner.css('opacity', '1');
                                    edgtfInitPortfolioListAnimation();
	                                edgtf.modules.common.edgtfInitParallax();
                                }, 150);
                            }, 400);
                        } else {
                            loadingItem.removeClass('edgtf-showing edgtf-filter-trigger');
                            edgtfInitLoadMoreItemsPortfolioFilter(thisPortList, filterValue, filterClassName);
                        }
                    });
                }
            });
        }
    }
/**
     * Initializes load more items if portfolio masonry filter item is empty
     */
Initializes load more items if portfolio masonry filter item is empty
Initializes load more items if portfolio masonry filter item is empty
function edgtfInitLoadMoreItemsPortfolioFilter($portfolioList, $filterValue, $filterClassName) {
        var thisPortList = $portfolioList,
            thisPortListInner = thisPortList.find('.edgtf-pl-inner'),
            filterValue = $filterValue,
            filterClassName = $filterClassName,
            maxNumPages = 0;
        if (typeof thisPortList.data('max-num-pages') !== 'undefined' && thisPortList.data('max-num-pages') !== false) {
            maxNumPages = thisPortList.data('max-num-pages');
        }
        var	loadMoreDatta = edgtf.modules.common.getLoadMoreData(thisPortList),
            nextPage = loadMoreDatta.nextPage,
	        ajaxData = edgtf.modules.common.setLoadMoreAjaxData(loadMoreDatta, 'playerx_core_portfolio_ajax_load_more'),
            loadingItem = thisPortList.find('.edgtf-pl-loading');
        if(nextPage <= maxNumPages) {
            loadingItem.addClass('edgtf-showing edgtf-filter-trigger');
            thisPortListInner.css('opacity', '0');
            $.ajax({
                type: 'POST',
                data: ajaxData,
                url: edgtfGlobalVars.vars.edgtfAjaxUrl,
                success: function (data) {
                    nextPage++;
                    thisPortList.data('next-page', nextPage);
                    var response = $.parseJSON(data),
                        responseHtml = response.html;
                    thisPortList.waitForImages(function () {
                        thisPortListInner.append(responseHtml).isotope('reloadItems').isotope({sortBy: 'original-order'});
                        var portListHasArticles = !!thisPortListInner.children().hasClass(filterClassName);
                        if(portListHasArticles) {
                            setTimeout(function() {
	                            edgtf.modules.common.setFixedImageProportionSize(thisPortList, thisPortListInner.find('article'), thisPortListInner.find('.edgtf-masonry-grid-sizer').width());
                                thisPortListInner.isotope('layout').isotope({filter: filterValue});
                                loadingItem.removeClass('edgtf-showing edgtf-filter-trigger');
                                setTimeout(function() {
                                    thisPortListInner.css('opacity', '1');
                                    edgtfInitPortfolioListAnimation();
	                                edgtf.modules.common.edgtfInitParallax();
                                }, 150);
                            }, 400);
                        } else {
                            loadingItem.removeClass('edgtf-showing edgtf-filter-trigger');
                            edgtfInitLoadMoreItemsPortfolioFilter(thisPortList, filterValue, filterClassName);
                        }
                    });
                }
            });
        }
    }
function edgtfInitLoadMoreItemsPortfolioFilter ( $portfolioList , $filterValue , $filterClassName ) { var thisPortList = $portfolioList , thisPortListInner = thisPortList . find ( '.edgtf-pl-inner' ) , filterValue = $filterValue , filterClassName = $filterClassName , maxNumPages = 0 ; if ( typeof thisPortList . data ( 'max-num-pages' ) !== 'undefined' && thisPortList . data ( 'max-num-pages' ) !== false ) { maxNumPages = thisPortList . data ( 'max-num-pages' ) ; } var loadMoreDatta = edgtf . modules . common . getLoadMoreData ( thisPortList ) , nextPage = loadMoreDatta . nextPage , ajaxData = edgtf . modules . common . setLoadMoreAjaxData ( loadMoreDatta , 'playerx_core_portfolio_ajax_load_more' ) , loadingItem = thisPortList . find ( '.edgtf-pl-loading' ) ; if ( nextPage <= maxNumPages ) { loadingItem . addClass ( 'edgtf-showing edgtf-filter-trigger' ) ; thisPortListInner . css ( 'opacity' , '0' ) ; $ . ajax ( { type : 'POST' , data : ajaxData , url : edgtfGlobalVars . vars . edgtfAjaxUrl , success : function ( data ) { nextPage ++ ; thisPortList . data ( 'next-page' , nextPage ) ; var response = $ . parseJSON ( data ) , responseHtml = response . html ; thisPortList . waitForImages ( function ( ) { thisPortListInner . append ( responseHtml ) . isotope ( 'reloadItems' ) . isotope ( { sortBy : 'original-order' } ) ; var portListHasArticles = ! ! thisPortListInner . children ( ) . hasClass ( filterClassName ) ; if ( portListHasArticles ) { setTimeout ( function ( ) { edgtf . modules . common . setFixedImageProportionSize ( thisPortList , thisPortListInner . find ( 'article' ) , thisPortListInner . find ( '.edgtf-masonry-grid-sizer' ) . width ( ) ) ; thisPortListInner . isotope ( 'layout' ) . isotope ( { filter : filterValue } ) ; loadingItem . removeClass ( 'edgtf-showing edgtf-filter-trigger' ) ; setTimeout ( function ( ) { thisPortListInner . css ( 'opacity' , '1' ) ; edgtfInitPortfolioListAnimation ( ) ; edgtf . modules . common . edgtfInitParallax ( ) ; } , 150 ) ; } , 400 ) ; } else { loadingItem . removeClass ( 'edgtf-showing edgtf-filter-trigger' ) ; edgtfInitLoadMoreItemsPortfolioFilter ( thisPortList , filterValue , filterClassName ) ; } } ) ; } } ) ; } }
Initializes load more items if portfolio masonry filter item is empty
Initializes load more items if portfolio masonry filter item is empty