<?php /**
 * Focus Layout Options
 *
 * @package Kadence
 */

namespace Kadence;

use Kadence\Theme_Customizer;
use function Kadence\kadence;

$settings = array(
	'sfwd-focus_layout_tabs' => array(
		'control_type' =&gt; 'kadence_tab_control',
		'section'      =&gt; 'sfwd_topic_layout',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'input_attrs'  =&gt; array(
			'general' =&gt; array(
				'label'  =&gt; __( 'General', 'kadence' ),
				'target' =&gt; 'sfwd_topic_layout',
			),
			'design' =&gt; array(
				'label'  =&gt; __( 'Design', 'kadence' ),
				'target' =&gt; 'sfwd_topic_layout_design',
			),
			'active' =&gt; 'general',
		),
	),
	'sfwd-focus_layout_tabs_design' =&gt; array(
		'control_type' =&gt; 'kadence_tab_control',
		'section'      =&gt; 'sfwd_topic_layout_design',
		'settings'     =&gt; false,
		'priority'     =&gt; 1,
		'input_attrs'  =&gt; array(
			'general' =&gt; array(
				'label'  =&gt; __( 'General', 'kadence' ),
				'target' =&gt; 'sfwd_topic_layout',
			),
			'design' =&gt; array(
				'label'  =&gt; __( 'Design', 'kadence' ),
				'target' =&gt; 'sfwd_topic_layout_design',
			),
			'active' =&gt; 'design',
		),
	),
	'info_sfwd-focus_title' =&gt; array(
		'control_type' =&gt; 'kadence_title_control',
		'section'      =&gt; 'sfwd_topic_layout',
		'priority'     =&gt; 2,
		'label'        =&gt; esc_html__( 'Focus Title', 'kadence' ),
		'settings'     =&gt; false,
	),
	'info_sfwd-focus_title_design' =&gt; array(
		'control_type' =&gt; 'kadence_title_control',
		'section'      =&gt; 'sfwd_topic_layout_design',
		'priority'     =&gt; 2,
		'label'        =&gt; esc_html__( 'Focus Title', 'kadence' ),
		'settings'     =&gt; false,
	),
	'sfwd-focus_title' =&gt; array(
		'control_type' =&gt; 'kadence_switch_control',
		'sanitize'     =&gt; 'kadence_sanitize_toggle',
		'section'      =&gt; 'sfwd_topic_layout',
		'priority'     =&gt; 3,
		'default'      =&gt; kadence()-&gt;default( 'sfwd-focus_title' ),
		'label'        =&gt; esc_html__( 'Show Title in Focus Mode?', 'kadence' ),
		'transport'    =&gt; 'refresh',
	),
	'sfwd-focus_title_font' =&gt; array(
		'control_type' =&gt; 'kadence_typography_control',
		'section'      =&gt; 'sfwd_topic_layout_design',
		'label'        =&gt; esc_html__( 'Topic Title Font', 'kadence' ),
		'default'      =&gt; kadence()-&gt;default( 'sfwd-focus_title_font' ),
		'live_method'     =&gt; array(
			array(
				'type'     =&gt; 'css_typography',
				'selector' =&gt; '.sfwd-focus-title h1',
				'property' =&gt; 'font',
				'key'      =&gt; 'typography',
			),
		),
		'context'      =&gt; array(
			array(
				'setting'    =&gt; 'sfwd-focus_title',
				'operator'   =&gt; '=',
				'value'      =&gt; true,
			),
		),
		'input_attrs'  =&gt; array(
			'id'             =&gt; 'sfwd-focus_title_font',
			'headingInherit' =&gt; true,
		),
	),
);

Theme_Customizer::add_settings( $settings );

