<?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(
	'mobile_html_tabs' => array(
		'control_type' =&gt; 'kadence_blank_control',
		'section'      =&gt; 'mobile_html',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'description'  =&gt; $compontent_tabs,
	),
	'mobile_html_content' =&gt; array(
		'control_type' =&gt; 'kadence_editor_control',
		'section'      =&gt; 'mobile_html',
		'sanitize'     =&gt; 'wp_kses_post',
		'priority'     =&gt; 4,
		'default'      =&gt; kadence()-&gt;default( 'mobile_html_content' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'general',
			),
		),
		'input_attrs'  =&gt; array(
			'id' =&gt; 'mobile_html',
		),
		'partial'      =&gt; array(
			'selector'            =&gt; '.mobile-html',
			'container_inclusive' =&gt; true,
			'render_callback'     =&gt; 'Kadence\mobile_html',
		),
	),
	'mobile_html_wpautop' =&gt; array(
		'control_type' =&gt; 'kadence_switch_control',
		'sanitize'     =&gt; 'kadence_sanitize_toggle',
		'section'      =&gt; 'mobile_html',
		'default'      =&gt; kadence()-&gt;default( 'mobile_html_wpautop' ),
		'label'        =&gt; esc_html__( 'Automatically Add Paragraphs', 'kadence' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'general',
			),
		),
		'partial'      =&gt; array(
			'selector'            =&gt; '.mobile-html',
			'container_inclusive' =&gt; true,
			'render_callback'     =&gt; 'Kadence\mobile_html',
		),
	),
	'mobile_html_typography' =&gt; array(
		'control_type' =&gt; 'kadence_typography_control',
		'section'      =&gt; 'mobile_html',
		'label'        =&gt; esc_html__( 'Font', 'kadence' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'design',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'mobile_html_typography' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_typography',
				'selector' =&gt; '.mobile-html',
				'pattern'  =&gt; array(
					'desktop' =&gt; '$',
					'tablet'  =&gt; '$',
					'mobile'  =&gt; '$',
				),
				'property' =&gt; 'font',
				'key'      =&gt; 'typography',
			),
		),
		'input_attrs'  =&gt; array(
			'id' =&gt; 'mobile_html_typography',
		),
	),
	'mobile_html_link_color' =&gt; array(
		'control_type' =&gt; 'kadence_color_control',
		'section'      =&gt; 'mobile_html',
		'label'        =&gt; esc_html__( 'Link Colors', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'mobile_html_link_color' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.mobile-html a',
				'property' =&gt; 'color',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'color',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.mobile-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,
				),
			),
		),
	),
	'mobile_html_link_style' =&gt; array(
		'control_type' =&gt; 'kadence_select_control',
		'section'      =&gt; 'mobile_html',
		'default'      =&gt; kadence()-&gt;default( 'mobile_html_link_style' ),
		'label'        =&gt; esc_html__( 'Link Style', 'kadence' ),
		'context'      =&gt; array(
			array(
				'setting' =&gt; '__current_tab',
				'value'   =&gt; 'design',
			),
		),
		'input_attrs'  =&gt; array(
			'options' =&gt; array(
				'normal' =&gt; array(
					'name' =&gt; __( 'Underline', 'kadence' ),
				),
				'plain' =&gt; array(
					'name' =&gt; __( 'No Underline', 'kadence' ),
				),
			),
		),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'class',
				'selector' =&gt; '#mobile-header .mobile-html',
				'pattern'  =&gt; 'inner-link-style-$',
				'key'      =&gt; '',
			),
		),
	),
	'mobile_html_margin' =&gt; array(
		'control_type' =&gt; 'kadence_measure_control',
		'section'      =&gt; 'mobile_html',
		'priority'     =&gt; 10,
		'default'      =&gt; kadence()-&gt;default( 'mobile_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; '.mobile-html',
				'property' =&gt; 'margin',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'measure',
			),
		),
		'input_attrs'  =&gt; array(
			'responsive' =&gt; false,
		),
	),
);

Theme_Customizer::add_settings( $settings );

