<?php /**
 * Header Builder Options
 *
 * @package Kadence
 */

namespace Kadence;

use Kadence\Theme_Customizer;
use function Kadence\kadence;

$settings = array(
	'header_social_tabs' => array(
		'control_type' =&gt; 'kadence_tab_control',
		'section'      =&gt; 'header_social',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'input_attrs'  =&gt; array(
			'general' =&gt; array(
				'label'  =&gt; __( 'General', 'kadence' ),
				'target' =&gt; 'header_social',
			),
			'design' =&gt; array(
				'label'  =&gt; __( 'Design', 'kadence' ),
				'target' =&gt; 'header_social_design',
			),
			'active' =&gt; 'general',
		),
	),
	'header_social_tabs_design' =&gt; array(
		'control_type' =&gt; 'kadence_tab_control',
		'section'      =&gt; 'header_social_design',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'input_attrs'  =&gt; array(
			'general' =&gt; array(
				'label'  =&gt; __( 'General', 'kadence' ),
				'target' =&gt; 'header_social',
			),
			'design' =&gt; array(
				'label'  =&gt; __( 'Design', 'kadence' ),
				'target' =&gt; 'header_social_design',
			),
			'active' =&gt; 'design',
		),
	),
	'header_social_items' =&gt; array(
		'control_type' =&gt; 'kadence_social_control',
		'section'      =&gt; 'header_social',
		'priority'     =&gt; 6,
		'default'      =&gt; kadence()-&gt;default( 'header_social_items' ),
		'label'        =&gt; esc_html__( 'Social Items', 'kadence' ),
		'partial'      =&gt; array(
			'selector'            =&gt; '.header-social-wrap',
			'container_inclusive' =&gt; true,
			'render_callback'     =&gt; 'Kadence\header_social',
		),
	),
	'header_social_show_label' =&gt; array(
		'control_type' =&gt; 'kadence_switch_control',
		'sanitize'     =&gt; 'kadence_sanitize_toggle',
		'section'      =&gt; 'header_social',
		'priority'     =&gt; 8,
		'default'      =&gt; kadence()-&gt;default( 'header_social_show_label' ),
		'label'        =&gt; esc_html__( 'Show Icon Label?', 'kadence' ),
		'partial'      =&gt; array(
			'selector'            =&gt; '.header-social-wrap',
			'container_inclusive' =&gt; true,
			'render_callback'     =&gt; 'Kadence\header_social',
		),
	),
	'header_social_item_spacing' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'header_social',
		'label'        =&gt; esc_html__( 'Item Spacing', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'header_social_item_spacing' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.header-social-wrap .header-social-inner-wrap',
				'property' =&gt; 'gap',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 0,
				'em'  =&gt; 0,
				'rem' =&gt; 0,
			),
			'max'        =&gt; array(
				'px'  =&gt; 50,
				'em'  =&gt; 3,
				'rem' =&gt; 3,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
			),
			'units'      =&gt; array( 'px', 'em', 'rem' ),
			'responsive' =&gt; false,
		),
	),
	'header_social_style' =&gt; array(
		'control_type' =&gt; 'kadence_radio_icon_control',
		'section'      =&gt; 'header_social_design',
		'priority'     =&gt; 10,
		'default'      =&gt; kadence()-&gt;default( 'header_social_style' ),
		'label'        =&gt; esc_html__( 'Social Style', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'class',
				'selector' =&gt; '.header-social-inner-wrap',
				'pattern'  =&gt; 'social-style-$',
				'key'      =&gt; '',
			),
		),
		'input_attrs'  =&gt; array(
			'layout' =&gt; array(
				'filled' =&gt; array(
					'name' =&gt; __( 'Filled', 'kadence' ),
				),
				'outline' =&gt; array(
					'name' =&gt; __( 'Outline', 'kadence' ),
				),
			),
			'responsive' =&gt; false,
		),
	),
	'header_social_icon_size' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'header_social_design',
		'label'        =&gt; esc_html__( 'Icon Size', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.header-social-wrap .header-social-inner-wrap',
				'property' =&gt; 'font-size',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'header_social_icon_size' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 0,
				'em'  =&gt; 0,
				'rem' =&gt; 0,
			),
			'max'        =&gt; array(
				'px'  =&gt; 100,
				'em'  =&gt; 12,
				'rem' =&gt; 12,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
			),
			'units'      =&gt; array( 'px', 'em', 'rem' ),
			'responsive' =&gt; false,
		),
	),
	'header_social_brand' =&gt; array(
		'control_type' =&gt; 'kadence_select_control',
		'section'      =&gt; 'header_social_design',
		'transport'    =&gt; 'refresh',
		'default'      =&gt; kadence()-&gt;default( 'header_social_brand' ),
		'label'        =&gt; esc_html__( 'Use Brand Colors?', 'kadence' ),
		'input_attrs'  =&gt; array(
			'options' =&gt; array(
				'' =&gt; array(
					'name' =&gt; __( 'No', 'kadence' ),
				),
				'always' =&gt; array(
					'name' =&gt; __( 'Yes', 'kadence' ),
				),
				'onhover' =&gt; array(
					'name' =&gt; __( 'On Hover', 'kadence' ),
				),
				'untilhover' =&gt; array(
					'name' =&gt; __( 'Until Hover', 'kadence' ),
				),
			),
		),
	),
	'header_social_color' =&gt; array(
		'control_type' =&gt; 'kadence_color_control',
		'section'      =&gt; 'header_social_design',
		'label'        =&gt; esc_html__( 'Colors', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'header_social_color' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#main-header .header-social-wrap a.social-button',
				'property' =&gt; 'color',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'color',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#main-header .header-social-wrap a.social-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,
				),
			),
		),
	),
	'header_social_background' =&gt; array(
		'control_type' =&gt; 'kadence_color_control',
		'section'      =&gt; 'header_social_design',
		'label'        =&gt; esc_html__( 'Background Colors', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'header_social_background' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#main-header .header-social-wrap a.social-button',
				'property' =&gt; 'background',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'color',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#main-header .header-social-wrap a.social-button:hover',
				'property' =&gt; 'background',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'hover',
			),
		),
		'context'      =&gt; array(
			array(
				'setting'  =&gt; 'header_social_style',
				'operator' =&gt; '=',
				'value'    =&gt; 'filled',
			),
		),
		'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,
				),
			),
		),
	),
	'header_social_border_colors' =&gt; array(
		'control_type' =&gt; 'kadence_color_control',
		'section'      =&gt; 'header_social_design',
		'label'        =&gt; esc_html__( 'Border Colors', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'header_social_border' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#main-header .header-social-wrap a.social-button',
				'property' =&gt; 'border-color',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'color',
			),
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#main-header .header-social-wrap a.social-button:hover',
				'property' =&gt; 'border-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,
				),
			),
		),
	),
	'header_social_border' =&gt; array(
		'control_type' =&gt; 'kadence_border_control',
		'section'      =&gt; 'header_social_design',
		'label'        =&gt; esc_html__( 'Border', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'header_social_border' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_border',
				'selector' =&gt; '.header-social-wrap a.social-button',
				'property' =&gt; 'border',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'border',
			),
		),
		'input_attrs'  =&gt; array(
			'responsive' =&gt; false,
			'color'      =&gt; false,
		),
	),
	'header_social_border_radius' =&gt; array(
		'control_type' =&gt; 'kadence_range_control',
		'section'      =&gt; 'header_social_design',
		'label'        =&gt; esc_html__( 'Border Radius', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '.header-social-wrap a.social-button',
				'property' =&gt; 'border-radius',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'size',
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'header_social_border_radius' ),
		'input_attrs'  =&gt; array(
			'min'        =&gt; array(
				'px'  =&gt; 0,
				'em'  =&gt; 0,
				'rem' =&gt; 0,
				'%'   =&gt; 0,
			),
			'max'        =&gt; array(
				'px'  =&gt; 100,
				'em'  =&gt; 12,
				'rem' =&gt; 12,
				'%'   =&gt; 100,
			),
			'step'       =&gt; array(
				'px'  =&gt; 1,
				'em'  =&gt; 0.01,
				'rem' =&gt; 0.01,
				'%'   =&gt; 1,
			),
			'units'      =&gt; array( 'px', 'em', 'rem', '%' ),
			'responsive' =&gt; false,
		),
	),
	'header_social_typography' =&gt; array(
		'control_type' =&gt; 'kadence_typography_control',
		'section'      =&gt; 'header_social_design',
		'label'        =&gt; esc_html__( 'Font', 'kadence' ),
		'context'      =&gt; array(
			array(
				'setting'  =&gt; 'header_social_show_label',
				'operator' =&gt; '=',
				'value'    =&gt; true,
			),
		),
		'default'      =&gt; kadence()-&gt;default( 'header_social_typography' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_typography',
				'selector' =&gt; '.header-social-wrap a.social-button .social-label',
				'pattern'  =&gt; array(
					'desktop' =&gt; '$',
					'tablet'  =&gt; '$',
					'mobile'  =&gt; '$',
				),
				'property' =&gt; 'font',
				'key'      =&gt; 'typography',
			),
		),
		'input_attrs'  =&gt; array(
			'id' =&gt; 'header_social_typography',
			'options' =&gt; 'no-color',
		),
	),
	'header_social_margin' =&gt; array(
		'control_type' =&gt; 'kadence_measure_control',
		'section'      =&gt; 'header_social_design',
		'priority'     =&gt; 10,
		'default'      =&gt; kadence()-&gt;default( 'header_social_margin' ),
		'label'        =&gt; esc_html__( 'Margin', 'kadence' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css',
				'selector' =&gt; '#main-header .header-social-wrap',
				'property' =&gt; 'margin',
				'pattern'  =&gt; '$',
				'key'      =&gt; 'measure',
			),
		),
		'input_attrs'  =&gt; array(
			'responsive' =&gt; false,
		),
	),
	'header_social_link_to_social_links' =&gt; array(
		'control_type' =&gt; 'kadence_focus_button_control',
		'section'      =&gt; 'header_social',
		'settings'     =&gt; false,
		'priority'     =&gt; 25,
		'label'        =&gt; esc_html__( 'Set Social Links', 'kadence' ),
		'input_attrs'  =&gt; array(
			'section' =&gt; 'kadence_customizer_general_social',
		),
	),
);

Theme_Customizer::add_settings( $settings );