%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/sitemap355.xml 2026-12-01 https://louisvillegop.com/sitemap397.xml 2026-12-01 https://louisvillegop.com/sitemap368.xml 2026-12-01 https://louisvillegop.com/sitemap972.xml 2026-12-01 https://louisvillegop.com/sitemap304.xml 2026-12-01 https://louisvillegop.com/sitemap172.xml 2026-12-01 https://louisvillegop.com/sitemap56.xml 2026-12-01 https://louisvillegop.com/sitemap519.xml 2026-12-01 https://louisvillegop.com/sitemap131.xml 2026-12-01 https://louisvillegop.com/sitemap357.xml 2026-12-01 https://louisvillegop.com/sitemap602.xml 2026-12-01 https://louisvillegop.com/sitemap859.xml 2026-12-01 https://louisvillegop.com/sitemap729.xml 2026-12-01 https://louisvillegop.com/sitemap974.xml 2026-12-01 https://louisvillegop.com/sitemap353.xml 2026-12-01 https://louisvillegop.com/sitemap64.xml 2026-12-01 https://louisvillegop.com/sitemap806.xml 2026-12-01 https://louisvillegop.com/sitemap548.xml 2026-12-01 https://louisvillegop.com/sitemap655.xml 2026-12-01 https://louisvillegop.com/sitemap898.xml 2026-12-01 https://louisvillegop.com/sitemap565.xml 2026-12-01 https://louisvillegop.com/sitemap169.xml 2026-12-01 https://louisvillegop.com/sitemap538.xml 2026-12-01 https://louisvillegop.com/sitemap607.xml 2026-12-01 https://louisvillegop.com/sitemap94.xml 2026-12-01 https://louisvillegop.com/sitemap454.xml 2026-12-01 https://louisvillegop.com/sitemap674.xml 2026-12-01 https://louisvillegop.com/sitemap309.xml 2026-12-01 https://louisvillegop.com/sitemap645.xml 2026-12-01 https://louisvillegop.com/sitemap326.xml 2026-12-01 https://louisvillegop.com/sitemap710.xml 2026-12-01 https://louisvillegop.com/sitemap392.xml 2026-12-01 https://louisvillegop.com/sitemap761.xml 2026-12-01 https://louisvillegop.com/sitemap919.xml 2026-12-01 https://louisvillegop.com/sitemap221.xml 2026-12-01 https://louisvillegop.com/sitemap398.xml 2026-12-01 https://louisvillegop.com/sitemap114.xml 2026-12-01 https://louisvillegop.com/sitemap628.xml 2026-12-01 https://louisvillegop.com/sitemap352.xml 2026-12-01 https://louisvillegop.com/sitemap476.xml 2026-12-01 https://louisvillegop.com/sitemap8.xml 2026-12-01 https://louisvillegop.com/sitemap709.xml 2026-12-01 https://louisvillegop.com/sitemap394.xml 2026-12-01 https://louisvillegop.com/sitemap590.xml 2026-12-01 https://louisvillegop.com/sitemap503.xml 2026-12-01 https://louisvillegop.com/sitemap274.xml 2026-12-01 https://louisvillegop.com/sitemap962.xml 2026-12-01 https://louisvillegop.com/sitemap535.xml 2026-12-01 https://louisvillegop.com/sitemap122.xml 2026-12-01 https://louisvillegop.com/sitemap823.xml 2026-12-01 https://louisvillegop.com/sitemap28.xml 2026-12-01 https://louisvillegop.com/sitemap585.xml 2026-12-01 https://louisvillegop.com/sitemap259.xml 2026-12-01 https://louisvillegop.com/sitemap402.xml 2026-12-01 https://louisvillegop.com/sitemap777.xml 2026-12-01 https://louisvillegop.com/sitemap797.xml 2026-12-01 https://louisvillegop.com/sitemap453.xml 2026-12-01 https://louisvillegop.com/sitemap463.xml 2026-12-01 https://louisvillegop.com/sitemap959.xml 2026-12-01 https://louisvillegop.com/sitemap438.xml 2026-12-01 https://louisvillegop.com/sitemap479.xml 2026-12-01 https://louisvillegop.com/sitemap381.xml 2026-12-01 https://louisvillegop.com/sitemap266.xml 2026-12-01 https://louisvillegop.com/sitemap222.xml 2026-12-01 https://louisvillegop.com/sitemap904.xml 2026-12-01 https://louisvillegop.com/sitemap112.xml 2026-12-01 https://louisvillegop.com/sitemap25.xml 2026-12-01 https://louisvillegop.com/sitemap177.xml 2026-12-01 https://louisvillegop.com/sitemap931.xml 2026-12-01 https://louisvillegop.com/sitemap399.xml 2026-12-01