<?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();
$settings        = array(
	'footer_html_tabs' => array(
		'control_type' =&gt; 'kadence_blank_control',
		'section'      =&gt; 'footer_html',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'description'  =&gt; $compontent_tabs,
	),
	'footer_html_content' =&gt; array(
		'control_type' =&gt; 'kadence_editor_control',
		'sanitize'     =&gt; 'wp_kses_post',
		'section'      =&gt; 'footer_html',
		'description'  =&gt; esc_html__( 'Available Placeholders: {copyright} {year} {site-title} {theme-credit}', 'kadence' ),
		'priority'     =&gt; 4,
		'default'      =&gt; kadence()-&gt;default( 'footer_html_content' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'general',
			),
		),
		'input_attrs'  =&gt; array(
			'id' =&gt; 'footer_html',
		),
		'partial'      =&gt; array(
			'selector'            =&gt; '.footer-html',
			'container_inclusive' =&gt; true,
			'render_callback'     =&gt; 'Kadence\footer_html',
		),
	),
	'footer_html_align' =&gt; array(
		'control_type' =&gt; 'kadence_radio_icon_control',
		'section'      =&gt; 'footer_html',
		'label'        =&gt; esc_html__( 'Content Align', 'kadence' ),
		'priority'     =&gt; 5,
		'default'      =&gt; kadence()-&gt;default( 'footer_html_align' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'general',
			),
		),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'class',
				'selector' =&gt; '.site-info',
				'pattern'  =&gt; array(
					'desktop' =&gt; 'content-align-$',
					'tablet'  =&gt; 'content-tablet-align-$',
					'mobile'  =&gt; 'content-mobile-align-$',
				),
				'key'      =&gt; '',
			),
		),
		'input_attrs'  =&gt; array(
			'layout' =&gt; array(
				'left'   =&gt; array(
					'tooltip'  =&gt; __( 'Left Align', 'kadence' ),
					'dashicon' =&gt; 'editor-alignleft',
				),
				'center' =&gt; array(
					'tooltip'  =&gt; __( 'Center Align', 'kadence' ),
					'dashicon' =&gt; 'editor-aligncenter',
				),
				'right'  =&gt; array(
					'tooltip'  =&gt; __( 'Right Align', 'kadence' ),
					'dashicon' =&gt; 'editor-alignright',
				),
			),
			'responsive' =&gt; true,
		),
	),
	'footer_html_vertical_align' =&gt; array(
		'control_type' =&gt; 'kadence_radio_icon_control',
		'section'      =&gt; 'footer_html',
		'label'        =&gt; esc_html__( 'Content Vertical Align', 'kadence' ),
		'priority'     =&gt; 5,
		'default'      =&gt; kadence()-&gt;default( 'footer_html_vertical_align' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'general',
			),
		),
		'live_method'  =&gt; array(
			array(
				'type'     =&gt; 'class',
				'selector' =&gt; '.site-info',
				'pattern'  =&gt; array(
					'desktop' =&gt; 'content-valign-$',
					'tablet'  =&gt; 'content-tablet-valign-$',
					'mobile'  =&gt; 'content-mobile-valign-$',
				),
				'key'      =&gt; '',
			),
		),
		'input_attrs'  =&gt; array(
			'layout' =&gt; array(
				'top' =&gt; array(
					'tooltip' =&gt; __( 'Top Align', 'kadence' ),
					'icon'    =&gt; 'aligntop',
				),
				'middle' =&gt; array(
					'tooltip' =&gt; __( 'Middle Align', 'kadence' ),
					'icon'    =&gt; 'alignmiddle',
				),
				'bottom' =&gt; array(
					'tooltip' =&gt; __( 'Bottom Align', 'kadence' ),
					'icon'    =&gt; 'alignbottom',
				),
			),
			'responsive' =&gt; true,
		),
	),
	'footer_html_typography' =&gt; array(
		'control_type' =&gt; 'kadence_typography_control',
		'section'      =&gt; 'footer_html',
		'label'        =&gt; esc_html__( 'Font', 'kadence' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'design',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'footer_html_typography' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_typography',
				'selector' =&gt; '#colophon .footer-html',
				'pattern'  =&gt; array(
					'desktop' =&gt; '$',
					'tablet'  =&gt; '$',
					'mobile'  =&gt; '$',
				),
				'property' =&gt; 'font',
				'key'      =&gt; 'typography',
			),
		),
		'input_attrs'  =&gt; array(
			'id' =&gt; 'footer_html_typography',
		),
	),
	'footer_html_link_color' =&gt; array(
		'control_type' =&gt; 'kadence_color_control',
		'section'      =&gt; 'footer_html',
		'label'        =&gt; esc_html__( 'Link Colors', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'footer_html_link_color' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#colophon .site-footer-row-container .site-footer-row .footer-html a',
				'property' =&gt; 'color',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'color',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#colophon .site-footer-row-container .site-footer-row .footer-html a:hover',
				'property' =&gt; 'color',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'hover',
			),
		),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'design',
			),
		),
		'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_html_link_style' =&gt; array(
		'control_type' =&gt; 'kadence_select_control',
		'section'      =&gt; 'footer_html',
		'default'      =&gt; kadence()-&gt;default( 'footer_html_link_style' ),
		'label'        =&gt; esc_html__( 'Link Style', 'kadence' ),
		'input_attrs'  =&gt; array(
			'options' =&gt; array(
				'normal' =&gt; array(
					'name' =&gt; __( 'Underline', 'kadence' ),
				),
				'plain' =&gt; array(
					'name' =&gt; __( 'No Underline', 'kadence' ),
				),
			),
		),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'design',
			),
		),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'class',
				'selector' =&gt; '#colophon .footer-html',
				'pattern'  =&gt; 'inner-link-style-$',
				'key'      =&gt; '',
			),
		),
	),
	'footer_html_margin' =&gt; array(
		'control_type' =&gt; 'kadence_measure_control',
		'section'      =&gt; 'footer_html',
		'priority'     =&gt; 10,
		'default'      =&gt; kadence()-&gt;default( 'footer_html_margin' ),
		'label'        =&gt; esc_html__( 'Margin', 'kadence' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'design',
			),
		),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#colophon .footer-html',
				'property' =&gt; 'margin',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'measure',
			),
		),
		'input_attrs'  =&gt; array(
			'responsive' =&gt; false,
		),
	),
);

Theme_Customizer::add_settings( $settings );

