Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/hessa.corals.io/wp-content/plugins/trx_addons/components/cpt/portfolio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/hessa.corals.io/wp-content/plugins/trx_addons/components/cpt/portfolio/portfolio.js
/* global jQuery, TRX_ADDONS_STORAGE */

// Init portfolio gallery
jQuery( document ).on( 'action.init_hidden_elements', function( e, cont ) {

	"use strict";
	
	cont.find( '.sc_portfolio_masonry_wrap,[class*="portfolio_page_gallery_type_masonry_"]').each( function() {
		var portfolio = jQuery(this);
		if ( portfolio.parents( 'div:hidden,article:hidden' ).length > 0 ) return;
		if ( ! portfolio.hasClass( 'inited' ) ) {
			portfolio.addClass( 'inited' );
			trx_addons_when_images_loaded( portfolio, function() {
				setTimeout( function() {
					portfolio.masonry( {
						itemSelector: portfolio.hasClass( 'sc_portfolio_masonry_wrap' ) ? '.sc_portfolio_masonry_item' : '.portfolio_page_gallery_item',
						columnWidth: portfolio.hasClass( 'sc_portfolio_masonry_wrap' ) ? '.sc_portfolio_masonry_item' : '.portfolio_page_gallery_item',
						percentPosition: true
					} );
					// Trigger events after masonry layout is finished
					setTimeout( function() {
						jQuery( window ).trigger( 'resize' );
						jQuery( window ).trigger( 'scroll' );
					}, 100 );
				}, 0 );
			});
		} else {
			// Relayout after 
			//setTimeout( function() { portfolio.masonry(); }, 310 );
		}
	});

});

Spamworldpro Mini