<?php /**
 * Header Main Row Options
 *
 * @package Kadence
 */

namespace Kadence;

use Kadence\Theme_Customizer;
use function Kadence\kadence;

ob_start(); ?>
<div class="kadence-compontent-tabs nav-tab-wrapper wp-clearfix">
	<a href="#" class="nav-tab kadence-general-tab kadence-compontent-tabs-button nav-tab-active" data-tab="general">
		<span><?php esc_html_e( 'General', 'kadence' ); ?></span>
	</a>
	<a href="#" class="nav-tab kadence-design-tab kadence-compontent-tabs-button" data-tab="design">
		<span><?php esc_html_e( 'Design', 'kadence' ); ?></span>
	</a>
</div>
<?php $compontent_tabs = ob_get_clean();
Theme_Customizer::add_settings(
	array(
		'footer_bottom_tabs' => array(
			'control_type' =&gt; 'kadence_tab_control',
			'section'      =&gt; 'footer_bottom',
			'settings'     =&gt; false,
			'priority'     =&gt; 1,
			'input_attrs'  =&gt; array(
				'general' =&gt; array(
					'label'  =&gt; __( 'General', 'kadence' ),
					'target' =&gt; 'footer_bottom',
				),
				'design' =&gt; array(
					'label'  =&gt; __( 'Design', 'kadence' ),
					'target' =&gt; 'footer_bottom_design',
				),
				'active' =&gt; 'general',
			),
		),
		'footer_bottom_tabs_design' =&gt; array(
			'control_type' =&gt; 'kadence_tab_control',
			'section'      =&gt; 'footer_bottom_design',
			'settings'     =&gt; false,
			'priority'     =&gt; 1,
			'input_attrs'  =&gt; array(
				'general' =&gt; array(
					'label'  =&gt; __( 'General', 'kadence' ),
					'target' =&gt; 'footer_bottom',
				),
				'design' =&gt; array(
					'label'  =&gt; __( 'Design', 'kadence' ),
					'target' =&gt; 'footer_bottom_design',
				),
				'active' =&gt; 'design',
			),
		),
		'footer_bottom_contain' =&gt; array(
			'control_type' =&gt; 'kadence_radio_icon_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 4,
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_contain' ),
			'label'        =&gt; esc_html__( 'Container Width', 'kadence' ),
			'live_method'  =&gt; array(
				array(
					'type'     =&gt; 'class',
					'selector' =&gt; '.site-bottom-footer-wrap',
					'pattern'  =&gt; array(
						'desktop' =&gt; 'site-footer-row-layout-$',
						'tablet'  =&gt; 'site-footer-row-tablet-layout-$',
						'mobile'  =&gt; 'site-footer-row-mobile-layout-$',
					),
					'key'      =&gt; '',
				),
			),
			'input_attrs'  =&gt; array(
				'layout' =&gt; array(
					'standard' =&gt; array(
						'tooltip' =&gt; __( 'Background Fullwidth, Content Contained', 'kadence' ),
						'name'    =&gt; __( 'Standard', 'kadence' ),
						'icon'    =&gt; '',
					),
					'fullwidth' =&gt; array(
						'tooltip' =&gt; __( 'Background &amp; Content Fullwidth', 'kadence' ),
						'name'    =&gt; __( 'Fullwidth', 'kadence' ),
						'icon'    =&gt; '',
					),
					'contained' =&gt; array(
						'tooltip' =&gt; __( 'Background &amp; Content Contained', 'kadence' ),
						'name'    =&gt; __( 'Contained', 'kadence' ),
						'icon'    =&gt; '',
					),
				),
			),
		),
		'footer_bottom_columns' =&gt; array(
			'control_type' =&gt; 'kadence_radio_icon_control',
			'section'      =&gt; 'footer_bottom',
			'label'        =&gt; esc_html__( 'Columns', 'kadence' ),
			'priority'     =&gt; 5,
			//'transport'    =&gt; 'refresh',
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_columns' ),
			'partial'      =&gt; array(
				'selector'            =&gt; '#colophon',
				'container_inclusive' =&gt; true,
				'render_callback'     =&gt; 'Kadence\footer_markup',
			),
			'input_attrs'  =&gt; array(
				'layout' =&gt; array(
					'1' =&gt; array(
						'name' =&gt; __( '1', 'kadence' ),
					),
					'2' =&gt; array(
						'name' =&gt; __( '2', 'kadence' ),
					),
					'3' =&gt; array(
						'name' =&gt; __( '3', 'kadence' ),
					),
					'4' =&gt; array(
						'name' =&gt; __( '4', 'kadence' ),
					),
					'5' =&gt; array(
						'name' =&gt; __( '5', 'kadence' ),
					),
				),
				'responsive' =&gt; false,
				'footer'     =&gt; 'bottom',
			),
		),
		'footer_bottom_layout' =&gt; array(
			'control_type' =&gt; 'kadence_row_control',
			'section'      =&gt; 'footer_bottom',
			'label'        =&gt; esc_html__( 'Layout', 'kadence' ),
			'priority'     =&gt; 5,
			//'transport'    =&gt; 'refresh',
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_layout' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'class',
					'selector' =&gt; '.site-top-footer-inner-wrap',
					'pattern'  =&gt; array(
						'desktop' =&gt; 'site-footer-row-column-layout-$',
						'tablet'  =&gt; 'site-footer-row-tablet-column-layout-$',
						'mobile'  =&gt; 'site-footer-row-mobile-column-layout-$',
					),
					'key'      =&gt; '',
				),
			),
			'input_attrs'  =&gt; array(
				'responsive' =&gt; true,
				'footer'     =&gt; 'bottom',
			),
		),
		'footer_bottom_collapse' =&gt; array(
			'control_type' =&gt; 'kadence_radio_icon_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 5,
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_collapse' ),
			'label'        =&gt; esc_html__( 'Row Collapse', 'kadence' ),
			'context'      =&gt; array(
				array(
					'setting'  =&gt; '__device',
					'operator' =&gt; 'in',
					'value'    =&gt; array( 'tablet', 'mobile' ),
				),
			),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'class',
					'selector' =&gt; '.site-bottom-footer-inner-wrap',
					'pattern'  =&gt; 'ft-ro-collapse-$',
					'key'      =&gt; '',
				),
			),
			'input_attrs'  =&gt; array(
				'layout' =&gt; array(
					'normal' =&gt; array(
						'name'    =&gt; __( 'Left to Right', 'kadence' ),
						'icon'    =&gt; '',
					),
					'rtl' =&gt; array(
						'name'    =&gt; __( 'Right to Left', 'kadence' ),
						'icon'    =&gt; '',
					),
				),
				'responsive' =&gt; false,
				'footer'     =&gt; 'bottom',
			),
		),
		'footer_bottom_direction' =&gt; array(
			'control_type' =&gt; 'kadence_radio_icon_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 5,
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_direction' ),
			'label'        =&gt; esc_html__( 'Column Direction', 'kadence' ),
			'context'      =&gt; array(
				array(
					'setting' =&gt; '__current_tab',
					'value'   =&gt; 'general',
				),
			),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'class',
					'selector' =&gt; '.site-bottom-footer-inner-wrap',
					'pattern'  =&gt; array(
						'desktop' =&gt; 'ft-ro-dir-$',
						'tablet'  =&gt; 'ft-ro-t-dir-$',
						'mobile'  =&gt; 'ft-ro-m-dir-$',
					),
					'key'      =&gt; '',
				),
			),
			'input_attrs'  =&gt; array(
				'layout' =&gt; array(
					'row' =&gt; array(
						'tooltip' =&gt; __( 'Left to Right', 'kadence' ),
						'name'    =&gt; __( 'Row', 'kadence' ),
						'icon'    =&gt; '',
					),
					'column' =&gt; array(
						'tooltip' =&gt; __( 'Top to Bottom', 'kadence' ),
						'name'    =&gt; __( 'Column', 'kadence' ),
						'icon'    =&gt; '',
					),
				),
				'responsive' =&gt; true,
				'footer'     =&gt; 'bottom',
			),
		),
		'footer_bottom_column_spacing' =&gt; array(
			'control_type' =&gt; 'kadence_range_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 5,
			'label'        =&gt; esc_html__( 'Column Spacing', 'kadence' ),
			'context'      =&gt; array(
				array(
					'setting' =&gt; '__current_tab',
					'value'   =&gt; 'general',
				),
			),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'property' =&gt; 'grid-column-gap',
					'selector' =&gt; '#colophon .site-bottom-footer-inner-wrap',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'size',
				),
				array(
					'type'     =&gt; 'css',
					'property' =&gt; 'grid-row-gap',
					'selector' =&gt; '#colophon .site-bottom-footer-inner-wrap',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'size',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_column_spacing' ),
			'input_attrs'  =&gt; array(
				'min'     =&gt; array(
					'px'  =&gt; 0,
					'em'  =&gt; 0,
					'rem' =&gt; 0,
				),
				'max'     =&gt; array(
					'px'  =&gt; 200,
					'em'  =&gt; 8,
					'rem' =&gt; 8,
				),
				'step'    =&gt; array(
					'px'  =&gt; 1,
					'em'  =&gt; 0.01,
					'rem' =&gt; 0.01,
				),
				'units'   =&gt; array( 'px', 'em', 'rem' ),
			),
		),
		'footer_bottom_widget_spacing' =&gt; array(
			'control_type' =&gt; 'kadence_range_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 5,
			'label'        =&gt; esc_html__( 'Widget Spacing', 'kadence' ),
			'context'      =&gt; array(
				array(
					'setting' =&gt; '__current_tab',
					'value'   =&gt; 'general',
				),
			),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'property' =&gt; 'margin-bottom',
					'selector' =&gt; '.site-bottom-footer-inner-wrap .widget',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'size',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_widget_spacing' ),
			'input_attrs'  =&gt; array(
				'min'     =&gt; array(
					'px'  =&gt; 0,
					'em'  =&gt; 0,
					'rem' =&gt; 0,
				),
				'max'     =&gt; array(
					'px'  =&gt; 200,
					'em'  =&gt; 8,
					'rem' =&gt; 8,
				),
				'step'    =&gt; array(
					'px'  =&gt; 1,
					'em'  =&gt; 0.01,
					'rem' =&gt; 0.01,
				),
				'units'   =&gt; array( 'px', 'em', 'rem' ),
			),
		),
		'footer_bottom_top_spacing' =&gt; array(
			'control_type' =&gt; 'kadence_range_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 5,
			'label'        =&gt; esc_html__( 'Top Spacing', 'kadence' ),
			'context'      =&gt; array(
				array(
					'setting' =&gt; '__current_tab',
					'value'   =&gt; 'general',
				),
			),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; '#colophon .site-bottom-footer-inner-wrap',
					'pattern'  =&gt; '$',
					'property' =&gt; 'padding-top',
					'key'      =&gt; 'size',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_top_spacing' ),
			'input_attrs'  =&gt; array(
				'min'     =&gt; array(
					'px'  =&gt; 0,
					'em'  =&gt; 0,
					'rem' =&gt; 0,
				),
				'max'     =&gt; array(
					'px'  =&gt; 200,
					'em'  =&gt; 8,
					'rem' =&gt; 8,
				),
				'step'    =&gt; array(
					'px'  =&gt; 1,
					'em'  =&gt; 0.01,
					'rem' =&gt; 0.01,
				),
				'units'   =&gt; array( 'px', 'em', 'rem' ),
			),
		),
		'footer_bottom_bottom_spacing' =&gt; array(
			'control_type' =&gt; 'kadence_range_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 5,
			'label'        =&gt; esc_html__( 'Bottom Spacing', 'kadence' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; '#colophon .site-bottom-footer-inner-wrap',
					'pattern'  =&gt; '$',
					'property' =&gt; 'padding-bottom',
					'key'      =&gt; 'size',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_bottom_spacing' ),
			'input_attrs'  =&gt; array(
				'min'     =&gt; array(
					'px'  =&gt; 0,
					'em'  =&gt; 0,
					'rem' =&gt; 0,
				),
				'max'     =&gt; array(
					'px'  =&gt; 200,
					'em'  =&gt; 8,
					'rem' =&gt; 8,
				),
				'step'    =&gt; array(
					'px'  =&gt; 1,
					'em'  =&gt; 0.01,
					'rem' =&gt; 0.01,
				),
				'units'   =&gt; array( 'px', 'em', 'rem' ),
			),
		),
		'footer_bottom_height' =&gt; array(
			'control_type' =&gt; 'kadence_range_control',
			'section'      =&gt; 'footer_bottom',
			'priority'     =&gt; 5,
			'label'        =&gt; esc_html__( 'Min Height', 'kadence' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; '#colophon .site-bottom-footer-inner-wrap',
					'pattern'  =&gt; '$',
					'property' =&gt; 'min-height',
					'key'      =&gt; 'size',
				),
			),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_height' ),
			'input_attrs'  =&gt; array(
				'min'     =&gt; array(
					'px'  =&gt; 10,
					'em'  =&gt; 1,
					'rem' =&gt; 1,
					'vh'  =&gt; 2,
				),
				'max'     =&gt; array(
					'px'  =&gt; 400,
					'em'  =&gt; 12,
					'rem' =&gt; 12,
					'vh'  =&gt; 40,
				),
				'step'    =&gt; array(
					'px'  =&gt; 1,
					'em'  =&gt; 0.01,
					'rem' =&gt; 0.01,
					'vh'  =&gt; 1,
				),
				'units'   =&gt; array( 'px', 'em', 'rem', 'vh' ),
			),
		),
		'footer_bottom_widget_title' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'footer_bottom_design',
			'label'        =&gt; esc_html__( 'Widget Titles', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_widget_title' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner .widget-title',
					'pattern'  =&gt; array(
						'desktop' =&gt; '$',
						'tablet'  =&gt; '$',
						'mobile'  =&gt; '$',
					),
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id' =&gt; 'footer_bottom_widget_title',
			),
		),
		'footer_bottom_widget_content' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'footer_bottom_design',
			'label'        =&gt; esc_html__( 'Widget Content', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_widget_content' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
					'pattern'  =&gt; array(
						'desktop' =&gt; '$',
						'tablet'  =&gt; '$',
						'mobile'  =&gt; '$',
					),
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id' =&gt; 'footer_bottom_widget_content',
			),
		),
		'footer_bottom_link_colors' =&gt; array(
			'control_type' =&gt; 'kadence_color_control',
			'section'      =&gt; 'footer_bottom_design',
			'label'        =&gt; esc_html__( 'Link Colors', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_link_colors' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; '.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button))',
					'property' =&gt; 'color',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'color',
				),
				array(
					'type'     =&gt; 'css',
					'selector' =&gt; '.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner a:where(:not(.button):not(.wp-block-button__link):not(.wp-element-button)):hover',
					'property' =&gt; 'color',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'hover',
				),
			),
			'input_attrs'  =&gt; array(
				'colors' =&gt; array(
					'color' =&gt; array(
						'tooltip' =&gt; __( 'Initial Color', 'kadence' ),
						'palette' =&gt; true,
					),
					'hover' =&gt; array(
						'tooltip' =&gt; __( 'Hover Color', 'kadence' ),
						'palette' =&gt; true,
					),
				),
			),
		),
		'footer_bottom_link_style' =&gt; array(
			'control_type' =&gt; 'kadence_select_control',
			'section'      =&gt; 'footer_bottom_design',
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_link_style' ),
			'label'        =&gt; esc_html__( 'Link Style', 'kadence' ),
			'input_attrs'  =&gt; array(
				'options' =&gt; array(
					'plain' =&gt; array(
						'name' =&gt; __( 'Underline on Hover', 'kadence' ),
					),
					'normal' =&gt; array(
						'name' =&gt; __( 'Underline', 'kadence' ),
					),
					'noline' =&gt; array(
						'name' =&gt; __( 'No Underline', 'kadence' ),
					),
				),
			),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'class',
					'selector' =&gt; '.site-bottom-footer-inner-wrap',
					'pattern'  =&gt; 'ft-ro-lstyle-$',
					'key'      =&gt; '',
				),
			),
		),
		'footer_bottom_background' =&gt; array(
			'control_type' =&gt; 'kadence_background_control',
			'section'      =&gt; 'footer_bottom_design',
			'label'        =&gt; esc_html__( 'Bottom Row Background', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_background' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_background',
					'selector' =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
					'property' =&gt; 'background',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'base',
				),
			),
			'input_attrs'  =&gt; array(
				'tooltip'  =&gt; __( 'Bottom Row Background', 'kadence' ),
			),
		),
		'footer_bottom_column_border' =&gt; array(
			'control_type' =&gt; 'kadence_border_control',
			'section'      =&gt; 'footer_bottom_design',
			'label'        =&gt; esc_html__( 'Column Border', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_column_border' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_border',
					'selector' =&gt; '.site-bottom-footer-inner-wrap .site-footer-section:not(:last-child):after',
					'pattern'  =&gt; '$',
					'property' =&gt; 'border-right',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'border',
				),
			),
		),
		'footer_bottom_border' =&gt; array(
			'control_type' =&gt; 'kadence_borders_control',
			'section'      =&gt; 'footer_bottom_design',
			'label'        =&gt; esc_html__( 'Border', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'footer_bottom_border' ),
			'settings'     =&gt; array(
				'border_top'    =&gt; 'footer_bottom_top_border',
				'border_bottom' =&gt; 'footer_bottom_bottom_border',
			),
			'live_method'     =&gt; array(
				'footer_bottom_top_border' =&gt; array(
					array(
						'type'     =&gt; 'css_border',
						'selector' =&gt; array(
							'desktop' =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
							'tablet'  =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
							'mobile'  =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
						),
						'pattern'  =&gt; array(
							'desktop' =&gt; '$',
							'tablet'  =&gt; '$',
							'mobile'  =&gt; '$',
						),
						'property' =&gt; 'border-top',
						'pattern'  =&gt; '$',
						'key'      =&gt; 'border',
					),
				),
				'footer_bottom_bottom_border' =&gt; array( 
					array(
						'type'     =&gt; 'css_border',
						'selector' =&gt; array(
							'desktop' =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
							'tablet'  =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
							'mobile'  =&gt; '.site-bottom-footer-wrap .site-footer-row-container-inner',
						),
						'pattern'  =&gt; array(
							'desktop' =&gt; '$',
							'tablet'  =&gt; '$',
							'mobile'  =&gt; '$',
						),
						'property' =&gt; 'border-bottom',
						'pattern'  =&gt; '$',
						'key'      =&gt; 'border',
					),
				),
			),
		),
	)
);
