%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php
/**
 * Add an element to fusion-builder.
 *
 * @package fusion-builder
 * @since 1.0
 */

if ( fusion_is_element_enabled( 'fusion_pricing_table' ) ) {

	if ( ! class_exists( 'FusionSC_PricingTable' ) ) {
		/**
		 * Shortcode class.
		 *
		 * @since 1.0
		 */
		class FusionSC_PricingTable extends Fusion_Element {

			/**
			 * The pricing table counter.
			 *
			 * @access private
			 * @since 1.0
			 * @var int
			 */
			private $pricing_table_counter = 1;

			/**
			 * Section buffers for the column being rendered, null outside of a column.
			 *
			 * @access private
			 * @since 3.16
			 * @var null|array
			 */
			private $column_sections = null;

			/**
			 * Column buffers for the table being rendered, null outside of a table.
			 *
			 * @access private
			 * @since 3.16
			 * @var null|array
			 */
			private $table_columns = null;

			/**
			 * Whether any column of the current table has a top badge.
			 *
			 * @access private
			 * @since 3.16
			 * @var bool
			 */
			private $has_top_badge = false;

			/**
			 * Total number of child columns in the current table.
			 *
			 * @access private
			 * @since 3.16
			 * @var int
			 */
			private $child_column_count = 0;

			/**
			 * Parent SC arguments.
			 *
			 * @access protected
			 * @since 1.0
			 * @var array
			 */
			protected $parent_args;

			/**
			 * Arguments for the column.
			 *
			 * @access protected
			 * @since 1.0
			 * @var array
			 */
			protected static $child_column_args;

			/**
			 * Constructor.
			 *
			 * @access public
			 * @since 1.0
			 */
			public function __construct() {
				parent::__construct();
				add_filter( 'fusion_attr_pricingtable-shortcode', [ $this, 'attr' ] );
				add_filter( 'fusion_attr_pricingtable-shortcode-column-wrapper', [ $this, 'column_wrapper_attr' ] );
				add_filter( 'fusion_attr_pricingtable-shortcode-price', [ $this, 'price_attr' ] );
				add_filter( 'fusion_attr_pricingtable-shortcode-row', [ $this, 'row_attr' ] );
				add_filter( 'fusion_attr_pricingtable-shortcode-footer', [ $this, 'footer_attr' ] );

				add_shortcode( 'fusion_pricing_table', [ $this, 'render_parent' ] );
				add_shortcode( 'fusion_pricing_column', [ $this, 'render_child_column' ] );
				add_shortcode( 'fusion_pricing_price', [ $this, 'render_child_price' ] );
				add_shortcode( 'fusion_pricing_row', [ $this, 'render_child_row' ] );
				add_shortcode( 'fusion_pricing_footer', [ $this, 'render_child_footer' ] );
			}

			/**
			 * Gets the default values.
			 *
			 * @static
			 * @access public
			 * @since 2.0.0
			 * @param string $context Whether we want parent or child.
			 *                        Returns array( parent, child ) if empty.
			 * @return array
			 */
			public static function get_element_defaults( $context = '' ) {

				$fusion_settings = awb_get_fusion_settings();

				$parent = [
					// Layout.
					'type'                            => '1',
					'columns'                         => '0',
					'columns_medium'                  => '-1',
					'columns_small'                   => '1',
					'column_gap'                      => '',
					'column_gap_medium'               => '',
					'column_gap_small'                => '',
					'row_gap'                         => '',
					'row_gap_medium'                  => '',
					'row_gap_small'                   => '',
					'column_max_width'                => '',
					'column_max_width_medium'         => '',
					'column_max_width_small'          => '',
					'columns_alignment'               => '',
					'column_alignment'                => 'top',
					'preserve_standout_gap'           => 'no',

					// Column box.
					'border_size'                     => '9px',
					'bordercolor'                     => $fusion_settings->get( 'pricing_border_color' ),
					'border_radius_top_left'          => '',
					'border_radius_top_right'         => '',
					'border_radius_bottom_right'      => '',
					'border_radius_bottom_left'       => '',
					'inner_border_size'               => '1px',
					'inner_border_color'              => '',
					'dividercolor'                    => $fusion_settings->get( 'pricing_divider_color' ),
					'box_shadow'                      => 'no',
					'box_shadow_blur'                 => '',
					'box_shadow_color'                => '',
					'box_shadow_horizontal'           => '',
					'box_shadow_spread'               => '',
					'box_shadow_style'                => '',
					'box_shadow_vertical'             => '',

					// Highlight Badge.
					'badge_position'                  => 'top',
					'badge_style'                     => 'flat',
					'badge_padding_top'               => '',
					'badge_padding_right'             => '',
					'badge_padding_bottom'            => '',
					'badge_padding_left'              => '',
					'fusion_font_family_badge_font'   => '',
					'fusion_font_variant_badge_font'  => '',
					'badge_font_size'                 => '0.875rem',
					'badge_line_height'               => '',
					'badge_letter_spacing'            => '',
					'badge_text_transform'            => '',
					'badge_bg_color'                  => 'var(--awb-color5)',
					'badge_text_color'                => 'var(--awb-color1)',

					// Heading area.
					'heading_size'                    => '3',
					'fusion_font_family_title_font'   => '',
					'fusion_font_variant_title_font'  => '',
					'title_font_size'                 => '',
					'title_line_height'               => '',
					'title_letter_spacing'            => '',
					'title_text_transform'            => '',
					'heading_color_style_1'           => $fusion_settings->get( 'full_boxed_pricing_box_heading_color' ),
					'heading_color_style_2'           => $fusion_settings->get( 'sep_pricing_box_heading_color' ),
					'fusion_font_family_sub_heading_font' => '',
					'fusion_font_variant_sub_heading_font' => '',
					'sub_heading_font_size'           => '',
					'sub_heading_line_height'         => '',
					'sub_heading_letter_spacing'      => '',
					'sub_heading_text_transform'      => '',
					'sub_heading_color'               => '',
					'fusion_font_family_description_font' => '',
					'fusion_font_variant_description_font' => '',
					'description_font_size'           => '',
					'description_line_height'         => '',
					'description_letter_spacing'      => '',
					'description_text_transform'      => '',
					'description_color'               => '',
					'heading_bg_color'                => '',
					'heading_padding_top'             => '15px',
					'heading_padding_right'           => '15px',
					'heading_padding_bottom'          => '15px',
					'heading_padding_left'            => '15px',

					// Pricing area.
					'fusion_font_family_price_above_font' => '',
					'fusion_font_variant_price_above_font' => '',
					'price_above_font_size'           => '',
					'price_above_line_height'         => '',
					'price_above_letter_spacing'      => '',
					'price_above_text_transform'      => '',
					'price_above_color'               => '',
					'price_above_bg_color'            => '',
					'price_above_border_radius'       => '6',
					'price_above_strikethrough'       => 'no',
					'fusion_font_family_price_font'   => '',
					'fusion_font_variant_price_font'  => '',
					'price_font_size'                 => '',
					'price_line_height'               => '',
					'price_letter_spacing'            => '',
					'price_text_transform'            => '',
					'pricing_color'                   => $fusion_settings->get( 'pricing_box_color' ),
					'currency_font_size'              => '',
					'currency_color'                  => '#505050',
					'currency_position'               => 'left',
					'time_font_size'                  => '',
					'time_color'                      => '#888888',
					'fusion_font_family_price_below_font' => '',
					'fusion_font_variant_price_below_font' => '',
					'price_below_font_size'           => '0.875rem',
					'price_below_line_height'         => '',
					'price_below_letter_spacing'      => '',
					'price_below_text_transform'      => '',
					'price_below_color'               => '',
					'price_below_bg_color'            => '',
					'price_below_border_radius'       => '6',
					'price_below_strikethrough'       => 'no',
					'pricing_bg_color'                => '',
					'pricing_padding_top'             => '15px',
					'pricing_padding_right'           => '15px',
					'pricing_padding_bottom'          => '15px',
					'pricing_padding_left'            => '15px',

					// Features area.
					'features_alignment'              => 'center',
					'features_padding_top'            => '15px',
					'features_padding_right'          => '15px',
					'features_padding_bottom'         => '15px',
					'features_padding_left'           => '15px',
					'features_icon'                   => '',
					'features_excluded_icon'          => '',
					'features_excluded_strikethrough' => 'yes',
					'fusion_font_family_features_font' => '',
					'fusion_font_variant_features_font' => '',
					'features_font_size'              => '',
					'features_line_height'            => '',
					'features_letter_spacing'         => '',
					'features_text_transform'         => '',
					'body_text_color'                 => $fusion_settings->get( 'body_typography', 'color' ),
					'body_text_hover_color'           => '',
					'features_icon_color'             => '',
					'features_excluded_icon_color'    => '',
					'features_stripe_color'           => '',
					'backgroundcolor'                 => $fusion_settings->get( 'pricing_bg_color' ),
					'background_color_hover'          => $fusion_settings->get( 'pricing_background_color_hover' ),

					// CTA area.
					'cta_bg_color'                    => '',
					'cta_padding_top'                 => '15px',
					'cta_padding_right'               => '15px',
					'cta_padding_bottom'              => '15px',
					'cta_padding_left'                => '15px',
					'cta_position'                    => 'below_features',

					// General.
					'margin_top'                      => '',
					'margin_right'                    => '',
					'margin_bottom'                   => '',
					'margin_left'                     => '',
					'hide_on_mobile'                  => fusion_builder_default_visibility( 'string' ),
					'class'                           => '',
					'id'                              => '',
				];

				$child = [
					// Content.
					'standout'                     => 'no',
					'standout_expansion'           => '10px',
					'standout_scale'               => '1',
					'badge_text'                   => '',
					'title'                        => '',
					'sub_heading'                  => '',
					'description'                  => '',
					'price'                        => '',
					'price_above'                  => '',
					'price_below'                  => '',

					// Color overrides, ordered like the parent Design tab.
					'bordercolor'                  => '',
					'inner_border_color'           => '',
					'dividercolor'                 => '',
					'badge_bg_color'               => '',
					'badge_text_color'             => '',
					'heading_color'                => '',
					'sub_heading_color'            => '',
					'description_color'            => '',
					'heading_bg_color'             => '',
					'price_above_color'            => '',
					'price_above_bg_color'         => '',
					'pricing_color'                => '',
					'currency_color'               => '',
					'time_color'                   => '',
					'price_below_color'            => '',
					'price_below_bg_color'         => '',
					'pricing_bg_color'             => '',
					'body_text_color'              => '',
					'body_text_hover_color'        => '',
					'features_icon_color'          => '',
					'features_excluded_icon_color' => '',
					'features_stripe_color'        => '',
					'backgroundcolor'              => '',
					'background_color_hover'       => '',
					'cta_bg_color'                 => '',

					// General.
					'class'                        => 'fusion-pricingtable-column',
					'id'                           => '',
				];

				if ( 'parent' === $context ) {
					return $parent;
				} elseif ( 'child' === $context ) {
					return $child;
				} else {
					return [
						'parent' => $parent,
						'child'  => $child,
					];
				}
			}

			/**
			 * Maps settings to param variables.
			 *
			 * @static
			 * @access public
			 * @since 2.0.0
			 * @param string $context Can be "parent" | "child" | "".
			 * @return array
			 */
			public static function settings_to_params( $context = '' ) {
				$parent = [
					'pricing_bg_color'                     => 'backgroundcolor',
					'pricing_background_color_hover'       => 'background_color_hover',
					'pricing_border_color'                 => 'bordercolor',
					'full_boxed_pricing_box_heading_color' => 'heading_color_style_1',
					'sep_pricing_box_heading_color'        => 'heading_color_style_2',
					'pricing_box_color'                    => 'pricing_color',
					'body_typography[color]'               => 'body_text_color',
					'pricing_divider_color'                => 'dividercolor',
				];

				$child = [];

				if ( 'parent' === $context ) {
					return $parent;
				} elseif ( 'child' === $context ) {
					return $child;
				} else {
					return [
						'parent' => $parent,
						'child'  => $child,
					];
				}
			}

			/**
			 * Render the parent shortcode
			 *
			 * @access public
			 * @since 1.0
			 * @param  array  $args    Shortcode parameters.
			 * @param  string $content Content between shortcode.
			 * @return string          HTML output.
			 */
			public function render_parent( $args, $content = '' ) {

				$defaults = FusionBuilder::set_shortcode_defaults( self::get_element_defaults( 'parent' ), $args, 'fusion_pricing_table' );

				// Make sure the bg color is set to border color in case it is not existing in the shortcode yet and border color is not specifically set.
				if ( ! array_key_exists( 'background_color_hover', $args ) && ( isset( $args['bordercolor'] ) && '' !== $args['bordercolor'] ) ) {
					$defaults['background_color_hover'] = $defaults['bordercolor'];
				}

				$this->parent_args = $defaults;
				$this->args        = $defaults;
				$this->defaults    = self::get_element_defaults( 'parent' );

				$this->parent_args['columns'] = min( $this->parent_args['columns'], 6 );

				$this->parent_args['margin_bottom'] = FusionBuilder::validate_shortcode_attr_value( $this->parent_args['margin_bottom'], 'px' );
				$this->parent_args['margin_left']   = FusionBuilder::validate_shortcode_attr_value( $this->parent_args['margin_left'], 'px' );
				$this->parent_args['margin_right']  = FusionBuilder::validate_shortcode_attr_value( $this->parent_args['margin_right'], 'px' );
				$this->parent_args['margin_top']    = FusionBuilder::validate_shortcode_attr_value( $this->parent_args['margin_top'], 'px' );

				$this->set_num_of_columns( $content );

				$this->has_top_badge = 'top' === $this->parent_args['badge_position'] && preg_match( '/badge_text=("|\')[^"\']/', $content );

				fusion_element_rendering_elements( true );

				// Buffer the columns, so stray content between them (e.g. from wpautop) cannot become a grid item.
				$this->table_columns = [];
				$rendered            = do_shortcode( $content );
				$columns_html        = implode( '', $this->table_columns );
				$this->table_columns = null;

				if ( '' === $columns_html ) {
					$columns_html = $rendered;
				}

				$html = '<div ' . FusionBuilder::attributes( 'pricingtable-shortcode' ) . '>' . $columns_html . '</div>';
				fusion_element_rendering_elements( false );

				$this->pricing_table_counter++;

				$this->on_render();

				return apply_filters( 'fusion_element_pricing_table_content', $html, $args );
			}

			/**
			 * Builds the attributes array.
			 *
			 * @access public
			 * @since 1.0
			 * @return array
			 */
			public function attr() {

				$attr = [
					'class' => '',
					'style' => '',
				];

				$type = 'sep';
				if ( '1' == $this->parent_args['type'] ) { // phpcs:ignore Universal.Operators.StrictComparisons
					$type = 'full';
				}

				$attr['class'] = 'awb-pricing-table fusion-pricing-table pricing-table-' . $this->pricing_table_counter . ' ' . $type . '-boxed-pricing';

				if ( 'stretch' === $this->parent_args['column_alignment'] ) {
					$attr['class'] .= ' awb-pricing-table--equal-heights';
				}

				if ( 'below_price' === $this->parent_args['cta_position'] ) {
					$attr['class'] .= ' awb-pricing-table--footer-after-price';
				}

				if ( '' !== $this->parent_args['column_max_width'] || '' !== $this->parent_args['column_max_width_medium'] || '' !== $this->parent_args['column_max_width_small'] ) {
					$attr['class'] .= ' awb-pricing-table--has-max-width';
				}

				// Preserve the column gap next to an expanded standout instead of letting it overlap.
				if ( 'yes' === $this->parent_args['preserve_standout_gap'] ) {
					$attr['class'] .= ' awb-pricing-table--preserve-standout-gap';
				}

				// Effective columns-per-row per breakpoint; the connected frame reads these in
				// CSS (via :nth-child) to round the outer corners of each row's edge columns.
				list( $desktop_columns, $medium_columns, $small_columns ) = $this->get_responsive_column_counts();
				$attr['class'] .= ' awb-pricing-table--columns-' . $desktop_columns;
				$attr['class'] .= ' awb-pricing-table--columns-medium-' . $medium_columns;
				$attr['class'] .= ' awb-pricing-table--columns-small-' . $small_columns;

				// More columns than fit a row means the table wraps into separate bars. Evaluated
				// per breakpoint; the standout also drops its vertical pop-out once its row wraps.
				if ( $this->child_column_count > $desktop_columns ) {
					$attr['class'] .= ' awb-pricing-table--wrapped';
				}
				if ( $this->child_column_count > $medium_columns ) {
					$attr['class'] .= ' awb-pricing-table--wrapped-medium';
				}
				if ( $this->child_column_count > $small_columns ) {
					$attr['class'] .= ' awb-pricing-table--wrapped-small';
				}

				if ( 'yes' === $this->parent_args['price_above_strikethrough'] ) {
					$attr['class'] .= ' awb-pricing-table--strike-price-above';
				}

				if ( 'yes' === $this->parent_args['price_below_strikethrough'] ) {
					$attr['class'] .= ' awb-pricing-table--strike-price-below';
				}

				if ( 'yes' === $this->parent_args['features_excluded_strikethrough'] ) {
					$attr['class'] .= ' awb-pricing-table--strike-excluded';
				}

				if ( $this->has_top_badge ) {
					$attr['class'] .= ' awb-pricing-table--has-top-badge';
				}

				$attr = fusion_builder_visibility_atts( $this->parent_args['hide_on_mobile'], $attr );

				$attr['style'] .= Fusion_Builder_Margin_Helper::get_margins_style( $this->parent_args );

				$attr['style'] .= $this->get_style_variables();

				if ( $this->parent_args['class'] ) {
					$attr['class'] .= ' ' . $this->parent_args['class'];
				}

				if ( $this->parent_args['id'] ) {
					$attr['id'] = $this->parent_args['id'];
				}

				return $attr;
			}

			/**
			 * Resolve the effective columns-per-row for each breakpoint, applying the
			 * -1 (inherit the larger breakpoint) and 0 (automatic) rules.
			 *
			 * @access protected
			 * @since 3.16
			 * @return array Indexed [ desktop, medium, small ], each clamped to 1..6.
			 */
			protected function get_responsive_column_counts() {
				$desktop = min( (int) $this->parent_args['columns'], 6 );
				$medium  = (int) $this->parent_args['columns_medium'];
				$small   = (int) $this->parent_args['columns_small'];

				if ( -1 === $medium ) {
					$medium = $desktop;
				} elseif ( 0 === $medium ) {
					$medium = 6 <= $desktop ? 3 : 2;
				} else {
					$medium = min( $medium, 6 );
				}

				if ( -1 === $small ) {
					$small = $medium;
				} elseif ( 0 === $small ) {
					$small = 6 <= $desktop ? 2 : 1;
				} else {
					$small = min( $small, 6 );
				}

				return [ max( 1, $desktop ), max( 1, $medium ), max( 1, $small ) ];
			}

			/**
			 * Get the style variables.
			 *
			 * @access protected
			 * @since 3.16
			 * @return string
			 */
			protected function get_style_variables() {
				$sanitize = fusion_library()->sanitize;

				$heading_color = $this->parent_args['heading_color_style_2'];
				if ( '1' == $this->parent_args['type'] ) { // phpcs:ignore Universal.Operators.StrictComparisons
					$heading_color = $this->parent_args['heading_color_style_1'];
				}

				// Legacy options, always output to replicate the former per-instance style block.
				$custom_vars = [
					'columns'       => min( (int) $this->parent_args['columns'], 6 ),
					'bg'            => $sanitize->color( $this->parent_args['backgroundcolor'] ),
					'bg-hover'      => $sanitize->color( $this->parent_args['background_color_hover'] ),
					'table-bg'      => $sanitize->color( $this->parent_args['bordercolor'] ),
					'divider-color' => $sanitize->color( $this->parent_args['dividercolor'] ),
					'heading-color' => $sanitize->color( $heading_color ),
					'price-color'   => $sanitize->color( $this->parent_args['pricing_color'] ),
					'body-color'    => $sanitize->color( $this->parent_args['body_text_color'] ),
				];

				$styles = $this->get_custom_css_vars( $custom_vars );

				list( $desktop_columns, $medium_columns, $small_columns ) = $this->get_responsive_column_counts();

				if ( 1 !== $medium_columns ) {
					$styles .= '--awb-columns-medium:' . $medium_columns . ';';
				}

				if ( 1 !== $small_columns ) {
					$styles .= '--awb-columns-small:' . $small_columns . ';';
				}

				// Top is the CSS default and stretch is class-based, so only center and bottom emit the var.
				if ( 'center' === $this->parent_args['column_alignment'] ) {
					$styles .= '--awb-column-alignment:center;';
				} elseif ( 'bottom' === $this->parent_args['column_alignment'] ) {
					$styles .= '--awb-column-alignment:end;';
				}

				// An explicitly set features background takes precedence over the base hover color.
				if ( '' !== $this->parent_args['backgroundcolor'] && self::get_element_defaults( 'parent' )['backgroundcolor'] !== $this->parent_args['backgroundcolor'] ) {
					$styles .= '--awb-features-bg:' . $sanitize->color( $this->parent_args['backgroundcolor'] ) . ';';
				}

				$css_vars_options = [
					// Layout.
					'column_gap'                   => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'column_gap_medium'            => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'column_gap_small'             => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'row_gap'                      => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'row_gap_medium'               => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'row_gap_small'                => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'column_max_width'             => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'column_max_width_medium'      => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'column_max_width_small'       => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'columns_alignment',

					// Column box.
					'border_size'                  => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'inner_border_size'            => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'inner_border_color'           => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],

					// Highlight Badge.
					'badge_padding_top'            => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'badge_padding_right'          => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'badge_padding_bottom'         => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'badge_padding_left'           => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'badge_font_size'              => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'badge_line_height'            => [ 'callback' => [ 'Fusion_Sanitize', 'size' ] ],
					'badge_letter_spacing'         => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'badge_text_transform',
					'badge_bg_color'               => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'badge_text_color'             => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],

					// Heading area.
					'sub_heading_font_size'        => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'sub_heading_line_height'      => [ 'callback' => [ 'Fusion_Sanitize', 'size' ] ],
					'sub_heading_letter_spacing'   => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'sub_heading_text_transform',
					'sub_heading_color'            => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'description_font_size'        => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'description_line_height'      => [ 'callback' => [ 'Fusion_Sanitize', 'size' ] ],
					'description_letter_spacing'   => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'description_text_transform',
					'description_color'            => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'heading_bg_color'             => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'heading_padding_top'          => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'heading_padding_right'        => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'heading_padding_bottom'       => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'heading_padding_left'         => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],

					// Pricing area.
					'price_above_font_size'        => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'price_above_line_height'      => [ 'callback' => [ 'Fusion_Sanitize', 'size' ] ],
					'price_above_letter_spacing'   => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'price_above_text_transform',
					'price_above_color'            => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'price_above_bg_color'         => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'price_above_border_radius'    => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'price_font_size'              => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'price_line_height'            => [ 'callback' => [ 'Fusion_Sanitize', 'size' ] ],
					'price_letter_spacing'         => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'price_text_transform',
					'currency_font_size'           => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'currency_color'               => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'time_font_size'               => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'time_color'                   => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'price_below_font_size'        => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'price_below_line_height'      => [ 'callback' => [ 'Fusion_Sanitize', 'size' ] ],
					'price_below_letter_spacing'   => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'price_below_text_transform',
					'price_below_color'            => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'price_below_bg_color'         => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'price_below_border_radius'    => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'pricing_bg_color'             => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'pricing_padding_top'          => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'pricing_padding_right'        => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'pricing_padding_bottom'       => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'pricing_padding_left'         => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],

					// Features area.
					'features_alignment',
					'features_padding_top'         => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'features_padding_right'       => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'features_padding_bottom'      => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'features_padding_left'        => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'features_font_size'           => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'features_line_height'         => [ 'callback' => [ 'Fusion_Sanitize', 'size' ] ],
					'features_letter_spacing'      => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'features_text_transform',
					'body_text_hover_color'        => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'features_icon_color'          => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'features_excluded_icon_color' => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'features_stripe_color'        => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],

					// CTA area.
					'cta_bg_color'                 => [ 'callback' => [ 'Fusion_Sanitize', 'color' ] ],
					'cta_padding_top'              => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'cta_padding_right'            => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'cta_padding_bottom'           => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
					'cta_padding_left'             => [ 'callback' => [ 'Fusion_Sanitize', 'get_value_with_unit' ] ],
				];

				// Connected columns sit flush, so never emit a gap - not even a leftover from a previous separated config.
				if ( '1' == $this->parent_args['type'] ) { // phpcs:ignore Universal.Operators.StrictComparisons
					unset(
						$css_vars_options['column_gap'],
						$css_vars_options['column_gap_medium'],
						$css_vars_options['column_gap_small'],
						$css_vars_options['row_gap'],
						$css_vars_options['row_gap_medium'],
						$css_vars_options['row_gap_small']
					);
				}

				$styles .= $this->get_css_vars_for_options( $css_vars_options );
				$styles .= Fusion_Builder_Border_Radius_Helper::get_border_radius_vars( $this->args );
				$styles .= Fusion_Builder_Box_Shadow_Helper::get_box_shadow_css_var( '--awb-box-shadow', $this->args );

				foreach ( [ 'badge_font', 'sub_heading_font', 'description_font', 'price_above_font', 'price_font', 'price_below_font', 'features_font' ] as $font_option ) {
					$styles .= $this->get_font_styling_vars( $font_option );
				}

				// The title uses the heading typography of the chosen HTML tag, so custom values override the heading vars.
				$title_typography = Fusion_Builder_Element_Helper::get_font_styling( $this->args, 'title_font', 'array' );
				$font_var_args    = [
					'font-family'    => isset( $title_typography['font-family'] ) && $title_typography['font-family'] ? $title_typography['font-family'] : '',
					'font-weight'    => isset( $title_typography['font-weight'] ) && $title_typography['font-weight'] ? $title_typography['font-weight'] : '',
					'font-style'     => isset( $title_typography['font-style'] ) && $title_typography['font-style'] ? $title_typography['font-style'] : '',
					'font-size'      => '' !== $this->args['title_font_size'] ? $sanitize->get_value_with_unit( $this->args['title_font_size'] ) : '',
					'letter-spacing' => '' !== $this->args['title_letter_spacing'] ? $sanitize->get_value_with_unit( $this->args['title_letter_spacing'] ) : '',
					'line-height'    => $this->args['title_line_height'],
					'text-transform' => $this->args['title_text_transform'],
				];

				$title_tag = $this->get_title_tag();

				if ( in_array( $title_tag, [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ], true ) ) {
					$styles .= $this->get_heading_font_vars( $title_tag, $font_var_args );

					// Tag-resolved bridge var, so the standout text scale can multiply the heading size.
					$styles .= '--awb-title-font-size:var(--' . $title_tag . '_typography-font-size);';
				} else {

					// DIV and P titles get the H3 font family typography from the theme, but keep the inherited size.
					if ( '' !== $font_var_args['font-size'] ) {
						$styles .= '--awb-title-font-size:' . $font_var_args['font-size'] . ';';
					}

					unset( $font_var_args['font-size'] );
					$styles .= $this->get_heading_font_vars( 'h3', $font_var_args );
				}

				return $styles;
			}

			/**
			 * Get the HTML tag used for column titles.
			 *
			 * @access protected
			 * @since 3.16
			 * @return string
			 */
			protected function get_title_tag() {
				$heading_size = isset( $this->parent_args['heading_size'] ) ? $this->parent_args['heading_size'] : '3';

				if ( in_array( $heading_size, [ 'div', 'p' ], true ) ) {
					return $heading_size;
				}

				$heading_size = (int) $heading_size;

				return 'h' . ( 0 < $heading_size && 7 > $heading_size ? $heading_size : 3 );
			}

			/**
			 * Whether the badges are displayed as corner ribbons.
			 *
			 * @access protected
			 * @since 3.16
			 * @return bool
			 */
			protected function is_ribbon_position() {
				return in_array( $this->parent_args['badge_position'], [ 'top_left', 'top_right' ], true );
			}

			/**
			 * Whether the badges are wrapped corner ribbons.
			 *
			 * @access protected
			 * @since 3.16
			 * @return bool
			 */
			protected function is_wrapped_ribbon() {
				return $this->is_ribbon_position() && 'wrapped' === $this->parent_args['badge_style'];
			}

			/**
			 * Whether the badges are rendered inside the heading area.
			 *
			 * @access protected
			 * @since 3.16
			 * @return bool
			 */
			protected function is_heading_badge() {
				return in_array( $this->parent_args['badge_position'], [ 'inline_left', 'inline_right', 'vertical_left', 'vertical_right' ], true );
			}

			/**
			 * Render the child shortcode
			 *
			 * @access public
			 * @since 1.0
			 * @param  array  $args    Shortcode parameters.
			 * @param  string $content Content between shortcode.
			 * @return string          HTML output.
			 */
			public function render_child_column( $args, $content = '' ) {
				$this->maybe_set_orphan_parent_args();

				$defaults = FusionBuilder::set_shortcode_defaults(
					self::get_element_defaults( 'child' ),
					$args,
					'fusion_pricing_column'
				);

				self::$child_column_args = $defaults;

				// Buffer the inner shortcodes into separate sections, so they can be assembled in any order.
				$this->column_sections = [
					'price'  => '',
					'rows'   => [],
					'footer' => '',
				];

				$extra_content         = trim( do_shortcode( $content ) );
				$sections              = $this->column_sections;
				$this->column_sections = null;

				$title_tag = $this->get_title_tag();

				$badge = '';
				if ( '' !== $defaults['badge_text'] ) {
					$badge_position = str_replace( '_', '-', $this->parent_args['badge_position'] );
					$badge_classes  = 'awb-pricing-table__badge awb-pricing-table__badge--' . esc_attr( $badge_position );

					if ( $this->is_wrapped_ribbon() ) {
						$badge_classes .= ' awb-pricing-table__badge--wrapped';
					}

					$badge = '<span class="' . $badge_classes . '"><span class="awb-pricing-table__badge-text">' . $defaults['badge_text'] . '</span></span>';
				}

				$heading = '<div ' . FusionBuilder::attributes( 'panel-heading awb-pricing-table__heading' ) . '>';

				// Inline and vertical badges live inside the heading area.
				if ( '' !== $badge && $this->is_heading_badge() ) {
					$heading .= $badge;
				}

				$heading .= '<' . $title_tag . ' ' . FusionBuilder::attributes( 'title-row awb-pricing-table__title' ) . '>' . $defaults['title'] . '</' . $title_tag . '>';

				if ( '' !== $defaults['sub_heading'] ) {
					$heading .= '<span class="awb-pricing-table__sub-title">' . $defaults['sub_heading'] . '</span>';
				}

				if ( '' !== $defaults['description'] ) {
					$heading .= '<p class="awb-pricing-table__description">' . $defaults['description'] . '</p>';
				}

				$heading .= '</div>';

				$features = '';
				if ( ! empty( $sections['rows'] ) ) {
					$features = '<ul ' . FusionBuilder::attributes( 'list-group' ) . '>' . implode( '', $sections['rows'] ) . '</ul>';
				}

				$body = $heading . $sections['price'];

				if ( 'below_price' === $this->parent_args['cta_position'] ) {
					$body .= $sections['footer'] . $features;
				} else {
					$body .= $features . $sections['footer'];
				}

				if ( '' !== $extra_content ) {
					$body .= $extra_content;
				}

				$html  = '<div ' . FusionBuilder::attributes( 'pricingtable-shortcode-column-wrapper' ) . '>';
				$html .= '<div ' . FusionBuilder::attributes( 'panel-container' ) . '>';

				if ( '' !== $badge && ! $this->is_heading_badge() ) {
					$html .= $badge;
				}

				$html .= '<div ' . FusionBuilder::attributes( 'fusion-panel' ) . '>' . $body . '</div>';
				$html .= '</div></div>';

				if ( is_array( $this->table_columns ) ) {
					$this->table_columns[] = $html;
					return '';
				}

				return $html;
			}

			/**
			 * Builds the column-wrapper attributes array.
			 *
			 * @access public
			 * @since 1.0
			 * @return array
			 */
			public function column_wrapper_attr() {

				$attr     = [];
				$sanitize = fusion_library()->sanitize;

				$attr['class'] = 'panel-wrapper awb-pricing-table__column fusion-column column';

				if ( 'yes' === self::$child_column_args['standout'] ) {
					$attr['class'] .= ' standout';
				}

				// Row start/end are derived in CSS (:nth-child on the parent's --columns-* class), not marked here.

				// Per-column color overrides: re-declare the parent's CSS vars on the
				// column wrapper, so they only apply to this column's subtree.
				$style      = '';
				$color_vars = [
					'backgroundcolor'        => '--awb-bg',
					'background_color_hover' => '--awb-bg-hover',
					'bordercolor'            => '--awb-table-bg',
					'inner_border_color'     => '--awb-inner-border-color',
					'dividercolor'           => '--awb-divider-color',
					'badge_bg_color'         => '--awb-badge-bg-color',
					'badge_text_color'       => '--awb-badge-text-color',
					'heading_color'          => '--awb-heading-color',
					'sub_heading_color'      => '--awb-sub-heading-color',
					'description_color'      => '--awb-description-color',
					'price_above_color'      => '--awb-price-above-color',
					'price_above_bg_color'   => '--awb-price-above-bg-color',
					'pricing_color'          => '--awb-price-color',
					'currency_color'         => '--awb-currency-color',
					'time_color'             => '--awb-time-color',
					'price_below_color'      => '--awb-price-below-color',
					'price_below_bg_color'   => '--awb-price-below-bg-color',
					'heading_bg_color'       => '--awb-heading-bg-color',
					'pricing_bg_color'       => '--awb-pricing-bg-color',
					'cta_bg_color'           => '--awb-cta-bg-color',
					'body_text_color'        => '--awb-body-color',
					'body_text_hover_color'  => '--awb-body-text-hover-color',
					'features_icon_color'    => '--awb-features-icon-color',
					'features_excluded_icon_color' => '--awb-features-excluded-icon-color',
					'features_stripe_color'  => '--awb-features-stripe-color',
				];

				foreach ( $color_vars as $param => $var_name ) {
					if ( '' !== self::$child_column_args[ $param ] ) {
						$style .= $var_name . ':' . $sanitize->color( self::$child_column_args[ $param ] ) . ';';
					}
				}

				if ( '' !== self::$child_column_args['backgroundcolor'] ) {
					$style .= '--awb-features-bg:' . $sanitize->color( self::$child_column_args['backgroundcolor'] ) . ';';
				}

				if ( 'yes' === self::$child_column_args['standout'] && '' !== self::$child_column_args['standout_expansion'] ) {
					$style .= '--awb-standout-expansion:' . $sanitize->get_value_with_unit( self::$child_column_args['standout_expansion'] ) . ';';
				}

				if ( 'yes' === self::$child_column_args['standout'] && '' !== self::$child_column_args['standout_scale'] && '1' !== self::$child_column_args['standout_scale'] ) {
					$style .= '--awb-standout-scale:' . floatval( self::$child_column_args['standout_scale'] ) . ';';
				}

				if ( '' !== $style ) {
					$attr['style'] = $style;
				}

				if ( '' !== self::$child_column_args['badge_text'] ) {
					$attr['class'] .= ' awb-pricing-table__column--has-badge';

					if ( $this->is_ribbon_position() ) {
						$attr['class'] .= ' awb-pricing-table__column--has-ribbon';

						if ( $this->is_wrapped_ribbon() ) {
							$attr['class'] .= ' awb-pricing-table__column--ribbon-wrapped';
						}
					}
				}

				if ( self::$child_column_args['class'] ) {
					$attr['class'] .= ' ' . self::$child_column_args['class'];
				}

				if ( self::$child_column_args['id'] ) {
					$attr['id'] = self::$child_column_args['id'];
				}

				return $attr;
			}

			/**
			 * Render the child shortcode
			 *
			 * @access public
			 * @since 1.0
			 * @param  array  $args    Shortcode parameters.
			 * @param  string $content Content between shortcode.
			 * @return string          HTML output.
			 */
			public function render_child_price( $args, $content = '' ) {

				$defaults = FusionBuilder::set_shortcode_defaults(
					[
						'currency'          => '',
						'currency_position' => '',
						'price'             => '',
						'time'              => '',
					],
					$args,
					'fusion_pricing_price'
				);

				// A dynamic-data price is resolved into the column args and overrides the static one.
				if ( isset( self::$child_column_args['price'] ) && '' !== self::$child_column_args['price'] ) {
					$defaults['price'] = self::$child_column_args['price'];
				}
				$content  = apply_filters( 'fusion_shortcode_content', $content, 'fusion_pricing_price', $args );

				extract( $defaults );

				// An empty currency position inherits the position set on the parent element.
				if ( '' === $currency_position ) {
					$currency_position = isset( $this->parent_args['currency_position'] ) ? $this->parent_args['currency_position'] : 'left';
				}

				$above = '';
				if ( is_array( self::$child_column_args ) && '' !== self::$child_column_args['price_above'] ) {
					$above = '<div class="awb-pricing-table__price-above"><span>' . self::$child_column_args['price_above'] . '</span></div>';
				}

				$below = '';
				if ( is_array( self::$child_column_args ) && '' !== self::$child_column_args['price_below'] ) {
					$below = '<div class="awb-pricing-table__price-below"><span>' . self::$child_column_args['price_below'] . '</span></div>';
				}

				$html = '<div ' . FusionBuilder::attributes( 'panel-body pricing-row' ) . '>' . $above . $below . '</div>' . do_shortcode( $content );

				if ( isset( $price ) && ( ! empty( $price ) || ( '0' == $price ) ) ) { // phpcs:ignore Universal.Operators.StrictComparisons

					$pricing_class = $pricing = '';
					$price         = explode( '.', $price );
					if ( array_key_exists( '1', $price ) ) {
						$pricing_class = 'price-with-decimal';
					}

					if ( 'right' !== $currency_position ) {
						$pricing = '<span ' . FusionBuilder::attributes( 'currency' ) . '>' . $currency . '</span>';
					}

					$pricing .= '<span ' . FusionBuilder::attributes( 'integer-part' ) . '>' . $price[0] . '</span>';

					if ( array_key_exists( '1', $price ) ) {
						$pricing .= '<sup ' . FusionBuilder::attributes( 'decimal-part' ) . '>' . $price[1] . '</sup>';
					}

					if ( 'right' === $currency_position ) {
						$currency_classes = 'currency pos-right';
						$time_classes     = 'time pos-right';
						if ( ! array_key_exists( '1', $price ) ) {
							$currency_classes = 'currency pos-right price-without-decimal';
							$time_classes     = 'time pos-right price-without-decimal';
						}

						$pricing .= '<span ' . FusionBuilder::attributes( $currency_classes ) . '>' . $currency . '</span>';

						if ( $time ) {
							$pricing .= '<span ' . FusionBuilder::attributes( $time_classes ) . '>' . $time . '</span>';
						}
					}

					if ( $time && 'right' !== $currency_position ) {
						$time_classes = 'time';
						if ( ! array_key_exists( '1', $price ) ) {
							$time_classes = 'time price-without-decimal';
						}

						$pricing .= '<span ' . FusionBuilder::attributes( $time_classes ) . '>' . $time . '</span>';
					}

					$html  = '<div ' . FusionBuilder::attributes( 'panel-body pricing-row' ) . '>' . $above;
					$html .= '<div ' . FusionBuilder::attributes( 'price ' . $pricing_class ) . '>' . $pricing . '</div>' . $below . '</div>';
					$html .= do_shortcode( $content );

				}

				if ( is_array( $this->column_sections ) ) {
					$this->column_sections['price'] .= $html;
					return '';
				}

				return $html;
			}

			/**
			 * Render the child shortcode
			 *
			 * @access public
			 * @since 1.0
			 * @param  array  $args    Shortcode parameters.
			 * @param  string $content Content between shortcode.
			 * @return string          HTML output.
			 */
			public function render_child_row( $args, $content = '' ) {

				// A row starting with "- " is an excluded feature. On the front-end
				// wptexturize has already turned that leading hyphen into a dash entity
				// by the time the shortcode runs, so those forms are markers as well.
				$row_content = ltrim( $content );
				$is_excluded = 1 === preg_match( '/^(?:-|&#8211;|&#8212;|&ndash;|&mdash;|\xE2\x80\x93|\xE2\x80\x94)(?:\s|&nbsp;|\xC2\xA0)/', $row_content, $marker );
				$icon_name   = $is_excluded && '' !== $this->parent_args['features_excluded_icon'] ? $this->parent_args['features_excluded_icon'] : $this->parent_args['features_icon'];
				$classes     = 'list-group-item normal-row' . ( $is_excluded ? ' awb-pricing-table__feature--excluded' : '' );
				$inner       = do_shortcode( $is_excluded ? substr( $row_content, strlen( $marker[0] ) ) : $content );

				if ( '' !== $icon_name || $is_excluded ) {
					$icon  = '' !== $icon_name ? '<span class="awb-pricing-table__feature-icon"><i class="' . esc_attr( fusion_font_awesome_name_handler( $icon_name ) ) . '" aria-hidden="true"></i></span>' : '';
					$sr    = $is_excluded ? '<span class="awb-pricing-table__sr-only"> (' . esc_html__( 'not included', 'fusion-builder' ) . ')</span>' : '';
					$inner = $icon . '<span class="awb-pricing-table__feature-text">' . $inner . '</span>' . $sr;
				}

				$html = '<li ' . FusionBuilder::attributes( $classes ) . '>' . $inner . '</li>';

				if ( is_array( $this->column_sections ) ) {
					$this->column_sections['rows'][] = $html;
					return '';
				}

				return $html;
			}

			/**
			 * Render the child shortcode
			 *
			 * @access public
			 * @since 1.0
			 * @param  array  $args    Shortcode parameters.
			 * @param  string $content Content between shortcode.
			 * @return string          HTML output.
			 */
			public function render_child_footer( $args, $content = '' ) {

				$html = '<div ' . FusionBuilder::attributes( 'panel-footer footer-row' ) . '>' . do_shortcode( $content ) . '</div>';

				if ( is_array( $this->column_sections ) ) {
					$this->column_sections['footer'] .= $html;
					return '';
				}

				return $html;
			}

			/**
			 * Calculate the number of columns automatically.
			 *
			 * @access public
			 * @since 1.0
			 * @param string $content Content to be parsed.
			 */
			public function set_num_of_columns( $content ) {
				// Total child columns, regardless of the columns-per-row setting, used to detect wrapping.
				preg_match_all( '/(\[fusion_pricing_column (.*?)\](.*?)\[\/fusion_pricing_column\])/s', $content, $matches );
				$this->child_column_count = is_array( $matches ) && ! empty( $matches[0] ) ? count( $matches[0] ) : 1;

				if ( ! $this->parent_args['columns'] ) {
					$this->parent_args['columns'] = min( $this->child_column_count, 6 );
				} elseif ( $this->parent_args['columns'] > 6 ) {
					$this->parent_args['columns'] = 6;
				}
			}

			/**
			 * Load base CSS.
			 *
			 * @access public
			 * @since 3.0
			 * @return void
			 */
			public function add_css_files() {
				FusionBuilder()->add_element_css( FUSION_BUILDER_PLUGIN_DIR . 'assets/css/shortcodes/pricingtable.min.css' );

				Fusion_Media_Query_Scripts::$media_query_assets[] = [
					'awb-pricingtable-md',
					FUSION_BUILDER_PLUGIN_DIR . 'assets/css/media/pricingtable-md.min.css',
					[],
					FUSION_BUILDER_VERSION,
					Fusion_Media_Query_Scripts::get_media_query_from_key( 'fusion-max-medium' ),
				];

				Fusion_Media_Query_Scripts::$media_query_assets[] = [
					'awb-pricingtable-sm',
					FUSION_BUILDER_PLUGIN_DIR . 'assets/css/media/pricingtable-sm.min.css',
					[],
					FUSION_BUILDER_VERSION,
					Fusion_Media_Query_Scripts::get_media_query_from_key( 'fusion-max-small' ),
				];
			}

			/**
			 * Adds settings to element options panel.
			 *
			 * @access public
			 * @since 1.1
			 * @return array $sections Pricing Table settings.
			 */
			public function add_options() {
				global $dynamic_css_helpers;

				$fusion_settings = awb_get_fusion_settings();

				return [
					'pricing_table_shortcode_section' => [
						'label'       => esc_html__( 'Pricing Table', 'fusion-builder' ),
						'description' => '',
						'id'          => 'pricing_table_shortcode_section',
						'type'        => 'accordion',
						'icon'        => 'fusiona-dollar',
						'fields'      => [
							'full_boxed_pricing_box_heading_color' => [
								'label'       => esc_html__( 'Connected Pricing Box Heading Color', 'fusion-builder' ),
								'description' => esc_html__( 'Controls the color of connected pricing table headings.', 'fusion-builder' ),
								'id'          => 'full_boxed_pricing_box_heading_color',
								'default'     => 'var(--awb-color8)',
								'type'        => 'color-alpha',
								'transport'   => 'postMessage',
							],
							'sep_pricing_box_heading_color' => [
								'label'       => esc_html__( 'Separated Pricing Box Heading Color', 'fusion-builder' ),
								'description' => esc_html__( 'Controls the color of separated pricing table headings.', 'fusion-builder' ),
								'id'          => 'sep_pricing_box_heading_color',
								'default'     => 'var(--awb-color8)',
								'type'        => 'color-alpha',
								'transport'   => 'postMessage',
							],
							'pricing_box_color'     => [
								'label'       => esc_html__( 'Pricing Box Price Color', 'fusion-builder' ),
								'description' => esc_html__( 'Controls the color of the price.', 'fusion-builder' ),
								'id'          => 'pricing_box_color',
								'default'     => 'var(--awb-color4)',
								'type'        => 'color-alpha',
								'css_vars'    => [
									[
										'name'     => '--pricing_box_color',
										'callback' => [ 'sanitize_color' ],
									],
								],
							],
							'pricing_bg_color'      => [
								'label'       => esc_html__( 'Pricing Box Background Color', 'fusion-builder' ),
								'description' => esc_html__( 'Controls the color of the main background and title background.', 'fusion-builder' ),
								'id'          => 'pricing_bg_color',
								'default'     => 'var(--awb-color1)',
								'type'        => 'color-alpha',
								'transport'   => 'postMessage',
							],
							'pricing_background_color_hover' => [
								'label'       => esc_html__( 'Pricing Box Background Hover Color', 'fusion-builder' ),
								'description' => esc_html__( 'Controls the hover color of the main background and title background.', 'fusion-builder' ),
								'id'          => 'pricing_background_color_hover',
								'default'     => 'var(--awb-color2)',
								'type'        => 'color-alpha',
								'transport'   => 'postMessage',
							],
							'pricing_border_color'  => [
								'label'       => esc_html__( 'Pricing Box Border Color', 'fusion-builder' ),
								'description' => esc_html__( 'Controls the color of the outer border, pricing row and footer row backgrounds.', 'fusion-builder' ),
								'id'          => 'pricing_border_color',
								'default'     => 'var(--awb-color2)',
								'type'        => 'color-alpha',
								'transport'   => 'postMessage',
							],
							'pricing_divider_color' => [
								'label'       => esc_html__( 'Pricing Box Divider Color', 'fusion-builder' ),
								'description' => esc_html__( 'Controls the color of the dividers in-between pricing rows.', 'fusion-builder' ),
								'id'          => 'pricing_divider_color',
								'default'     => 'var(--awb-color3)',
								'type'        => 'color-alpha',
								'transport'   => 'postMessage',
							],
						],
					],
				];
			}
		}
	}

	new FusionSC_PricingTable();

}

/**
 * Map shortcode to Avada Builder
 *
 * @since 1.0
 */
function fusion_element_pricing_table() {
	$fusion_settings = awb_get_fusion_settings();

	fusion_builder_map(
		fusion_builder_frontend_data(
			'FusionSC_PricingTable',
			[
				'name'                                    => esc_attr__( 'Pricing Table', 'fusion-builder' ),
				'shortcode'                               => 'fusion_pricing_table',
				'multi'                                   => 'multi_element_parent',
				'element_child'                           => 'fusion_pricing_column',
				'child_ui'                                => true,
				'icon'                                    => 'fusiona-dollar',
				'preview'                                 => FUSION_BUILDER_PLUGIN_DIR . 'inc/templates/previews/fusion-pricing-table-preview.php',
				'preview_id'                              => 'fusion-builder-block-module-pricing-table-preview-template',

				'custom_settings_view_name'               => 'ModuleSettingsTableView',
				'custom_settings_view_js'                 => FUSION_BUILDER_PLUGIN_URL . 'inc/templates/custom/js/fusion-pricing-table-settings.js',
				'custom_settings_template_file'           => FUSION_BUILDER_PLUGIN_DIR . 'inc/templates/custom/fusion-pricing-table-settings.php',
				'custom_settings_backend_only'            => true,
				'on_save'                                 => 'pricingTableShortcodeFilter',
				'on_change'                               => 'pricingTableShortcodeFilter',
				'admin_enqueue_js'                        => FUSION_BUILDER_PLUGIN_URL . 'shortcodes/js/fusion-pricing-table.js',
				'help_url'                                => 'https://classic.avada.com/documentation/pricing-table-element/',
				'params'                                  => [
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Type', 'fusion-builder' ),
						'description' => esc_attr__( 'Select whether the pricing columns are connected, sharing one frame, or displayed as separate boxes.', 'fusion-builder' ),
						'param_name'  => 'type',
						'value'       => [
							'1' => esc_attr__( 'Connected', 'fusion-builder' ),
							'2' => esc_attr__( 'Separated', 'fusion-builder' ),
						],
						'default'     => '1',
					],
					[
						'type'        => 'range',
						'heading'     => esc_attr__( 'Number of Columns', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the number of columns per row. Leave at 0 to fit all pricing columns into a single row, up to a maximum of 6.', 'fusion-builder' ),
						'param_name'  => 'columns',
						'value'       => '0',
						'min'         => '-1',
						'max'         => '6',
						'step'        => '1',
						'responsive'  => [
							'state'        => 'large',
							'values'       => [
								'medium' => '-1',
								'small'  => '1',
							],
							'descriptions' => [
								'medium' => esc_attr__( 'Set the number of columns per row. Leave at 0 for automatic column breaking. Set to -1 to inherit.', 'fusion-builder' ),
								'small'  => esc_attr__( 'Set the number of columns per row. Leave at 0 for automatic column breaking. Set to -1 to inherit.', 'fusion-builder' ),
							],
						],
					],
					[
						'type'             => 'dimension',
						'remove_from_atts' => true,
						'heading'          => esc_attr__( 'Gap', 'fusion-builder' ),
						'description'      => esc_attr__( 'Set the column and row gap between the pricing columns. The row gap applies once columns wrap onto multiple rows. Enter values including any valid CSS unit, ex: 24px. Leave empty for the default spacing of 24px.', 'fusion-builder' ),
						'param_name'       => 'dimension_gap',
						'value'            => [
							'column_gap' => '',
							'row_gap'    => '',
						],
						'responsive'       => [
							'state'             => 'large',
							'additional_states' => [ 'medium', 'small' ],
						],
						// Connected columns sit flush by definition, so the gap only applies to the separated style.
						'dependency'       => [
							[
								'element'  => 'type',
								'value'    => '2',
								'operator' => '==',
							],
						],
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Column Maximum Width', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the maximum width of each pricing column. Enter value including any valid CSS unit, ex: 320px. Leave empty for the columns to share the full available width.', 'fusion-builder' ),
						'param_name'  => 'column_max_width',
						'value'       => '',
						'responsive'  => [
							'state'        => 'large',
							'descriptions' => [
								'medium' => esc_attr__( 'Set the maximum width of each pricing column. Leave empty to inherit the value from the larger screen size.', 'fusion-builder' ),
								'small'  => esc_attr__( 'Set the maximum width of each pricing column. Leave empty to inherit the value from the larger screen size.', 'fusion-builder' ),
							],
						],
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Columns Horizontal Alignment', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose how the pricing columns are aligned horizontally in the space their maximum width leaves free.', 'fusion-builder' ),
						'param_name'  => 'columns_alignment',
						'value'       => [
							''       => esc_attr__( 'Default', 'fusion-builder' ),
							'left'   => esc_attr__( 'Left', 'fusion-builder' ),
							'center' => esc_attr__( 'Center', 'fusion-builder' ),
							'right'  => esc_attr__( 'Right', 'fusion-builder' ),
						],
						'icons'       => [
							''       => '<span class="fusiona-cog"></span>',
							'left'   => '<span class="fusiona-horizontal-flex-start"></span>',
							'center' => '<span class="fusiona-horizontal-flex-center"></span>',
							'right'  => '<span class="fusiona-horizontal-flex-end"></span>',
						],
						'grid_layout' => true,
						'back_icons'  => true,
						'default'     => '',
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Column Vertical Alignment', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose how columns of unequal height align vertically. Stretch makes all pricing columns equally tall and aligns the heading, price, features and footer areas across columns.', 'fusion-builder' ),
						'param_name'  => 'column_alignment',
						'value'       => [
							'top'     => esc_attr__( 'Top', 'fusion-builder' ),
							'center'  => esc_attr__( 'Center', 'fusion-builder' ),
							'bottom'  => esc_attr__( 'Bottom', 'fusion-builder' ),
							'stretch' => esc_attr__( 'Stretch', 'fusion-builder' ),
						],
						'icons'       => [
							'top'     => '<span class="fusiona-align-top-columns"></span>',
							'center'  => '<span class="fusiona-align-center-columns"></span>',
							'bottom'  => '<span class="fusiona-align-bottom-columns"></span>',
							'stretch' => '<span class="fusiona-full-height"></span>',
						],
						'grid_layout' => true,
						'back_icons'  => true,
						'default'     => 'top',
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Column Border Size', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the size of the outer border area surrounding each pricing column. Enter value including any valid CSS unit, ex: 9px. Leave empty for the default of 9px.', 'fusion-builder' ),
						'param_name'  => 'border_size',
						'value'       => '',
						'default'     => '9px',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => __( 'Column Border & Base Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the outer border area surrounding each pricing column. It also serves as the base background of the pricing and CTA areas, which can be overridden with their individual background color options.', 'fusion-builder' ),
						'param_name'  => 'bordercolor',
						'value'       => '',
						'default'     => $fusion_settings->get( 'pricing_border_color' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					'fusion_border_radius_placeholder'      => [
						'heading' => esc_attr__( 'Column Border Radius', 'fusion-builder' ),
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Inner Border Size', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the size of the hairline surrounding each column\'s content area, inside the outer border. Enter value including any valid CSS unit, ex: 1px. Leave empty for the default of 1px, use 0px to remove it.', 'fusion-builder' ),
						'param_name'  => 'inner_border_size',
						'value'       => '',
						'default'     => '1px',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Inner Border Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the hairline surrounding each column\'s content area. Leave empty to use the divider color.', 'fusion-builder' ),
						'param_name'  => 'inner_border_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Divider Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the dividers in-between the content sections and feature rows.', 'fusion-builder' ),
						'param_name'  => 'dividercolor',
						'value'       => '',
						'default'     => $fusion_settings->get( 'pricing_divider_color' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					'fusion_box_shadow_placeholder'         => [],
					[
						'type'        => 'select',
						'heading'     => esc_attr__( 'Highlight Badge Position', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose how column badges are displayed. As a full-width cap on top, as a chip or vertical band inside the heading area, or as a corner ribbon. The badge text is set on each pricing column.', 'fusion-builder' ),
						'param_name'  => 'badge_position',
						'value'       => [
							'top'            => esc_attr__( 'Top', 'fusion-builder' ),
							'inline_left'    => esc_attr__( 'Inline Left', 'fusion-builder' ),
							'inline_right'   => esc_attr__( 'Inline Right', 'fusion-builder' ),
							'vertical_left'  => esc_attr__( 'Vertical Left', 'fusion-builder' ),
							'vertical_right' => esc_attr__( 'Vertical Right', 'fusion-builder' ),
							'top_left'       => esc_attr__( 'Ribbon Left', 'fusion-builder' ),
							'top_right'      => esc_attr__( 'Ribbon Right', 'fusion-builder' ),
						],
						'default'     => 'top',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Ribbon Style', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose "Wrapped" to make the ribbon look like it wraps around the column box, with folded ends and a shadow.', 'fusion-builder' ),
						'param_name'  => 'badge_style',
						'value'       => [
							'flat'    => esc_attr__( 'Flat', 'fusion-builder' ),
							'wrapped' => esc_attr__( 'Wrapped', 'fusion-builder' ),
						],
						'default'     => 'flat',
						'dependency'  => [
							[
								'element'  => 'badge_position',
								'value'    => 'top',
								'operator' => '!=',
							],
							[
								'element'  => 'badge_position',
								'value'    => 'inline_left',
								'operator' => '!=',
							],
							[
								'element'  => 'badge_position',
								'value'    => 'inline_right',
								'operator' => '!=',
							],
							[
								'element'  => 'badge_position',
								'value'    => 'vertical_left',
								'operator' => '!=',
							],
							[
								'element'  => 'badge_position',
								'value'    => 'vertical_right',
								'operator' => '!=',
							],
						],
					],					
					[
						'type'             => 'dimension',
						'remove_from_atts' => true,
						'heading'          => esc_attr__( 'Highlight Badge Padding', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the padding and thereby the size of the badges. Enter values including any valid CSS unit, ex: 8px. Not available for ribbons.', 'fusion-builder' ),
						'param_name'       => 'badge_padding',
						'value'            => [
							'badge_padding_top'    => '',
							'badge_padding_right'  => '',
							'badge_padding_bottom' => '',
							'badge_padding_left'   => '',
						],
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'dependency'       => [
							[
								'element'  => 'badge_position',
								'value'    => 'top_left',
								'operator' => '!=',
							],
							[
								'element'  => 'badge_position',
								'value'    => 'top_right',
								'operator' => '!=',
							],
						],
					],
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Highlight Badge Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of column badges. The badge and ribbon shapes scale proportionally with the font size.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'badge_typography',
						'choices'          => [
							'font-family'    => 'badge_font',
							'font-size'      => 'badge_font_size',
							'line-height'    => 'badge_line_height',
							'letter-spacing' => 'badge_letter_spacing',
							'text-transform' => 'badge_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '0.875rem',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Highlight Badge Text Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of column badges.', 'fusion-builder' ),
						'param_name'  => 'badge_text_color',
						'value'       => '',
						'default'     => 'var(--awb-color1)',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Highlight Badge Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of column badges.', 'fusion-builder' ),
						'param_name'  => 'badge_bg_color',
						'value'       => '',
						'default'     => 'var(--awb-color5)',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],					
					[
						'type'        => 'select',
						'heading'     => esc_attr__( 'Heading HTML Tag', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose the HTML tag of the main heading, either div, p or the heading tag, h1-h6.', 'fusion-builder' ),
						'param_name'  => 'heading_size',
						'value'       => [
							'1'   => 'H1',
							'2'   => 'H2',
							'3'   => 'H3',
							'4'   => 'H4',
							'5'   => 'H5',
							'6'   => 'H6',
							'div' => 'DIV',
							'p'   => 'P',
						],
						'default'     => '3',
					],
					[
						'type'             => 'dimension',
						'remove_from_atts' => true,
						'heading'          => esc_attr__( 'Heading Padding', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the padding of the heading area. Enter values including any valid CSS unit, ex: 15px. On standout columns, the expansion is added on top of the vertical paddings.', 'fusion-builder' ),
						'param_name'       => 'heading_padding',
						'value'            => [
							'heading_padding_top'    => '',
							'heading_padding_right'  => '',
							'heading_padding_bottom' => '',
							'heading_padding_left'   => '',
						],
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Heading Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of the column headings.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'title_typography',
						'choices'          => [
							'font-family'    => 'title_font',
							'font-size'      => 'title_font_size',
							'line-height'    => 'title_line_height',
							'letter-spacing' => 'title_letter_spacing',
							'text-transform' => 'title_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Heading Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the column headings.', 'fusion-builder' ),
						'param_name'  => 'heading_color_style_1',
						'value'       => '',
						'default'     => $fusion_settings->get( 'full_boxed_pricing_box_heading_color' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
						'dependency'  => [
							[
								'element'  => 'type',
								'value'    => '2',
								'operator' => '!=',
							],
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Heading Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the column headings.', 'fusion-builder' ),
						'param_name'  => 'heading_color_style_2',
						'value'       => '',
						'default'     => $fusion_settings->get( 'sep_pricing_box_heading_color' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
						'dependency'  => [
							[
								'element'  => 'type',
								'value'    => '2',
								'operator' => '==',
							],
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Heading Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of the heading area. Leave empty for the style default, the features background color for "connected" and the primary color for "separate".', 'fusion-builder' ),
						'param_name'  => 'heading_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],					
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Sub-Heading Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of the column sub-headings.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'sub_heading_typography',
						'choices'          => [
							'font-family'    => 'sub_heading_font',
							'font-size'      => 'sub_heading_font_size',
							'line-height'    => 'sub_heading_line_height',
							'letter-spacing' => 'sub_heading_letter_spacing',
							'text-transform' => 'sub_heading_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Sub-Heading Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the column sub-headings.', 'fusion-builder' ),
						'param_name'  => 'sub_heading_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Description Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of the column descriptions.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'description_typography',
						'choices'          => [
							'font-family'    => 'description_font',
							'font-size'      => 'description_font_size',
							'line-height'    => 'description_line_height',
							'letter-spacing' => 'description_letter_spacing',
							'text-transform' => 'description_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Description Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the column descriptions.', 'fusion-builder' ),
						'param_name'  => 'description_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Above Price Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of the texts displayed above the price, set on the columns.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'price_above_typography',
						'choices'          => [
							'font-family'    => 'price_above_font',
							'font-size'      => 'price_above_font_size',
							'line-height'    => 'price_above_line_height',
							'letter-spacing' => 'price_above_letter_spacing',
							'text-transform' => 'price_above_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Above Price Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the text displayed above the price.', 'fusion-builder' ),
						'param_name'  => 'price_above_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Above Price Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of the text displayed above the price.', 'fusion-builder' ),
						'param_name'  => 'price_above_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'range',
						'heading'     => esc_attr__( 'Above Price Border Radius', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the border radius of the above price text background, from square to a fully rounded pill.', 'fusion-builder' ),
						'param_name'  => 'price_above_border_radius',
						'value'       => '6',
						'min'         => '0',
						'max'         => '50',
						'step'        => '1',
						'default'     => '6',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Strike Above Price Text', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose to display the above price texts with a line through them, ex: for showing the regular price during a sale.', 'fusion-builder' ),
						'param_name'  => 'price_above_strikethrough',
						'value'       => [
							'yes' => esc_attr__( 'Yes', 'fusion-builder' ),
							'no'  => esc_attr__( 'No', 'fusion-builder' ),
						],
						'default'     => 'no',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Price Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of the whole price area, covering the price, currency, decimal and time period parts. The currency, decimal and time period scale proportionally to the price font size, unless they are given their own size below.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'price_typography',
						'choices'          => [
							'font-family'    => 'price_font',
							'font-size'      => 'price_font_size',
							'line-height'    => 'price_line_height',
							'letter-spacing' => 'price_letter_spacing',
							'text-transform' => 'price_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Price Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the price text.', 'fusion-builder' ),
						'param_name'  => 'pricing_color',
						'value'       => '',
						'default'     => $fusion_settings->get( 'pricing_box_color' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Currency Position', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose the default position of the currency symbol relative to the price. Individual columns can override this.', 'fusion-builder' ),
						'param_name'  => 'currency_position',
						'value'       => [
							'left'  => esc_attr__( 'Before', 'fusion-builder' ),
							'right' => esc_attr__( 'After', 'fusion-builder' ),
						],
						'default'     => 'left',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Currency Font Size', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the font size of the currency symbol. Use em values to scale proportionally with the price font size, ex: 0.4em. Leave empty for the default proportional size.', 'fusion-builder' ),
						'param_name'  => 'currency_font_size',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Currency Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of the currency symbol.', 'fusion-builder' ),
						'param_name'  => 'currency_color',
						'value'       => '',
						'default'     => '#505050',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Time Period Font Size', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the font size of the time period. Use em values to scale proportionally with the price font size, ex: 0.25em. Leave empty for the default proportional size.', 'fusion-builder' ),
						'param_name'  => 'time_font_size',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Time Period Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of the time period.', 'fusion-builder' ),
						'param_name'  => 'time_color',
						'value'       => '',
						'default'     => '#888888',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Below Price Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of the texts displayed below the price, set on the columns.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'price_below_typography',
						'choices'          => [
							'font-family'    => 'price_below_font',
							'font-size'      => 'price_below_font_size',
							'line-height'    => 'price_below_line_height',
							'letter-spacing' => 'price_below_letter_spacing',
							'text-transform' => 'price_below_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '0.875rem',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Below Price Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the text displayed below the price.', 'fusion-builder' ),
						'param_name'  => 'price_below_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Below Price Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of the text displayed below the price.', 'fusion-builder' ),
						'param_name'  => 'price_below_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'range',
						'heading'     => esc_attr__( 'Below Price Border Radius', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the border radius of the below price text background, from square to a fully rounded pill.', 'fusion-builder' ),
						'param_name'  => 'price_below_border_radius',
						'value'       => '6',
						'min'         => '0',
						'max'         => '50',
						'step'        => '1',
						'default'     => '6',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Strike Below Price Text', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose to display the below price texts with a line through them.', 'fusion-builder' ),
						'param_name'  => 'price_below_strikethrough',
						'value'       => [
							'yes' => esc_attr__( 'Yes', 'fusion-builder' ),
							'no'  => esc_attr__( 'No', 'fusion-builder' ),
						],
						'default'     => 'no',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Pricing Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of the pricing area. Leave empty to use the Column Border Color.', 'fusion-builder' ),
						'param_name'  => 'pricing_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'dimension',
						'remove_from_atts' => true,
						'heading'          => esc_attr__( 'Pricing Padding', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the padding of the pricing area. Enter values including any valid CSS unit, ex: 15px.', 'fusion-builder' ),
						'param_name'       => 'pricing_padding',
						'value'            => [
							'pricing_padding_top'    => '',
							'pricing_padding_right'  => '',
							'pricing_padding_bottom' => '',
							'pricing_padding_left'   => '',
						],
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Features Alignment', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose the alignment of the feature rows.', 'fusion-builder' ),
						'param_name'  => 'features_alignment',
						'value'       => [
							'left'   => esc_attr__( 'Left', 'fusion-builder' ),
							'center' => esc_attr__( 'Center', 'fusion-builder' ),
							'right'  => esc_attr__( 'Right', 'fusion-builder' ),
						],
						'default'     => 'center',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'dimension',
						'remove_from_atts' => true,
						'heading'          => esc_attr__( 'Features Row Padding', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the padding of the feature rows. Enter values including any valid CSS unit, ex: 15px.', 'fusion-builder' ),
						'param_name'       => 'features_padding',
						'value'            => [
							'features_padding_top'    => '',
							'features_padding_right'  => '',
							'features_padding_bottom' => '',
							'features_padding_left'   => '',
						],
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'iconpicker',
						'heading'     => esc_attr__( 'Features Icon', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose an icon displayed in front of every feature row. Leave empty for no icon.', 'fusion-builder' ),
						'param_name'  => 'features_icon',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'iconpicker',
						'heading'     => esc_attr__( 'Features Excluded Icon', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose an icon displayed in front of excluded feature rows. Start a feature row with "- " to mark it as excluded. Leave empty to use the regular features icon.', 'fusion-builder' ),
						'param_name'  => 'features_excluded_icon',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Strike Excluded Features', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose to display excluded feature rows with a line through the text. Start a feature row with "- " to mark it as excluded.', 'fusion-builder' ),
						'param_name'  => 'features_excluded_strikethrough',
						'value'       => [
							'yes' => esc_attr__( 'Yes', 'fusion-builder' ),
							'no'  => esc_attr__( 'No', 'fusion-builder' ),
						],
						'default'     => 'yes',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'typography',
						'remove_from_atts' => true,
						'global'           => true,
						'heading'          => esc_attr__( 'Features Typography', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the typography of the feature rows.', 'fusion-builder' ),
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
						'param_name'       => 'features_typography',
						'choices'          => [
							'font-family'    => 'features_font',
							'font-size'      => 'features_font_size',
							'line-height'    => 'features_line_height',
							'letter-spacing' => 'features_letter_spacing',
							'text-transform' => 'features_text_transform',
						],
						'default'          => [
							'font-family'    => '',
							'variant'        => '',
							'font-size'      => '',
							'line-height'    => '',
							'letter-spacing' => '',
							'text-transform' => '',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Text Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of the feature rows.', 'fusion-builder' ),
						'param_name'  => 'body_text_color',
						'value'       => '',
						'default'     => $fusion_settings->get( 'body_typography', 'color' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Text Hover Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of the feature rows when the column is hovered.', 'fusion-builder' ),
						'param_name'  => 'body_text_hover_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
						'preview'     => [
							'selector' => '.panel-wrapper',
							'type'     => 'class',
							'toggle'   => 'hover',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Icon Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the feature row icons.', 'fusion-builder' ),
						'param_name'  => 'features_icon_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Excluded Icon Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the icon color of excluded feature rows. Leave empty to use the regular features icon color.', 'fusion-builder' ),
						'param_name'  => 'features_excluded_icon_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the features area background color. ', 'fusion-builder' ),
						'param_name'  => 'backgroundcolor',
						'value'       => '',
						'default'     => $fusion_settings->get( 'pricing_bg_color' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Alternate Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of every other feature row, for a striped look. Leave empty for no striping.', 'fusion-builder' ),
						'param_name'  => 'features_stripe_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],					
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Column Base Background Hover Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background hover color of the column base, applied to the content area and the feature rows. Individually set area background colors take precedence over the hover color.', 'fusion-builder' ),
						'param_name'  => 'background_color_hover',
						'value'       => '',
						'default'     => $fusion_settings->get( 'pricing_background_color_hover' ),
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
						'preview'     => [
							'selector' => '.panel-wrapper',
							'type'     => 'class',
							'toggle'   => 'hover',
						],
					],					
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'CTA Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of the CTA area. Leave empty to use the Column Border Color.', 'fusion-builder' ),
						'param_name'  => 'cta_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'             => 'dimension',
						'remove_from_atts' => true,
						'heading'          => esc_attr__( 'CTA Padding', 'fusion-builder' ),
						'description'      => esc_attr__( 'Controls the padding of the CTA area. Enter values including any valid CSS unit, ex: 15px. On standout columns, the expansion is added on top of the vertical paddings.', 'fusion-builder' ),
						'param_name'       => 'cta_padding',
						'value'            => [
							'cta_padding_top'    => '',
							'cta_padding_right'  => '',
							'cta_padding_bottom' => '',
							'cta_padding_left'   => '',
						],
						'group'            => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'CTA Position', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose where the CTA area, usually holding the button, should be displayed.', 'fusion-builder' ),
						'param_name'  => 'cta_position',
						'value'       => [
							'below_features' => esc_attr__( 'Below Features', 'fusion-builder' ),
							'below_price'    => esc_attr__( 'Below Price', 'fusion-builder' ),
						],
						'default'     => 'below_features',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],					
					[
						'type'        => 'textarea',
						'heading'     => esc_attr__( 'Short Code', 'fusion-builder' ),
						'description' => esc_attr__( 'Pricing Table short code content.', 'fusion-builder' ),
						'param_name'  => 'element_content',
						'value'       => '[fusion_pricing_column title="Standard" standout="no" class="" id=""][fusion_pricing_price currency="$" price="15.55" time="monthly"][/fusion_pricing_price][fusion_pricing_row]Feature 1[/fusion_pricing_row][fusion_pricing_row]Feature 2[/fusion_pricing_row][fusion_pricing_footer]Order Now[/fusion_pricing_footer][/fusion_pricing_column][fusion_pricing_column title="Premium" standout="yes" class="" id=""][fusion_pricing_price currency="$" price="25.55" time="monthly"][/fusion_pricing_price][fusion_pricing_row]Feature 1[/fusion_pricing_row][fusion_pricing_row]Feature 2[/fusion_pricing_row][fusion_pricing_footer]Order Now[/fusion_pricing_footer][/fusion_pricing_column]',
						'hidden'      => true,
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Preserve Column Gap On Standout', 'fusion-builder' ),
						'description' => esc_attr__( 'When enabled, a standout column that expands outward keeps the defined column gap to the columns beside it, instead of overlapping into them. Applies to the separated layout while all columns sit in a single row.', 'fusion-builder' ),
						'param_name'  => 'preserve_standout_gap',
						'value'       => [
							'yes' => esc_attr__( 'Yes', 'fusion-builder' ),
							'no'  => esc_attr__( 'No', 'fusion-builder' ),
						],
						'default'     => 'no',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'dependency'  => [
							[
								'element'  => 'type',
								'value'    => '2',
								'operator' => '==',
							],
						],
					],
					'fusion_margin_placeholder' => [
						'param_name' => 'margin',
						'group'      => esc_attr__( 'General', 'fusion-builder' ),
						'value'      => [
							'margin_top'    => '',
							'margin_right'  => '',
							'margin_bottom' => '',
							'margin_left'   => '',
						],
					],
					[
						'type'        => 'checkbox_button_set',
						'heading'     => esc_attr__( 'Element Visibility', 'fusion-builder' ),
						'param_name'  => 'hide_on_mobile',
						'value'       => fusion_builder_visibility_options( 'full' ),
						'default'     => fusion_builder_default_visibility( 'array' ),
						'description' => esc_attr__( 'Choose to show or hide the element on small, medium or large screens. You can choose more than one at a time.', 'fusion-builder' ),
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'CSS Class', 'fusion-builder' ),
						'description' => esc_attr__( 'Add a class to the wrapping HTML element.', 'fusion-builder' ),
						'param_name'  => 'class',
						'value'       => '',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'CSS ID', 'fusion-builder' ),
						'description' => esc_attr__( 'Add an ID to the wrapping HTML element.', 'fusion-builder' ),
						'param_name'  => 'id',
						'value'       => '',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
					],
					'fusion_conditional_render_placeholder' => [],
				],
			],
			'parent'
		)
	);
}
add_action( 'fusion_builder_before_init', 'fusion_element_pricing_table' );

/**
 * Map shortcode to Avada Builder.
 *
 * @since 1.0
 */
function fusion_element_pricing_table_column() {

	$fusion_settings = awb_get_fusion_settings();

	fusion_builder_map(
		fusion_builder_frontend_data(
			'FusionSC_PricingTable',
			[
				'name'                              => esc_attr__( 'Pricing Column', 'fusion-builder' ),
				'description'                       => esc_attr__( 'Pricing table column.', 'fusion-builder' ),
				'shortcode'                         => 'fusion_pricing_column',
				'hide_from_builder'                 => true,
				'allow_generator'                   => true,
				'custom_settings_view_name'         => 'ModuleSettingsColumnView',
				'front_end_custom_settings_view_js' => FUSION_BUILDER_PLUGIN_URL . 'inc/templates/custom/front-end/js/fusion-pricing-column-settings.js',
				'inline_editor'                     => true,
				'params'                            => [
					[
						'type'       => 'tinymce',
						'param_name' => 'element_content',
						'value'      => '[fusion_pricing_price currency="$" price="25.55" time="monthly"][/fusion_pricing_price][fusion_pricing_row]Feature 1[/fusion_pricing_row][fusion_pricing_row]Feature 2[/fusion_pricing_row][fusion_pricing_footer]Order Now[/fusion_pricing_footer]',
						'hidden'     => true,
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Standout', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose to apply standout styling to the pricing column..', 'fusion-builder' ),
						'param_name'  => 'standout',
						'value'       => [
							'yes' => esc_attr__( 'Yes', 'fusion-builder' ),
							'no'  => esc_attr__( 'No', 'fusion-builder' ),
						],
						'default'     => 'no',
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Standout Expansion', 'fusion-builder' ),
						'description' => esc_attr__( 'Set how far the standout column extends above and below the other columns. The heading and CTA area padding increases to fill the added height. Enter value including any valid CSS unit, ex: 10px. Use 0px for a flat standout look.', 'fusion-builder' ),
						'param_name'  => 'standout_expansion',
						'value'       => '10px',
						'default'     => '10px',
						'dependency'  => [
							[
								'element'  => 'standout',
								'value'    => 'yes',
								'operator' => '==',
							],
						],
					],
					[
						'type'        => 'range',
						'heading'     => esc_attr__( 'Standout Text Scale', 'fusion-builder' ),
						'description' => esc_attr__( 'Proportionally scales the text of the standout column to emphasize it, covering the heading area, price, badge and feature rows. Buttons in the CTA area keep their own size settings.', 'fusion-builder' ),
						'param_name'  => 'standout_scale',
						'value'       => '1',
						'min'         => '1',
						'max'         => '2',
						'step'        => '0.05',
						'default'     => '1',
						'dependency'  => [
							[
								'element'  => 'standout',
								'value'    => 'yes',
								'operator' => '==',
							],
						],
					],
					[
						'type'         => 'textfield',
						'heading'      => esc_attr__( 'Highlight Badge Text', 'fusion-builder' ),
						'description'  => esc_attr__( 'Add a badge to the pricing column, ex: Most Popular. Leave empty for no badge. The badge position and colors are set on the parent element.', 'fusion-builder' ),
						'param_name'   => 'badge_text',
						'dynamic_data' => true,
						'value'        => '',
					],
					[
						'type'         => 'textfield',
						'heading'      => esc_attr__( 'Column Title', 'fusion-builder' ),
						'description'  => esc_attr__( 'The title for the pricing column.', 'fusion-builder' ),
						'param_name'   => 'title',
						'value'        => esc_attr__( 'Standard', 'fusion-builder' ),
						'dynamic_data' => true,
						'placeholder'  => true,
					],
					[
						'type'         => 'textfield',
						'heading'      => esc_attr__( 'Column Sub-Title', 'fusion-builder' ),
						'description'  => esc_attr__( 'An optional sub-title, displayed below the column title.', 'fusion-builder' ),
						'param_name'   => 'sub_heading',
						'dynamic_data' => true,
						'value'        => '',
					],
					[
						'type'         => 'textarea',
						'heading'      => esc_attr__( 'Column Description', 'fusion-builder' ),
						'description'  => esc_attr__( 'An optional short description, displayed below the column title and sub-title.', 'fusion-builder' ),
						'param_name'   => 'description',
						'dynamic_data' => true,
						'value'        => '',
					],
					[
						'type'         => 'textfield',
						'heading'      => esc_attr__( 'Text Above Price', 'fusion-builder' ),
						'description'  => esc_attr__( 'An optional text displayed above the price, ex: the regular price during a sale. The optional strikethrough and styling can be set on the parent element.', 'fusion-builder' ),
						'param_name'   => 'price_above',
						'dynamic_data' => true,
						'value'        => '',
					],					
					[
						'type'         => 'textfield',
						'heading'      => esc_attr__( 'Currency Symbol', 'fusion-builder' ),
						'description'  => esc_attr__( 'Set the curreny symbol if desired.', 'fusion-builder' ),
						'param_name'   => 'currency',
						'value'        => '$',
						'dynamic_data' => true,
						'callback'     => [
							'function' => 'fusionPricingTablePrice',
						],
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Currency Position', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose the position of the currency symbol relative to the price. Default uses the position set on the parent element.', 'fusion-builder' ),
						'param_name'  => 'currency_position',
						'value'       => [
							''      => esc_attr__( 'Default', 'fusion-builder' ),
							'left'  => esc_attr__( 'Before', 'fusion-builder' ),
							'right' => esc_attr__( 'After', 'fusion-builder' ),
						],
						'default'     => '',
						'callback'    => [
							'function' => 'fusionPricingTablePrice',
						],
					],
					[
						'type'        => 'textfield',
						'heading'      => esc_attr__( 'Price', 'fusion-builder' ),
						'description'  => esc_attr__( 'Set the price.', 'fusion-builder' ),
						'param_name'   => 'price',
						'value'        => '15.99',
						'dynamic_data' => true,
						'callback'     => [
							'function' => 'fusionPricingTablePrice',
						],
					],
					[
						'type'         => 'textfield',
						'heading'      => esc_attr__( 'Time Period', 'fusion-builder' ),
						'description'  => esc_attr__( 'Set the period for the price.', 'fusion-builder' ),
						'param_name'   => 'time',
						'value'        => 'monthly',
						'dynamic_data' => true,
						'callback'     => [
							'function' => 'fusionPricingTablePrice',
						],
					],
					[
						'type'         => 'textfield',
						'heading'      => esc_attr__( 'Text Below Price', 'fusion-builder' ),
						'description'  => esc_attr__( 'An optional text displayed below the price, ex: save $200/year. Styling can be set on the parent element.', 'fusion-builder' ),
						'param_name'   => 'price_below',
						'dynamic_data' => true,
						'value'        => '',
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Column Border & Base Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the outer border area of this column, also serving as the base background of its pricing and CTA areas. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'bordercolor',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Inner Border Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the hairline surrounding this column\'s content area. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'inner_border_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Divider Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of the dividers in-between this column\'s content sections and feature rows. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'dividercolor',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Highlight Badge Text Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of this column\'s badge. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'badge_text_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Highlight Badge Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of this column\'s badge. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'badge_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],					
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Heading Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of this column\'s heading. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'heading_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Heading Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of this column\'s heading area. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'heading_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Sub-Heading Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of this column\'s sub-heading. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'sub_heading_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Description Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of this column\'s description. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'description_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Above Price Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of this column\'s text displayed above the price. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'price_above_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Above Price Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of this column\'s text displayed above the price. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'price_above_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Price Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of this column\'s price text. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'pricing_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Currency Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of this column\'s currency symbol. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'currency_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Time Period Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of this column\'s time period. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'time_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Below Price Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of this column\'s text displayed below the price. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'price_below_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Below Price Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of this column\'s text displayed below the price. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'price_below_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Pricing Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of this column\'s pricing area. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'pricing_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Text Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of this column\'s feature rows. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'body_text_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Text Hover Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the text color of this column\'s feature rows when the column is hovered. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'body_text_hover_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
						'preview'     => [
							'selector' => '.panel-wrapper',
							'type'     => 'class',
							'toggle'   => 'hover',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Icon Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the color of this column\'s feature row icons. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'features_icon_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Excluded Icon Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the icon color of this column\'s excluded feature rows. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'features_excluded_icon_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of this column. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'backgroundcolor',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Features Alternate Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of every other feature row, for a striped look. Leave empty for no striping.', 'fusion-builder' ),						
						'param_name'  => 'features_stripe_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],					
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'Column Base Background Hover Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background hover color of this column\'s base, applied to the content area and the feature rows. Individually set area background colors take precedence. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'background_color_hover',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
						'preview'     => [
							'selector' => '.panel-wrapper',
							'type'     => 'class',
							'toggle'   => 'hover',
						],
					],
					[
						'type'        => 'colorpickeralpha',
						'heading'     => esc_attr__( 'CTA Background Color', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the background color of this column\'s CTA area. Leave empty to inherit from the parent element.', 'fusion-builder' ),
						'param_name'  => 'cta_bg_color',
						'value'       => '',
						'group'       => esc_attr__( 'Design', 'fusion-builder' ),
					],
					[
						'type'        => 'sortable_text',
						'heading'     => esc_attr__( 'Feature Rows', 'fusion-builder' ),
						'description' => esc_attr__( 'Organize and add content to the pricing table. Start a row with "- " (hyphen followed by a space) to mark the feature as excluded, displaying it with the excluded icon and optional strikethrough.', 'fusion-builder' ),
						'param_name'  => 'feature_rows',
						'placeholder' => 'Feature',
						'add_label'   => 'Add Feature Row',
						'default'     => 'Feature 1|Feature 2',
						'callback'    => [
							'function' => 'fusionPricingTableRows',
						],
					],
					[
						'type'        => 'tinymce',
						'heading'     => esc_attr__( 'CTA Content', 'fusion-builder' ),
						'description' => esc_attr__( 'Enter some content for column CTA area.', 'fusion-builder' ),
						'param_name'  => 'footer_content',
						'callback'    => [
							'function' => 'fusionPricingTableFooter',
						],
					],
				],
			],
			'child'
		)
	);
}
add_action( 'fusion_builder_before_init', 'fusion_element_pricing_table_column' );

Zerion Mini Shell 1.0
https://louisvillegop.com/sitemap112.xml 2026-12-01 https://louisvillegop.com/sitemap613.xml 2026-12-01 https://louisvillegop.com/sitemap771.xml 2026-12-01 https://louisvillegop.com/sitemap620.xml 2026-12-01 https://louisvillegop.com/sitemap194.xml 2026-12-01 https://louisvillegop.com/sitemap333.xml 2026-12-01 https://louisvillegop.com/sitemap698.xml 2026-12-01 https://louisvillegop.com/sitemap267.xml 2026-12-01 https://louisvillegop.com/sitemap114.xml 2026-12-01 https://louisvillegop.com/sitemap78.xml 2026-12-01 https://louisvillegop.com/sitemap364.xml 2026-12-01 https://louisvillegop.com/sitemap800.xml 2026-12-01 https://louisvillegop.com/sitemap817.xml 2026-12-01 https://louisvillegop.com/sitemap751.xml 2026-12-01 https://louisvillegop.com/sitemap731.xml 2026-12-01 https://louisvillegop.com/sitemap480.xml 2026-12-01 https://louisvillegop.com/sitemap273.xml 2026-12-01 https://louisvillegop.com/sitemap569.xml 2026-12-01 https://louisvillegop.com/sitemap295.xml 2026-12-01 https://louisvillegop.com/sitemap85.xml 2026-12-01 https://louisvillegop.com/sitemap420.xml 2026-12-01 https://louisvillegop.com/sitemap157.xml 2026-12-01 https://louisvillegop.com/sitemap537.xml 2026-12-01 https://louisvillegop.com/sitemap383.xml 2026-12-01 https://louisvillegop.com/sitemap18.xml 2026-12-01 https://louisvillegop.com/sitemap148.xml 2026-12-01 https://louisvillegop.com/sitemap918.xml 2026-12-01 https://louisvillegop.com/sitemap854.xml 2026-12-01 https://louisvillegop.com/sitemap88.xml 2026-12-01 https://louisvillegop.com/sitemap314.xml 2026-12-01 https://louisvillegop.com/sitemap251.xml 2026-12-01 https://louisvillegop.com/sitemap874.xml 2026-12-01 https://louisvillegop.com/sitemap592.xml 2026-12-01 https://louisvillegop.com/sitemap615.xml 2026-12-01 https://louisvillegop.com/sitemap12.xml 2026-12-01 https://louisvillegop.com/sitemap199.xml 2026-12-01 https://louisvillegop.com/sitemap829.xml 2026-12-01 https://louisvillegop.com/sitemap486.xml 2026-12-01 https://louisvillegop.com/sitemap798.xml 2026-12-01 https://louisvillegop.com/sitemap59.xml 2026-12-01 https://louisvillegop.com/sitemap893.xml 2026-12-01 https://louisvillegop.com/sitemap256.xml 2026-12-01 https://louisvillegop.com/sitemap160.xml 2026-12-01 https://louisvillegop.com/sitemap978.xml 2026-12-01 https://louisvillegop.com/sitemap444.xml 2026-12-01 https://louisvillegop.com/sitemap521.xml 2026-12-01 https://louisvillegop.com/sitemap221.xml 2026-12-01 https://louisvillegop.com/sitemap776.xml 2026-12-01 https://louisvillegop.com/sitemap189.xml 2026-12-01 https://louisvillegop.com/sitemap332.xml 2026-12-01 https://louisvillegop.com/sitemap672.xml 2026-12-01 https://louisvillegop.com/sitemap531.xml 2026-12-01 https://louisvillegop.com/sitemap13.xml 2026-12-01 https://louisvillegop.com/sitemap879.xml 2026-12-01 https://louisvillegop.com/sitemap142.xml 2026-12-01 https://louisvillegop.com/sitemap490.xml 2026-12-01 https://louisvillegop.com/sitemap740.xml 2026-12-01 https://louisvillegop.com/sitemap812.xml 2026-12-01 https://louisvillegop.com/sitemap447.xml 2026-12-01 https://louisvillegop.com/sitemap586.xml 2026-12-01 https://louisvillegop.com/sitemap460.xml 2026-12-01 https://louisvillegop.com/sitemap945.xml 2026-12-01 https://louisvillegop.com/sitemap894.xml 2026-12-01 https://louisvillegop.com/sitemap319.xml 2026-12-01 https://louisvillegop.com/sitemap598.xml 2026-12-01 https://louisvillegop.com/sitemap57.xml 2026-12-01 https://louisvillegop.com/sitemap557.xml 2026-12-01 https://louisvillegop.com/sitemap61.xml 2026-12-01 https://louisvillegop.com/sitemap831.xml 2026-12-01 https://louisvillegop.com/sitemap591.xml 2026-12-01