function initiate_isotope() {
        var is_origin_left = true;
        if($('body').hasClass('rtl')){
            is_origin_left = false;
        }
        if($('.index-isotope').length && (not_display_type("tablet") || (is_display_type("tablet") && $('body').hasClass('menu-position-top') && $('body').hasClass('no-sidebar'))) && not_display_type("phone")){
            var layout_mode = $('.index-isotope').data('layout-mode');
            var $isotope_container = $('.index-isotope').isotope({
                'itemSelector': '.item-isotope',
                'layoutMode': layout_mode,
                'isOriginLeft': is_origin_left,
                'sortAscending': false,
                'transitionDuration': '0.5s',
                // 'getSortData': {
                //     views: '[data-total-views] parseInt',
                //     likes: '[data-total-likes] parseInt',
                // },
            });
            $('.index-isotope').addClass('isotope-active');
            // init isotope
            $isotope_container.isotope('layout');
            // reposition when everything loads isotope
            $(window).load(function() {
                $isotope_container.isotope('layout');
            });
            // reposition when images load
            $('.index-isotope').imagesLoaded(function(){
                $isotope_container.isotope('layout');
                // $('.index-isotope .pluto-post-box .post-media-body, .index-isotope .product-media-body').find('.figure-link-w, iframe').slideDown(100, function(){
                //   $isotope_container.isotope('layout');
                //   setTimeout(function(){
                //     $('.index-isotope .pluto-post-box .post-media-body, .index-isotope .product-media-body').find('.figure-link-w, iframe').addClass('os-faded-in');
                //   }, 50);
                // });
            });
        } else{
            if($('.index-isotope').length && $('.index-isotope').hasClass('isotope-active')){
                $('.index-isotope').isotope('destroy').removeClass('isotope-active');
            }
        }
    }
// Initialize isotope layout only if there is a index-isotope container element on a page and the device in use is not a phone or a tablet
Initialize isotope layout only if there is a index-isotope container element on a page and the device in use is not a phone or a tablet
Initialize isotope layout only if there is a index - isotope container element on a page and the device in use is not a phone or a tablet
function initiate_isotope() {
        var is_origin_left = true;
        if($('body').hasClass('rtl')){
            is_origin_left = false;
        }
        if($('.index-isotope').length && (not_display_type("tablet") || (is_display_type("tablet") && $('body').hasClass('menu-position-top') && $('body').hasClass('no-sidebar'))) && not_display_type("phone")){
            var layout_mode = $('.index-isotope').data('layout-mode');
            var $isotope_container = $('.index-isotope').isotope({
                'itemSelector': '.item-isotope',
                'layoutMode': layout_mode,
                'isOriginLeft': is_origin_left,
                'sortAscending': false,
                'transitionDuration': '0.5s',
            });
            $('.index-isotope').addClass('isotope-active');
            $isotope_container.isotope('layout');
            $(window).load(function() {
                $isotope_container.isotope('layout');
            });
            $('.index-isotope').imagesLoaded(function(){
                $isotope_container.isotope('layout');
            });
        } else{
            if($('.index-isotope').length && $('.index-isotope').hasClass('isotope-active')){
                $('.index-isotope').isotope('destroy').removeClass('isotope-active');
            }
        }
    }
function initiate_isotope ( ) { var is_origin_left = true ; if ( $ ( 'body' ) . hasClass ( 'rtl' ) ) { is_origin_left = false ; } if ( $ ( '.index-isotope' ) . length && ( not_display_type ( "tablet" ) || ( is_display_type ( "tablet" ) && $ ( 'body' ) . hasClass ( 'menu-position-top' ) && $ ( 'body' ) . hasClass ( 'no-sidebar' ) ) ) && not_display_type ( "phone" ) ) { var layout_mode = $ ( '.index-isotope' ) . data ( 'layout-mode' ) ; var $isotope_container = $ ( '.index-isotope' ) . isotope ( { 'itemSelector' : '.item-isotope' , 'layoutMode' : layout_mode , 'isOriginLeft' : is_origin_left , 'sortAscending' : false , 'transitionDuration' : '0.5s' , } ) ; $ ( '.index-isotope' ) . addClass ( 'isotope-active' ) ; $isotope_container . isotope ( 'layout' ) ; $ ( window ) . load ( function ( ) { $isotope_container . isotope ( 'layout' ) ; } ) ; $ ( '.index-isotope' ) . imagesLoaded ( function ( ) { $isotope_container . isotope ( 'layout' ) ; } ) ; } else { if ( $ ( '.index-isotope' ) . length && $ ( '.index-isotope' ) . hasClass ( 'isotope-active' ) ) { $ ( '.index-isotope' ) . isotope ( 'destroy' ) . removeClass ( 'isotope-active' ) ; } } }
Initialize isotope layout only if there is a index-isotope container element on a page and the device in use is not a phone or a tablet
Initialize isotope layout only if there is a index - isotope container element on a page and the device in use is not a phone or a tablet
// 'getSortData': { //     views: '[data-total-views] parseInt', //     likes: '[data-total-likes] parseInt', // }, // init isotope // reposition when everything loads isotope // reposition when images load // $('.index-isotope .pluto-post-box .post-media-body, .index-isotope .product-media-body').find('.figure-link-w, iframe').slideDown(100, function(){ //   $isotope_container.isotope('layout'); //   setTimeout(function(){ //     $('.index-isotope .pluto-post-box .post-media-body, .index-isotope .product-media-body').find('.figure-link-w, iframe').addClass('os-faded-in'); //   }, 50); // });