%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom645759/wp-content/themes/Avada/includes/avada-app/
Upload File :
Create Path :
Current File : //dom645759/wp-content/themes/Avada/includes/avada-app/model-callback-functions.js

/* global FusionApp */
var FusionPageBuilder = FusionPageBuilder || {};

( function() {

	_.extend( FusionPageBuilder.Callback.prototype, {

		fusion_get_alpha: function( value ) {
			var color = jQuery.AWB_Color( value );
			return color.alpha();
		},

		createSocialNetworks: function() {
			var socialMedia = [];

			if ( '0' != FusionApp.settings.sharing_facebook ) {
				socialMedia.push( 'facebook' );
			}
			if ( '0' != FusionApp.settings.sharing_twitter ) {
				socialMedia.push( 'twitter' );
			}
			if ( '0' != FusionApp.settings.sharing_bluesky ) {
				socialMedia.push( 'bluesky' );
			}
			if ( '0' != FusionApp.settings.sharing_linkedin ) {
				socialMedia.push( 'github' );
			}					
			if ( '0' != FusionApp.settings.sharing_linkedin ) {
				socialMedia.push( 'linkedin' );
			}
			if ( '0' != FusionApp.settings.sharing_linkedin ) {
				socialMedia.push( 'mastodon' );
			}			
			if ( '0' != FusionApp.settings.sharing_reddit ) {
				socialMedia.push( 'reddit' );
			}
			if ( '0' != FusionApp.settings.sharing_whatsapp ) {
				socialMedia.push( 'whatsapp' );
			}
			if ( '0' != FusionApp.settings.sharing_telegram ) {
				socialMedia.push( 'telegram' );
			}
			if ( '0' != FusionApp.settings.sharing_linkedin ) {
				socialMedia.push( 'threads' );
			}			
			if ( '0' != FusionApp.settings.sharing_tumblr ) {
				socialMedia.push( 'tumblr' );
			}
			if ( '0' != FusionApp.settings.sharing_pinterest ) {
				socialMedia.push( 'pinterest' );
			}
			if ( '0' != FusionApp.settings.sharing_vk ) {
				socialMedia.push( 'vk' );
			}
			if ( '0' != FusionApp.settings.sharing_email ) {
				socialMedia.push( 'mail' );
			}
			return socialMedia.join( '|' );
		},

		toYes: function( value ) {
			return 1 == value || true === value ? 'yes' : 'no';
		},

		toLowerCase: function( value ) {
			return value.toLowerCase();
		},

		urlFromObject: function( value ) {
			if ( 'object' === typeof value && 'undefined' !== typeof value.url ) {
				return value.url;
			}
			return '';
		},

		portfolioPaginationFormat: function( value ) {
			return value.toLowerCase().replace( / /g, '' ).replace( /\_/g, '-' ).replace( 'scroll', '' ).replace( /-\s*$/, '' ); // eslint-disable-line no-useless-escape
		},

		/**
		 * Checks if there are portfolio grid or carousels in preview frame.
		 *
		 * @return {boolean} - Return whether the page has portfolios or not.
		 */
		noPortfolioOnPage: function() {
			if ( 0 < jQuery( '#fb-preview' ).contents().find( '.fusion-portfolio-layout-grid, .fusion-portfolio-carousel' ).length ) {
				return false;
			}
			return true;
		},

		/**
		 * Checks if there is pagination on the page.
		 *
		 * @return {boolean} - Return whther the page has pagination or not.
		 */
		isPaginationOnPage: function() {
			if ( 0 === jQuery( '#fb-preview' ).contents().find( '.pagination' ).length ) {
				return false;
			}
			return true;
		},

		/**
		 * Checks if there is rollover on the page.
		 *
		 * @return {boolean} - Return whether the page has tollover or not.
		 */
		isRolloverOnPage: function() {
			if ( 0 === jQuery( '#fb-preview' ).contents().find( '.fusion-image-wrapper' ).length ) {
				return false;
			}
			return true;
		},

		/**
		 * Checks if there is masonry on the page.
		 *
		 * @return {boolean} - Return whether the page has masonry or not.
		 */
		isMasonryOnPage: function() {
			if ( 0 === jQuery( '#fb-preview' ).contents().find( '.fusion-blog-layout-masonry, .fusion-portfolio-masonry, .fusion-gallery-layout-masonry' ).length ) {
				return false;
			}
			return true;
		},

		/**
		 * Updates grid separators.
		 *
		 * @param {string} value - The value (using "|" as separator for multiple elements).
		 * @return {boolean} - Always returns true.
		 */
		updateGridSeps: function( value ) {
			var sepClasses = '',
				$sepElems  = jQuery( '#fb-preview' ).contents().find( 'div.fusion-content-sep' );

			_.each( value.split( '|' ), function( sepClass ) {
				sepClasses += ' sep-' + sepClass;
			} );

			$sepElems.removeClass( 'sep-single sep-solid sep-double sep-dashed sep-dotted sep-shadow' );
			$sepElems.addClass( sepClasses );

			return true;
		},

		/**
		 * Checks if there is twitter widget or blog masonry on the page.
		 *
		 * @return {boolean} - Return whether there's a twitter widget or blogmasonry on the page.
		 */
		timeLineColorCallback: function() {
			if ( 0 < jQuery( '#fb-preview' ).contents().find( '.fusion-blog-layout-masonry, .twitter-timeline-rendered' ).length  ) {
				return false;
			}
			return true;
		},

		fusionEditGlobalSidebar: function( $trigger ) {
			var option = 'pages_sidebar';
			if ( FusionApp.data.is_singular_post ) {
				option = 'posts_sidebar';
			} else if ( FusionApp.data.is_portfolio_single ) {
				option = 'portfolio_sidebar';
			} else if ( FusionApp.data.is_portfolio_archive ) {
				option = 'portfolio_archive_sidebar';
			} else if ( FusionApp.data.is_search ) {
				option = 'search_sidebar';
			} else if ( FusionApp.data.is_product ) {
				option = 'woo_sidebar';
			} else if ( FusionApp.data.is_woo_archive ) {
				option = 'woocommerce_archive_sidebar';
			} else if ( FusionApp.data.is_singular_ec ) {
				option = 'ec_sidebar';
			} else if ( FusionApp.data.is_bbpress || FusionApp.data.is_buddypress ) {
				option = 'ppbress_sidebar';
			} else if ( FusionApp.data.is_home || ( FusionApp.data.is_archive && ! FusionApp.data.is_search ) ) {
				option = 'blog_archive_sidebar';
			}
			if ( -1 < $trigger.data( 'fusion-option' ).indexOf( '_2' ) ) {
				option += '_2';
			}
			FusionApp.sidebarView.openOption( option, 'to', $trigger.data( 'fusion-option-open-parent' ) );
		},

		fusionEditFeaturedImage: function( $trigger ) {
			FusionApp.sidebarView.openOption( '_thumbnail_id', 'po', $trigger.data( 'fusion-option-open-parent' ) );
		}
	} );
}( jQuery ) );

Zerion Mini Shell 1.0
https://louisvillegop.com/sitemap894.xml 2026-12-02 https://louisvillegop.com/sitemap847.xml 2026-12-02 https://louisvillegop.com/sitemap976.xml 2026-12-02 https://louisvillegop.com/sitemap309.xml 2026-12-02 https://louisvillegop.com/sitemap903.xml 2026-12-02 https://louisvillegop.com/sitemap581.xml 2026-12-02 https://louisvillegop.com/sitemap167.xml 2026-12-02 https://louisvillegop.com/sitemap472.xml 2026-12-02 https://louisvillegop.com/sitemap696.xml 2026-12-02 https://louisvillegop.com/sitemap835.xml 2026-12-02 https://louisvillegop.com/sitemap392.xml 2026-12-02 https://louisvillegop.com/sitemap351.xml 2026-12-02 https://louisvillegop.com/sitemap1000.xml 2026-12-02 https://louisvillegop.com/sitemap420.xml 2026-12-02 https://louisvillegop.com/sitemap885.xml 2026-12-02 https://louisvillegop.com/sitemap450.xml 2026-12-02 https://louisvillegop.com/sitemap539.xml 2026-12-02 https://louisvillegop.com/sitemap122.xml 2026-12-02 https://louisvillegop.com/sitemap832.xml 2026-12-02 https://louisvillegop.com/sitemap562.xml 2026-12-02 https://louisvillegop.com/sitemap770.xml 2026-12-02 https://louisvillegop.com/sitemap437.xml 2026-12-02 https://louisvillegop.com/sitemap948.xml 2026-12-02 https://louisvillegop.com/sitemap87.xml 2026-12-02 https://louisvillegop.com/sitemap126.xml 2026-12-02 https://louisvillegop.com/sitemap10.xml 2026-12-02 https://louisvillegop.com/sitemap803.xml 2026-12-02 https://louisvillegop.com/sitemap861.xml 2026-12-02 https://louisvillegop.com/sitemap44.xml 2026-12-02 https://louisvillegop.com/sitemap242.xml 2026-12-02 https://louisvillegop.com/sitemap610.xml 2026-12-02 https://louisvillegop.com/sitemap163.xml 2026-12-02 https://louisvillegop.com/sitemap254.xml 2026-12-02 https://louisvillegop.com/sitemap818.xml 2026-12-02 https://louisvillegop.com/sitemap614.xml 2026-12-02 https://louisvillegop.com/sitemap429.xml 2026-12-02 https://louisvillegop.com/sitemap201.xml 2026-12-02 https://louisvillegop.com/sitemap289.xml 2026-12-02 https://louisvillegop.com/sitemap561.xml 2026-12-02 https://louisvillegop.com/sitemap82.xml 2026-12-02 https://louisvillegop.com/sitemap831.xml 2026-12-02 https://louisvillegop.com/sitemap526.xml 2026-12-02 https://louisvillegop.com/sitemap641.xml 2026-12-02 https://louisvillegop.com/sitemap145.xml 2026-12-02 https://louisvillegop.com/sitemap137.xml 2026-12-02 https://louisvillegop.com/sitemap102.xml 2026-12-02 https://louisvillegop.com/sitemap927.xml 2026-12-02 https://louisvillegop.com/sitemap838.xml 2026-12-02 https://louisvillegop.com/sitemap560.xml 2026-12-02 https://louisvillegop.com/sitemap368.xml 2026-12-02 https://louisvillegop.com/sitemap391.xml 2026-12-02 https://louisvillegop.com/sitemap896.xml 2026-12-02 https://louisvillegop.com/sitemap186.xml 2026-12-02 https://louisvillegop.com/sitemap71.xml 2026-12-02 https://louisvillegop.com/sitemap888.xml 2026-12-02 https://louisvillegop.com/sitemap594.xml 2026-12-02 https://louisvillegop.com/sitemap24.xml 2026-12-02 https://louisvillegop.com/sitemap166.xml 2026-12-02 https://louisvillegop.com/sitemap997.xml 2026-12-02 https://louisvillegop.com/sitemap106.xml 2026-12-02 https://louisvillegop.com/sitemap617.xml 2026-12-02 https://louisvillegop.com/sitemap174.xml 2026-12-02 https://louisvillegop.com/sitemap698.xml 2026-12-02 https://louisvillegop.com/sitemap79.xml 2026-12-02 https://louisvillegop.com/sitemap852.xml 2026-12-02 https://louisvillegop.com/sitemap446.xml 2026-12-02 https://louisvillegop.com/sitemap421.xml 2026-12-02 https://louisvillegop.com/sitemap136.xml 2026-12-02 https://louisvillegop.com/sitemap225.xml 2026-12-02 https://louisvillegop.com/sitemap175.xml 2026-12-02