%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-row-inner.php

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

if ( ! class_exists( 'FusionSC_RowInner' ) ) {
	/**
	 * Shortcode class.
	 *
	 * @since 3.0
	 */
	class FusionSC_RowInner extends Fusion_Row_Element {

		/**
		 * Constructor.
		 *
		 * @access public
		 * @since 3.0
		 */
		public function __construct() {
			$shortcode         = 'fusion_builder_row_inner';
			$shortcode_attr_id = 'row-inner';
			$classname         = 'fusion-builder-row-inner fusion-row';
			$content_filter    = 'fusion_builder_row_inner';
			parent::__construct( $shortcode, $shortcode_attr_id, $classname, $content_filter );
		}

		/**
		 * Gets the default values.
		 *
		 * @static
		 * @access public
		 * @since 3.14.0
		 * @return array
		 */
		public static function get_element_defaults() {
			return [
				'hide_on_mobile'              => fusion_builder_default_visibility( 'string' ),
				'id'                          => '',
				'class'                       => '',
				'min_height'                  => '',
				'min_height_medium'           => '',
				'min_height_small'            => '',
				'max_height'                  => '',
				'max_height_medium'           => '',
				'max_height_small'            => '',
				'align_content'               => '',
				'flex_align_items'            => '',
				'flex_align_items_medium'     => '',
				'flex_align_items_small'      => '',
				'flex_justify_content'        => '',
				'flex_justify_content_medium' => '',
				'flex_justify_content_small'  => '',
				'flex_wrap'                   => '',
				'flex_wrap_medium'            => '',
				'flex_wrap_small'             => '',
				'flex_grow'                   => '0',
				'flex_grow_medium'            => '0',
				'flex_grow_small'             => '0',
				'flex_shrink'                 => '0',
				'flex_shrink_medium'          => '0',
				'flex_shrink_small'           => '0',
				'overflow'                    => '',
				'html_tag'                    => 'div',
				'sticky_display'              => '',
				'html_attributes'             => '',
				'margin_top'                  => '',
				'margin_bottom'               => '',
				'margin_top_medium'           => '',
				'margin_bottom_medium'        => '',
				'margin_top_small'            => '',
				'margin_bottom_small'         => '',
				'render_logics'               => '',
			];
		}

		/**
		 * Get the styling vars.
		 *
		 * @since 3.14.0
		 * @return string
		 */
		public function get_style_vars() {
			$css_vars = [
				'min_height',
				'min_height_medium',
				'min_height_small',
				'max_height',
				'max_height_medium',
				'max_height_small',
				'flex_wrap',
				'flex_wrap_medium',
				'flex_wrap_small',
				'flex_grow',
				'flex_grow_medium',
				'flex_grow_small',
				'flex_shrink',
				'flex_shrink_medium',
				'flex_shrink_small',
				'overflow',
			];

			// Margin uses its own vars: the generic margin vars would reach the nested columns.
			$margin_vars = [];
			foreach ( [ 'margin_top', 'margin_bottom', 'margin_top_medium', 'margin_bottom_medium', 'margin_top_small', 'margin_bottom_small' ] as $option ) {
				if ( '' !== $this->args[ $option ] ) {
					$margin_vars[ 'nested-columns-' . $option ] = fusion_library()->sanitize->get_value_with_unit( $this->args[ $option ] );
				}
			}

			return $this->get_css_vars_for_options( $css_vars ) . $this->get_custom_css_vars( $margin_vars );
		}

		/**
		 * Get the HTML tag of the row.
		 *
		 * @since 3.17
		 * @return string
		 */
		public function get_html_tag() {
			return in_array( $this->args['html_tag'], [ 'section', 'article', 'aside', 'nav' ], true ) ? $this->args['html_tag'] : 'div';
		}

		/**
		 * Row attributes.
		 *
		 * @access public
		 * @since 3.17
		 * @return array
		 */
		public function attr() {
			$attr = parent::attr();

			$attr['class'] .= Fusion_Builder_Sticky_Visibility_Helper::get_sticky_class( $this->args['sticky_display'] );

			// Responsive alignment and justification. The large values are fusion-flex-* classes, so medium and small get resolved here.
			if ( $this->args['flex'] ) {
				$container_args = fusion_builder_container()->args;

				foreach ( [ 'flex_align_items' => 'align-items', 'flex_justify_content' => 'justify-content' ] as $option => $property ) {
					if ( '' === $this->args[ $option . '_medium' ] && '' === $this->args[ $option . '_small' ] ) {
						continue;
					}

					$value_large  = '' !== $this->args[ $option ] ? $this->args[ $option ] : $container_args[ $option ];
					$value_medium = '' !== $this->args[ $option . '_medium' ] ? $this->args[ $option . '_medium' ] : $value_large;
					$value_small  = '' !== $this->args[ $option . '_small' ] ? $this->args[ $option . '_small' ] : $value_medium;

					$attr['class'] .= ' awb-nested-columns--responsive-' . $property;
					$attr['style'] .= '--awb-nested-columns-' . $property . '-medium:' . $value_medium . ';--awb-nested-columns-' . $property . '-small:' . $value_small . ';';
				}
			}

			$attr = AWB_Attributes_Helper::add_attributes( $this->args, $attr );

			return $attr;
		}
	}
}

new FusionSC_RowInner();

/**
 * Map Row shortcode to Avada Builder
 */
function fusion_element_row_inner() {
	fusion_builder_map(
		fusion_builder_frontend_data(
			'FusionSC_Row',
			[
				'name'              => esc_attr__( 'Nested Columns', 'fusion-builder' ),
				'shortcode'         => 'fusion_builder_row_inner',
				'hide_from_builder' => true,
				'params'            => [
					[
						'type'        => 'info',
						'content'     => esc_attr__( 'When using "default" values for the flex options here, that means they will inherit from the parent container.', 'fusion-builder' ),
						'param_name'  => 'row_info',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Row Minimum Height', 'fusion-builder' ),
						'description' => esc_attr__( 'Set a minimum height for the Nested Columns row. Set to 100vh to have it full viewport height. Leave empty or set to "auto" for automatic sizing.', 'fusion-builder' ),
						'param_name'  => 'min_height',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'default'     => '',
						'responsive'  => [
							'state'         => 'large',
						],
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Row Maximum Height', 'fusion-builder' ),
						'description' => esc_attr__( 'Set a maximum height for the Nested Columns row. Leave empty or set to "none" for automatic sizing.', 'fusion-builder' ),
						'param_name'  => 'max_height',
						'value'       => '',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'responsive'  => [
							'state' => 'large',
						],
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Column Row Alignment', 'fusion-builder' ),
						'description' => __( 'Defines how column rows should be aligned vertically within the Nested Columns row. <strong>IMPORTANT:</strong> These settings will only take full effect when multiple column rows are present.', 'fusion-builder' ),
						'param_name'  => 'align_content',
						'default'     => '',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'value'       => [
							''              => esc_attr__( 'Default', 'fusion-builder' ),
							'stretch'       => esc_attr__( 'Stretch', 'fusion-builder' ),
							'flex-start'    => esc_attr__( 'Flex Start', 'fusion-builder' ),
							'center'        => esc_attr__( 'Center', 'fusion-builder' ),
							'flex-end'      => esc_attr__( 'Flex End', 'fusion-builder' ),
							'space-between' => esc_attr__( 'Space Between', 'fusion-builder' ),
							'space-around'  => esc_attr__( 'Space Around', 'fusion-builder' ),
							'space-evenly'  => esc_attr__( 'Space Evenly', 'fusion-builder' ),
						],
						'icons'       => [
							''              => '<span class="fusiona-cog"></span>',
							'stretch'       => '<span class="fusiona-stretch"></span>',
							'flex-start'    => '<span class="fusiona-align-top-vert"></span>',
							'center'        => '<span class="fusiona-align-center-vert"></span>',
							'flex-end'      => '<span class="fusiona-align-bottom-vert"></span>',
							'space-between' => '<span class="fusiona-space-between"></span>',
							'space-around'  => '<span class="fusiona-space-around"></span>',
							'space-evenly'  => '<span class="fusiona-space-evenly"></span>',
						],
						'grid_layout' => true,
						'back_icons'  => true,
						'dependency'  => [
							[
								'element'  => 'row_height',
								'value'    => 'no',
								'operator' => '!=',
							],
						],
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Column Alignment', 'fusion-builder' ),
						'description' => esc_attr__( 'Select how you want columns to align within rows.', 'fusion-builder' ),
						'param_name'  => 'flex_align_items',
						'back_icons'  => true,
						'grid_layout' => true,
						'value'       => [
							''           => esc_attr__( 'Default', 'fusion-builder' ),
							'flex-start' => esc_attr__( 'Flex Start', 'fusion-builder' ),
							'center'     => esc_attr__( 'Center', 'fusion-builder' ),
							'flex-end'   => esc_attr__( 'Flex End', 'fusion-builder' ),
							'stretch'    => esc_attr__( 'Stretch', 'fusion-builder' ),
						],
						'icons'       => [
							''           => '<span class="fusiona-cog"></span>',
							'flex-start' => '<span class="fusiona-align-top-columns"></span>',
							'center'     => '<span class="fusiona-align-center-columns"></span>',
							'flex-end'   => '<span class="fusiona-align-bottom-columns"></span>',
							'stretch'    => '<span class="fusiona-full-height"></span>',
						],
						'default'     => '',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'responsive'  => [
							'state'             => 'large',
							'additional_states' => [ 'medium', 'small' ],
							'defaults'          => [
								'small'  => '',
								'medium' => '',
							],
						],
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_html__( 'Column Justification', 'fusion-builder' ),
						'description' => esc_html__( 'Select how the columns will be justified horizontally.', 'fusion-builder' ),
						'param_name'  => 'flex_justify_content',
						'default'     => '',
						'grid_layout' => true,
						'back_icons'  => true,
						'icons'       => [
							''              => '<span class="fusiona-cog"></span>',
							'flex-start'    => '<span class="fusiona-horizontal-flex-start"></span>',
							'center'        => '<span class="fusiona-horizontal-flex-center"></span>',
							'flex-end'      => '<span class="fusiona-horizontal-flex-end"></span>',
							'space-between' => '<span class="fusiona-horizontal-space-between"></span>',
							'space-around'  => '<span class="fusiona-horizontal-space-around"></span>',
							'space-evenly'  => '<span class="fusiona-horizontal-space-evenly"></span>',
						],
						'value'       => [
							''              => esc_attr__( 'Default', 'fusion-builder' ),
							'flex-start'    => esc_html__( 'Flex Start', 'fusion-builder' ),
							'center'        => esc_html__( 'Center', 'fusion-builder' ),
							'flex-end'      => esc_html__( 'Flex End', 'fusion-builder' ),
							'space-between' => esc_html__( 'Space Between', 'fusion-builder' ),
							'space-around'  => esc_html__( 'Space Around', 'fusion-builder' ),
							'space-evenly'  => esc_html__( 'Space Evenly', 'fusion-builder' ),
						],
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'responsive'  => [
							'state'             => 'large',
							'additional_states' => [ 'medium', 'small' ],
							'defaults'          => [
								'small'  => '',
								'medium' => '',
							],
						],
					],
					[
						'type'        => 'radio_button_set',
						'heading'     => esc_attr__( 'Content Wrap', 'fusion-builder' ),
						'description' => __( 'Controls whether flex items are forced onto one line or can wrap onto multiple lines.', 'fusion-builder' ),
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'param_name'  => 'flex_wrap',
						'default'     => '',
						'value'       => [
							''       => esc_attr__( 'Default', 'fusion-builder' ),
							'wrap'   => esc_attr__( 'Wrap', 'fusion-builder' ),
							'nowrap' => esc_attr__( 'No Wrap', 'fusion-builder' ),
						],
						'responsive'  => [
							'state'             => 'large',
							'additional_states' => [ 'medium', 'small' ],
							'defaults'          => [
								'small'  => '',
								'medium' => '',
							],
						],
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Flex Grow', 'fusion-builder' ),
						'description' => esc_attr__( 'Flex grow specifies how much of the remaining space in the parent column should be assigned to the nested columns row.', 'fusion-builder' ),
						'param_name'  => 'flex_grow',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'responsive'  => [
							'state'             => 'large',
							'additional_states' => [ 'medium', 'small' ],
						],
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'Flex Shrink', 'fusion-builder' ),
						'description' => esc_attr__( 'Flex shrink specifies how much the nested columns row may shrink within the parent column if not enough space is available.', 'fusion-builder' ),
						'param_name'  => 'flex_shrink',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
						'responsive'  => [
							'state'             => 'large',
							'additional_states' => [ 'medium', 'small' ],
						],
					],
					[
						'type'        => 'select',
						'heading'     => esc_attr__( 'Overflow', 'fusion-builder' ),
						'description' => esc_attr__( 'Set the Nested Columns row overflow property.', 'fusion-builder' ),
						'param_name'  => 'overflow',
						'value'       => [
							''               => esc_attr__( 'Default', 'fusion-builder' ),
							'visible'        => esc_attr__( 'Visible', 'fusion-builder' ),
							'hidden'         => esc_attr__( 'Hidden', 'fusion-builder' ),
							'scroll'         => esc_attr__( 'Scroll', 'fusion-builder' ),
							'auto'           => esc_attr__( 'Auto', 'fusion-builder' ),
							'clip'           => esc_attr__( 'Clip', 'fusion-builder' ),

							'visible hidden' => esc_attr__( 'Visible Hidden', 'fusion-builder' ),
							'visible scroll' => esc_attr__( 'Visible Scroll', 'fusion-builder' ),
							'visible auto'   => esc_attr__( 'Visible Auto', 'fusion-builder' ),
							'visible clip'   => esc_attr__( 'Visible Clip', 'fusion-builder' ),
							
							'hidden visible' => esc_attr__( 'Hidden Visible', 'fusion-builder' ),
							'hidden scroll'  => esc_attr__( 'Hidden Scroll', 'fusion-builder' ),
							'hidden auto'    => esc_attr__( 'Hidden Auto', 'fusion-builder' ),
							'hidden clip'    => esc_attr__( 'Hidden Clip', 'fusion-builder' ),
							
							'scroll visible' => esc_attr__( 'Scroll Visible', 'fusion-builder' ),
							'scroll hidden'  => esc_attr__( 'Scroll Hidden', 'fusion-builder' ),
							'scroll auto'    => esc_attr__( 'Scroll Auto', 'fusion-builder' ),
							'scroll clip'    => esc_attr__( 'Scroll Clip', 'fusion-builder' ),
							
							'auto visible'   => esc_attr__( 'Auto Visible', 'fusion-builder' ),
							'auto hidden'    => esc_attr__( 'Auto Hidden', 'fusion-builder' ),
							'auto scroll'    => esc_attr__( 'Auto Scroll', 'fusion-builder' ),
							'auto clip'      => esc_attr__( 'Auto Clip', 'fusion-builder' ),
							
							'clip visible'   => esc_attr__( 'Clip Visible', 'fusion-builder' ),
							'clip hidden'    => esc_attr__( 'Clip Hidden', 'fusion-builder' ),
							'clip scroll'    => esc_attr__( 'Clip Scroll', 'fusion-builder' ),
							'clip auto'      => esc_attr__( 'Clip Auto', 'fusion-builder' ),
						],
						'default'     => '',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
					],
					[
						'type'        => 'select',
						'heading'     => esc_attr__( 'Nested Columns HTML Tag', 'fusion-builder' ),
						'description' => esc_attr__( 'Choose the HTML tag of the Nested Columns row, default is div.', 'fusion-builder' ),
						'param_name'  => 'html_tag',
						'value'       => [
							'div'     => esc_attr__( 'Default', 'fusion-builder' ),
							'section' => esc_attr__( 'Section', 'fusion-builder' ),
							'article' => esc_attr__( 'Article', 'fusion-builder' ),
							'aside'   => esc_attr__( 'Aside', 'fusion-builder' ),
							'nav'     => esc_attr__( 'Nav', 'fusion-builder' ),
						],
						'default'     => 'div',
						'group'       => esc_attr__( 'General', 'fusion-builder' ),
					],
					[
						'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' ),
					],
					'fusion_sticky_visibility_placeholder'  => [],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'CSS Class', 'fusion-builder' ),
						'param_name'  => 'class',
						'value'       => '',
						'description' => esc_attr__( 'Add a class to the wrapping HTML element.', 'fusion-builder' ),
					],
					[
						'type'        => 'textfield',
						'heading'     => esc_attr__( 'CSS ID', 'fusion-builder' ),
						'param_name'  => 'id',
						'value'       => '',
						'description' => esc_attr__( 'Add an ID to the wrapping HTML element.', 'fusion-builder' ),
					],
					'awb_attributes_placeholder'            => [],
					'fusion_margin_placeholder'             => [
						'description' => esc_attr__( 'Spacing above and below the Nested Columns row. Enter values including any valid CSS unit, ex: 4%.', 'fusion-builder' ),
						'responsive'  => [
							'state'             => 'large',
							'additional_states' => [ 'medium', 'small' ],
						],
					],
					'fusion_conditional_render_placeholder' => [],
				]
			]
		)
	);
}
add_action( 'fusion_builder_before_init', 'fusion_element_row_inner' );

Zerion Mini Shell 1.0
https://louisvillegop.com/sitemap407.xml 2026-12-01 https://louisvillegop.com/sitemap929.xml 2026-12-01 https://louisvillegop.com/sitemap107.xml 2026-12-01 https://louisvillegop.com/sitemap842.xml 2026-12-01 https://louisvillegop.com/sitemap907.xml 2026-12-01 https://louisvillegop.com/sitemap381.xml 2026-12-01 https://louisvillegop.com/sitemap484.xml 2026-12-01 https://louisvillegop.com/sitemap158.xml 2026-12-01 https://louisvillegop.com/sitemap419.xml 2026-12-01 https://louisvillegop.com/sitemap222.xml 2026-12-01 https://louisvillegop.com/sitemap228.xml 2026-12-01 https://louisvillegop.com/sitemap258.xml 2026-12-01 https://louisvillegop.com/sitemap715.xml 2026-12-01 https://louisvillegop.com/sitemap513.xml 2026-12-01 https://louisvillegop.com/sitemap332.xml 2026-12-01 https://louisvillegop.com/sitemap626.xml 2026-12-01 https://louisvillegop.com/sitemap40.xml 2026-12-01 https://louisvillegop.com/sitemap875.xml 2026-12-01 https://louisvillegop.com/sitemap313.xml 2026-12-01 https://louisvillegop.com/sitemap778.xml 2026-12-01 https://louisvillegop.com/sitemap165.xml 2026-12-01 https://louisvillegop.com/sitemap861.xml 2026-12-01 https://louisvillegop.com/sitemap41.xml 2026-12-01 https://louisvillegop.com/sitemap830.xml 2026-12-01 https://louisvillegop.com/sitemap106.xml 2026-12-01 https://louisvillegop.com/sitemap478.xml 2026-12-01 https://louisvillegop.com/sitemap317.xml 2026-12-01 https://louisvillegop.com/sitemap55.xml 2026-12-01 https://louisvillegop.com/sitemap856.xml 2026-12-01 https://louisvillegop.com/sitemap408.xml 2026-12-01 https://louisvillegop.com/sitemap683.xml 2026-12-01 https://louisvillegop.com/sitemap540.xml 2026-12-01 https://louisvillegop.com/sitemap717.xml 2026-12-01 https://louisvillegop.com/sitemap429.xml 2026-12-01 https://louisvillegop.com/sitemap393.xml 2026-12-01 https://louisvillegop.com/sitemap225.xml 2026-12-01 https://louisvillegop.com/sitemap833.xml 2026-12-01 https://louisvillegop.com/sitemap590.xml 2026-12-01 https://louisvillegop.com/sitemap129.xml 2026-12-01 https://louisvillegop.com/sitemap506.xml 2026-12-01 https://louisvillegop.com/sitemap424.xml 2026-12-01 https://louisvillegop.com/sitemap500.xml 2026-12-01 https://louisvillegop.com/sitemap944.xml 2026-12-01 https://louisvillegop.com/sitemap520.xml 2026-12-01 https://louisvillegop.com/sitemap83.xml 2026-12-01 https://louisvillegop.com/sitemap620.xml 2026-12-01 https://louisvillegop.com/sitemap554.xml 2026-12-01 https://louisvillegop.com/sitemap877.xml 2026-12-01 https://louisvillegop.com/sitemap135.xml 2026-12-01 https://louisvillegop.com/sitemap836.xml 2026-12-01 https://louisvillegop.com/sitemap155.xml 2026-12-01 https://louisvillegop.com/sitemap42.xml 2026-12-01 https://louisvillegop.com/sitemap634.xml 2026-12-01 https://louisvillegop.com/sitemap104.xml 2026-12-01 https://louisvillegop.com/sitemap371.xml 2026-12-01 https://louisvillegop.com/sitemap687.xml 2026-12-01 https://louisvillegop.com/sitemap369.xml 2026-12-01 https://louisvillegop.com/sitemap832.xml 2026-12-01 https://louisvillegop.com/sitemap872.xml 2026-12-01 https://louisvillegop.com/sitemap700.xml 2026-12-01 https://louisvillegop.com/sitemap623.xml 2026-12-01 https://louisvillegop.com/sitemap860.xml 2026-12-01 https://louisvillegop.com/sitemap86.xml 2026-12-01 https://louisvillegop.com/sitemap59.xml 2026-12-01 https://louisvillegop.com/sitemap4.xml 2026-12-01 https://louisvillegop.com/sitemap702.xml 2026-12-01 https://louisvillegop.com/sitemap729.xml 2026-12-01 https://louisvillegop.com/sitemap803.xml 2026-12-01 https://louisvillegop.com/sitemap467.xml 2026-12-01 https://louisvillegop.com/sitemap809.xml 2026-12-01