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

namespace Kadence;

use Kadence\Theme_Customizer;
use function Kadence\kadence;

Theme_Customizer::add_settings(
	array(
		// 'load_font_pairing' => array(
		// 	'control_type' =&gt; 'kadence_font_pairing',
		// 	'section'      =&gt; 'general_typography',
		// 	'label'        =&gt; esc_html__( 'Font Pairings', 'kadence' ),
		// 	'settings'     =&gt; false,
		// ),
		'base_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'Base Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'base_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'body',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
				array(
					'type'     =&gt; 'css',
					'property' =&gt; '--global-body-font-family',
					'selector' =&gt; 'body',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'family',
				),
			),
			'input_attrs'  =&gt; array(
				'id'         =&gt; 'base_font',
				'canInherit' =&gt; false,
			),
		),
		'load_base_italic' =&gt; array(
			'control_type' =&gt; 'kadence_switch_control',
			'sanitize'     =&gt; 'kadence_sanitize_toggle',
			'section'      =&gt; 'general_typography',
			'default'      =&gt; kadence()-&gt;default( 'load_base_italic' ),
			'label'        =&gt; esc_html__( 'Load Italics Font Styles', 'kadence' ),
			'context'      =&gt; array(
				array(
					'setting' =&gt; 'base_font',
					'operator'   =&gt; 'load_italic',
					'value'   =&gt; 'true',
				),
			),
		),
		'info_heading' =&gt; array(
			'control_type' =&gt; 'kadence_title_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'Headings', 'kadence' ),
			'settings'     =&gt; false,
		),
		'heading_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'Heading Font Family', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'heading_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'h1,h2,h3,h4,h5,h6',
					'property' =&gt; 'font',
					'key'      =&gt; 'family',
				),
				array(
					'type'     =&gt; 'css',
					'property' =&gt; '--global-heading-font-family',
					'selector' =&gt; 'body',
					'pattern'  =&gt; '$',
					'key'      =&gt; 'family',
				),
			),
			'input_attrs'  =&gt; array(
				'id'      =&gt; 'heading_font',
				'options' =&gt; 'family',
			),
		),
		'h1_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'H1 Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'h1_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'h1',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'             =&gt; 'h1_font',
				'headingInherit' =&gt; true,
			),
		),
		'h2_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'H2 Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'h2_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'h2',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'             =&gt; 'h2_font',
				'headingInherit' =&gt; true,
			),
		),
		'h3_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'H3 Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'h3_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'h3',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'             =&gt; 'h3_font',
				'headingInherit' =&gt; true,
			),
		),
		'h4_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'H4 Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'h4_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'h4',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'             =&gt; 'h4_font',
				'headingInherit' =&gt; true,
			),
		),
		'h5_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'H5 Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'h5_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'h5',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'             =&gt; 'h5_font',
				'headingInherit' =&gt; true,
			),
		),
		'h6_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'H6 Font', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'h6_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; 'h6',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'             =&gt; 'h6_font',
				'headingInherit' =&gt; true,
			),
		),
		'info_above_title_heading' =&gt; array(
			'control_type' =&gt; 'kadence_title_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'Title Above Content', 'kadence' ),
			'settings'     =&gt; false,
		),
		'title_above_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'H1 Title', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'title_above_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; '.entry-hero h1',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'             =&gt; 'title_above_font',
				'headingInherit' =&gt; true,
			),
		),
		'title_above_breadcrumb_font' =&gt; array(
			'control_type' =&gt; 'kadence_typography_control',
			'section'      =&gt; 'general_typography',
			'label'        =&gt; esc_html__( 'Breadcrumbs', 'kadence' ),
			'default'      =&gt; kadence()-&gt;default( 'title_above_breadcrumb_font' ),
			'live_method'     =&gt; array(
				array(
					'type'     =&gt; 'css_typography',
					'selector' =&gt; '.entry-hero .kadence-breadcrumbs',
					'property' =&gt; 'font',
					'key'      =&gt; 'typography',
				),
			),
			'input_attrs'  =&gt; array(
				'id'      =&gt; 'title_above_breadcrumb_font',
			),
		),
		'font_rendering' =&gt; array(
			'control_type' =&gt; 'kadence_switch_control',
			'sanitize'     =&gt; 'kadence_sanitize_toggle',
			'section'      =&gt; 'general_typography',
			'transport'    =&gt; 'refresh',
			'default'      =&gt; kadence()-&gt;default( 'font_rendering' ),
			'label'        =&gt; esc_html__( 'Enable Font Smoothing', 'kadence' ),
		),
		'google_subsets' =&gt; array(
			'control_type' =&gt; 'kadence_check_icon_control',
			'section'      =&gt; 'general_typography',
			'sanitize'     =&gt; 'kadence_sanitize_google_subsets',
			'priority'     =&gt; 20,
			'default'      =&gt; array(),
			'label'        =&gt; esc_html__( 'Google Font Subsets', 'kadence' ),
			'input_attrs'  =&gt; array(
				'options' =&gt; array(
					'latin-ext' =&gt; array(
						'name' =&gt; __( 'Latin Extended', 'kadence' ),
					),
					'cyrillic' =&gt; array(
						'name' =&gt; __( 'Cyrillic', 'kadence' ),
					),
					'cyrillic-ext' =&gt; array(
						'name' =&gt; __( 'Cyrillic Extended', 'kadence' ),
					),
					'greek' =&gt; array(
						'name' =&gt; __( 'Greek', 'kadence' ),
					),
					'greek-ext' =&gt; array(
						'name' =&gt; __( 'Greek Extended', 'kadence' ),
					),
					'vietnamese' =&gt; array(
						'name' =&gt; __( 'Vietnamese', 'kadence' ),
					),
					'arabic' =&gt; array(
						'name' =&gt; __( 'Arabic', 'kadence' ),
					),
					'khmer' =&gt; array(
						'name' =&gt; __( 'Khmer', 'kadence' ),
					),
					'chinese' =&gt; array(
						'name' =&gt; __( 'Chinese', 'kadence' ),
					),
					'chinese-simplified' =&gt; array(
						'name' =&gt; __( 'Chinese Simplified', 'kadence' ),
					),
					'tamil' =&gt; array(
						'name' =&gt; __( 'Tamil', 'kadence' ),
					),
					'bengali' =&gt; array(
						'name' =&gt; __( 'Bengali', 'kadence' ),
					),
					'devanagari' =&gt; array(
						'name' =&gt; __( 'Devanagari', 'kadence' ),
					),
					'hebrew' =&gt; array(
						'name' =&gt; __( 'Hebrew', 'kadence' ),
					),
					'korean' =&gt; array(
						'name' =&gt; __( 'Korean', 'kadence' ),
					),
					'thai' =&gt; array(
						'name' =&gt; __( 'Thai', 'kadence' ),
					),
					'telugu' =&gt; array(
						'name' =&gt; __( 'Telugu', 'kadence' ),
					),
				),
			),
		),
	)
);
