<?php

if ( class_exists("Kirki")){

	// LOGO

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'home_automation_logo_resizer',
		'label'       => esc_html__( 'Adjust Your Logo Size ', 'home-automation' ),
		'section'     => 'title_tagline',
		// 'default'     => 70,
		'choices'     => [
			'min'  => 10,
			'max'  => 300,
			'step' => 10,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_enable_logo_text',
		'section'     => 'title_tagline',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Site Title and Tagline', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_display_header_title',
		'label'       => esc_html__( 'Site Title Enable / Disable Button', 'home-automation' ),
		'section'     => 'title_tagline',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_display_header_text',
		'label'       => esc_html__( 'Tagline Enable / Disable Button', 'home-automation' ),
		'section'     => 'title_tagline',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	// FONT STYLE TYPOGRAPHY

	Kirki::add_panel( 'home_automation_panel_id', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Typography', 'home-automation' ),
	) );

	Kirki::add_section( 'home_automation_font_style_section', array(
		'title'      => esc_html__( 'Typography Option',  'home-automation' ),
		'priority'   => 2,
		'capability' => 'edit_theme_options',
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_font_style_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. More Font Family Options </p><p>3. Color Pallete Setup </p><p>4. Section Reordering Facility</p><p>5. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_all_headings_typography',
		'section'     => 'home_automation_font_style_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Heading Of All Sections',  'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'global', array(
		'type'        => 'typography',
		'settings'    => 'home_automation_all_headings_typography',
		'label'       => esc_html__( 'Heading Typography',  'home-automation' ),
		'description' => esc_html__( 'Select the typography options for your heading.',  'home-automation' ),
		'section'     => 'home_automation_font_style_section',
		'priority'    => 10,
		'default'     => array(
			'font-family'    => '',
			'variant'        => '',
		),
		'output' => array(
			array(
				'element' => array( 'h1','h2','h3','h4','h5','h6', ),
			),
		),
	) );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_body_content_typography',
		'section'     => 'home_automation_font_style_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Body Content',  'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'global', array(
		'type'        => 'typography',
		'settings'    => 'home_automation_body_content_typography',
		'label'       => esc_html__( 'Content Typography',  'home-automation' ),
		'description' => esc_html__( 'Select the typography options for your content.',  'home-automation' ),
		'section'     => 'home_automation_font_style_section',
		'priority'    => 10,
		'default'     => array(
			'font-family'    => '',
			'variant'        => '',
		),
		'output' => array(
			array(
				'element' => array( 'body', ),
			),
		),
	) );

		// PANEL
	Kirki::add_panel( 'home_automation_panel_id_5', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Animations', 'home-automation' ),
	) );

	// ANIMATION SECTION
	Kirki::add_section( 'home_automation_section_animation', array(
	    'title'          => esc_html__( 'Animations', 'home-automation' ),
	    'priority'       => 2,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_section_animation',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_animation_enabled',
		'label'       => esc_html__( 'Turn To Show Animation', 'home-automation' ),
		'section'     => 'home_automation_section_animation',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	// PANEL
	Kirki::add_panel( 'home_automation_panel_id_2', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Dark Mode', 'home-automation' ),
	) );

	// DARK MODE SECTION
	Kirki::add_section( 'home_automation_section_dark_mode', array(
	    'title'          => esc_html__( 'Dark Mode', 'home-automation' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_section_dark_mode',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	]);

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'home_automation_dark_colors',
	    'section'     => 'home_automation_section_dark_mode',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Dark Appearance', 'home-automation' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_is_dark_mode_enabled',
		'label'       => esc_html__( 'Turn To Dark Mode', 'home-automation' ),
		'section'     => 'home_automation_section_dark_mode',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );


	// PANEL
	Kirki::add_panel( 'home_automation_panel_id_3', array(
	    'priority'    => 10,
	    'title'       => esc_html__( '404 Settings / No Result', 'home-automation' ),
	) );

	// 404 SECTION
	Kirki::add_section( 'home_automation_section_404', array(
		'panel'          => 'home_automation_panel_id_3',
	    'title'          => esc_html__( '404 Settings', 'home-automation' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_section_404',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
		'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'home_automation_404_heading',
	    'section'     => 'home_automation_section_404',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( '404 Heading', 'home-automation' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'home_automation_404_page_title',
		'section'  => 'home_automation_section_404',
		'default'  => esc_html__('404 Not Found', 'home-automation'),
		'priority' => 10,
	] );

		Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'home_automation_404_text',
	    'section'     => 'home_automation_section_404',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( '404 Content', 'home-automation' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'home_automation_404_page_content',
		'section'  => 'home_automation_section_404',
		'default'  => esc_html__('Sorry, no posts matched your criteria.', 'home-automation'),
		'priority' => 10,
	] );

	// NO Result
	Kirki::add_section( 'home_automation_no_result', array(
		'panel'          => 'home_automation_panel_id_3',
	    'title'          => esc_html__( 'No Result Page Settings', 'home-automation' ),
	    'priority'       => 3,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_no_result',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
		'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'home_automation_not_found_heading',
	    'section'     => 'home_automation_no_result',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'No Search Result Heading', 'home-automation' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'home_automation_no_results_page_title',
		'section'  => 'home_automation_no_result',
		'default'  => esc_html__('404 Not Found', 'home-automation'),
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'home_automation_not_found_text',
	    'section'     => 'home_automation_no_result',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'No Search Result Content', 'home-automation' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'home_automation_no_results_page_content',
		'section'  => 'home_automation_no_result',
		'default'  => esc_html__('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'home-automation'),
		'priority' => 10,
	] );

		// PANEL
	Kirki::add_panel( 'home_automation_panel_id_5', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Animations', 'home-automation' ),
	) );

	// ANIMATION SECTION
	Kirki::add_section( 'home_automation_section_animation', array(
	    'title'          => esc_html__( 'Animations', 'home-automation' ),
	    'panel'          => 'home_automation_panel_id_5',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_section_animation',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_animation_enabled',
		'label'       => esc_html__( 'Turn On To Show Animation', 'home-automation' ),
		'section'     => 'home_automation_section_animation',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	// PANEL
	Kirki::add_panel( 'home_automation_panel_id_2', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Dark Mode', 'home-automation' ),
	) );

	// DARK MODE SECTION
	Kirki::add_section( 'home_automation_section_dark_mode', array(
	    'title'          => esc_html__( 'Dark Mode', 'home-automation' ),
	    'panel'          => 'home_automation_panel_id_2',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_section_dark_mode',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	]);

	Kirki::add_field( 'theme_config_id', [
	    'type'        => 'custom',
	    'settings'    => 'home_automation_dark_colors',
	    'section'     => 'home_automation_section_dark_mode',
	    'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Dark Appearance', 'home-automation' ) . '</h3>',
	    'priority'    => 10,
	]);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_is_dark_mode_enabled',
		'label'       => esc_html__( 'Turn To Dark Mode', 'home-automation' ),
		'section'     => 'home_automation_section_dark_mode',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	// PANEL

	Kirki::add_panel( 'home_automation_panel_id', array(
	    'priority'    => 10,
	    'title'       => esc_html__( 'Theme Options', 'home-automation' ),
	) );

	//COLOR SECTION

	Kirki::add_section( 'home_automation_section_color', array(
	    'title'          => esc_html__( 'Global Color', 'home-automation' ),
	    'panel'          => 'home_automation_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_section_color',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. More Font Family Options </p><p>3. Color Pallete Setup </p><p>4. Section Reordering Facility</p><p>5. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_global_colors',
		'section'     => 'home_automation_section_color',
		'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Here you can change your theme color on one click.', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'home_automation_first_color',
		'label'       => __( 'Choose Your First Color', 'home-automation' ),
		'section'     => 'home_automation_section_color',
		'default'     => '#00cfb3',
	] );


	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'home_automation_second_color',
		'label'       => __( 'Choose Your Second Color', 'home-automation' ),
		'section'     => 'home_automation_section_color',
		'default'     => '#030f2f',
	] );

	// Scroll Top

	Kirki::add_section( 'home_automation_additional_settings', array(
	    'title'          => esc_html__( 'Additional Settings', 'home-automation' ),
	    'panel'          => 'home_automation_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_additional_settings',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );


	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'home_automation_scroll_enable_setting',
		'label'       => esc_html__( 'Here you can enable or disable your scroller.', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default'     => '1',
		'priority'    => 10,
	] );

	new \Kirki\Field\Radio_Buttonset(
	[
		'settings'    => 'home_automation_scroll_top_position',
		'label'       => esc_html__( 'Alignment for Scroll To Top', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default'     => 'Right',
		'priority'    => 10,
		'choices'     => [
			'Left'   => esc_html__( 'Left', 'home-automation' ),
			'Center' => esc_html__( 'Center', 'home-automation' ),
			'Right'  => esc_html__( 'Right', 'home-automation' ),
		],
	]
		);

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'dashicons',
		'settings' => 'home_automation_scroll_top_icon',
		'label'    => esc_html__( 'Select Appropriate Scroll Top Icon', 'home-automation' ),
		'section'  => 'home_automation_additional_settings',
		'default'  => 'dashicons dashicons-arrow-up-alt',
		'priority' => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'menu_text_transform_home_automation',
		'label'       => esc_html__( 'Menus Text Transform', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default'     => 'CAPITALISE',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'CAPITALISE' => esc_html__( 'CAPITALISE', 'home-automation' ),
			'UPPERCASE' => esc_html__( 'UPPERCASE', 'home-automation' ),
			'LOWERCASE' => esc_html__( 'LOWERCASE', 'home-automation' ),
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_menu_zoom',
		'label'       => esc_html__( 'Menu Transition', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default' => 'None',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'None' => __('None','home-automation'),
            'Zoominn' => __('Zoom Inn','home-automation'),
            
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'home_automation_container_width',
		'label'       => esc_html__( 'Theme Container Width', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default'     => 100,
		'choices'     => [
			'min'  => 50,
			'max'  => 100,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'home_automation_site_loader',
		'label'       => esc_html__( 'Here you can enable or disable your Site Loader.', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default'     => false,
		'priority'    => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_preloader_type',
		'label'       => esc_html__( 'Preloader Type', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default' => 'four-way-loader',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'four-way-loader' => __('Type 1','home-automation'),
            'cube-loader' => __('Type 2','home-automation'),
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_page_layout',
		'label'       => esc_html__( 'Page Layout Setting', 'home-automation' ),
		'section'     => 'home_automation_additional_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','home-automation'),
            'Right Sidebar' => __('Right Sidebar','home-automation'),
            'One Column' => __('One Column','home-automation')
		],
	] );

	if ( class_exists("woocommerce")){

	// Woocommerce Settings

	Kirki::add_section( 'home_automation_woocommerce_settings', array(
		'title'          => esc_html__( 'Woocommerce Settings', 'home-automation' ),
		'panel'          => 'home_automation_panel_id',
		'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_woocommerce_settings',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'home_automation_shop_sidebar',
		'label'       => esc_html__( 'Here you can enable or disable shop page sidebar.', 'home-automation' ),
		'section'     => 'home_automation_woocommerce_settings',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'home_automation_product_sidebar',
		'label'       => esc_html__( 'Here you can enable or disable product page sidebar.', 'home-automation' ),
		'section'     => 'home_automation_woocommerce_settings',
		'default'     => '1',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'home_automation_related_product_setting',
		'label'       => esc_html__( 'Here you can enable or disable your related products.', 'home-automation' ),
		'section'     => 'home_automation_woocommerce_settings',
		'default'     => true,
		'priority'    => 10,
	] );

	new \Kirki\Field\Number(
	[
		'settings' => 'home_automation_per_columns',
		'label'    => esc_html__( 'Product Per Row', 'home-automation' ),
		'section'  => 'home_automation_woocommerce_settings',
		'default'  => 3,
		'choices'  => [
			'min'  => 1,
			'max'  => 4,
			'step' => 1,
		],
	]
	);

	new \Kirki\Field\Number(
	[
		'settings' => 'home_automation_product_per_page',
		'label'    => esc_html__( 'Product Per Page', 'home-automation' ),
		'section'  => 'home_automation_woocommerce_settings',
		'default'  => 9,
		'choices'  => [
			'min'  => 1,
			'max'  => 15,
			'step' => 1,
		],
	]
	);

	new \Kirki\Field\Number(
	[
		'settings' => 'custom_related_products_number_per_row',
		'label'    => esc_html__( 'Related Product Per Column', 'home-automation' ),
		'section'  => 'home_automation_woocommerce_settings',
		'default'  => 3,
		'choices'  => [
			'min'  => 1,
			'max'  => 4,
			'step' => 1,
		],
	]
	);

	new \Kirki\Field\Number(
	[
		'settings' => 'custom_related_products_number',
		'label'    => esc_html__( 'Related Product Per Page', 'home-automation' ),
		'section'  => 'home_automation_woocommerce_settings',
		'default'  => 3,
		'choices'  => [
			'min'  => 1,
			'max'  => 10,
			'step' => 1,
		],
	]
	);

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_shop_page_layout',
		'label'       => esc_html__( 'Shop Page Layout Setting', 'home-automation' ),
		'section'     => 'home_automation_woocommerce_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','home-automation'),
            'Right Sidebar' => __('Right Sidebar','home-automation')
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_product_page_layout',
		'label'       => esc_html__( 'Product Page Layout Setting', 'home-automation' ),
		'section'     => 'home_automation_woocommerce_settings',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','home-automation'),
            'Right Sidebar' => __('Right Sidebar','home-automation')
		],
	] );

	new \Kirki\Field\Radio_Buttonset(
	[
		'settings'    => 'home_automation_woocommerce_pagination_position',
		'label'       => esc_html__( 'Woocommerce Pagination Alignment', 'home-automation' ),
		'section'     => 'home_automation_woocommerce_settings',
		'default'     => 'Center',
		'priority'    => 10,
		'choices'     => [
			'Left'   => esc_html__( 'Left', 'home-automation' ),
			'Center' => esc_html__( 'Center', 'home-automation' ),
			'Right'  => esc_html__( 'Right', 'home-automation' ),
		],
	]
	);
}

	// POST SECTION

	Kirki::add_section( 'home_automation_section_post', array(
	    'title'          => esc_html__( 'Post Settings', 'home-automation' ),
	    'panel'          => 'home_automation_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_section_post',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_additional_settings',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

	new \Kirki\Field\Sortable(
	[
		'settings' => 'home_automation_archive_element_sortable',
		'label'    => __( 'Archive Post Page Element Reordering', 'home-automation' ),
		'description'    => esc_html__( 'This setting is not favorable with post format.', 'home-automation' ),
		'section'  => 'home_automation_section_post',
		'default'  => [ 'option1', 'option2', 'option3', 'option4', 'option5' ],
		'choices'  => [
			'option1' => esc_html__( 'Post Image', 'home-automation' ),
			'option2' => esc_html__( 'Post Meta', 'home-automation' ),
			'option3' => esc_html__( 'Post Title', 'home-automation' ),
			'option4' => esc_html__( 'Post Content', 'home-automation' ),
			'option5' => esc_html__( 'Post Button', 'home-automation' ),
		],
	]
	);

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'home_automation_post_excerpt_number',
		'label'       => esc_html__( 'Post Content Range', 'home-automation' ),
		'section'     => 'home_automation_section_post',
		'default'     => 10,
		'choices'     => [
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'toggle',
		'settings'    => 'home_automation_pagination_setting',
		'label'       => esc_html__( 'Here you can enable or disable your Pagination.', 'home-automation' ),
		'section'     => 'home_automation_section_post',
		'default'     => true,
		'priority'    => 10,
	] );

new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_archive_sidebar_layout',
		'label'       => esc_html__( 'Archive Post Sidebar Layout Setting', 'home-automation' ),
		'section'     => 'home_automation_section_post',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','home-automation'),
            'Right Sidebar' => __('Right Sidebar','home-automation'),
            'Three Column' => __('Three Column','home-automation'),
            'Four Column' => __('Four Column','home-automation'),
            'Grid Layout Without Sidebar' => __('Grid Layout Without Sidebar','home-automation'),
            'Grid Layout With Right Sidebar' => __('Grid Layout With Right Sidebar','home-automation'),
            'Grid Layout With Left Sidebar' => __('Grid Layout With Left Sidebar','home-automation')
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_single_post_sidebar_layout',
		'label'       => esc_html__( 'Single Post Sidebar Layout Setting', 'home-automation' ),
		'section'     => 'home_automation_section_post',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','home-automation'),
            'Right Sidebar' => __('Right Sidebar','home-automation'),
		],
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_search_sidebar_layout',
		'label'       => esc_html__( 'Search Page Sidebar Layout Setting', 'home-automation' ),
		'section'     => 'home_automation_section_post',
		'default' => 'Right Sidebar',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'Left Sidebar' => __('Left Sidebar','home-automation'),
            'Right Sidebar' => __('Right Sidebar','home-automation'),
            'Three Column' => __('Three Column','home-automation'),
            'Four Column' => __('Four Column','home-automation'),
            'Grid Layout Without Sidebar' => __('Grid Layout Without Sidebar','home-automation'),
            'Grid Layout With Right Sidebar' => __('Grid Layout With Right Sidebar','home-automation'),
            'Grid Layout With Left Sidebar' => __('Grid Layout With Left Sidebar','home-automation')
		],
	] );

	// Breadcrumb
	Kirki::add_section( 'home_automation_bradcrumb', array(
	    'title'          => esc_html__( 'Breadcrumb Settings', 'home-automation' ),
	    'panel'          => 'home_automation_panel_id',
	    'priority'       => 160,
	) );

	Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_bradcrumb',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );


	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_enable_breadcrumb_heading',
		'section'     => 'home_automation_bradcrumb',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Single Page Breadcrumb', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_breadcrumb_enable',
		'label'       => esc_html__( 'Breadcrumb Enable / Disable', 'home-automation' ),
		'section'     => 'home_automation_bradcrumb',
		'default'     => true,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'default'     => '/',
        'settings' => 'home_automation_breadcrumb_separator' ,
        'label'    => esc_html__( 'Breadcrumb Separator',  'home-automation' ),
        'section'  => 'home_automation_bradcrumb',
    ] );


	// HEADER SECTION

	Kirki::add_section( 'home_automation_header_section', array(
        'title'          => esc_html__( ' Header Settings', 'home-automation' ),
        'panel'          => 'home_automation_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_header_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_header_button_heading',
		'section'     => 'home_automation_header_section',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Add Button', 'home-automation' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'    => esc_html__( 'Text', 'home-automation' ),
		'settings' => 'home_automation_header_button_text',
		'section'  => 'home_automation_header_section',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'url',
		'label'    => esc_html__( 'Link', 'home-automation' ),
		'settings' => 'home_automation_header_button_url',
		'section'  => 'home_automation_header_section',
		'default'  => '',
	] );

	// SLIDER SECTION

	Kirki::add_section( 'home_automation_blog_slide_section', array(
        'title'          => esc_html__( ' Slider Settings', 'home-automation' ),
        'panel'          => 'home_automation_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_blog_slide_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_enable_heading',
		'section'     => 'home_automation_blog_slide_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Slider', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_blog_box_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => false,
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_title_unable_disable',
		'label'       => esc_html__( 'Slide Title Enable / Disable', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_slide_text_unable_disable',
		'label'       => esc_html__( 'Slide Text Enable / Disable', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_button_unable_disable',
		'label'       => esc_html__( 'Slide Button Enable / Disable', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_slider_heading',
		'section'     => 'home_automation_blog_slide_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Slider', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
        'type'     => 'text',
        'settings' => 'home_automation_slider_extra_heading' ,
        'label'    => esc_html__( 'Extra Heading',  'home-automation' ),
        'section'  => 'home_automation_blog_slide_section',
    ] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'settings'    => 'home_automation_blog_slide_number',
		'label'       => esc_html__( 'Number of slides to show', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => 0,
		'choices'     => [
			'min'  => 1,
			'max'  => 3,
			'step' => 1,
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'select',
		'settings'    => 'home_automation_blog_slide_category',
		'label'       => esc_html__( 'Select the category to show slider ( Image Dimension 1600 x 600 )', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '',
		'placeholder' => esc_html__( 'Select an category...', 'home-automation' ),
		'priority'    => 10,
		'choices'     => home_automation_get_categories_select(),
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_header_phone_number_heading_22',
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Add Phone Number', 'home-automation' ) . '</h3>',
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_slider_content_alignment',
		'label'       => esc_html__( 'Slider Content Alignment', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => 'LEFT-ALIGN',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'home-automation' ),
			'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'home-automation' ),
			'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'home-automation' ),

		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_header_phone_number_heading',
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Add Phone Number', 'home-automation' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'    => esc_html__( 'Text', 'home-automation' ),
		'settings' => 'home_automation_header_phone_text',
		'section'  => 'home_automation_blog_slide_section',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'    => esc_html__( 'Phone Number', 'home-automation' ),
		'settings' => 'home_automation_header_phone_number',
		'section'  => 'home_automation_blog_slide_section',
		'default'  => '',
		'sanitize_callback' => 'home_automation_sanitize_phone_number',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_header_email_address_heading',
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Add Email Address', 'home-automation' ) . '</h3>',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'    => esc_html__( 'Text', 'home-automation' ),
		'settings' => 'home_automation_header_email_text',
		'section'  => 'home_automation_blog_slide_section',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'    => esc_html__( 'Email Address', 'home-automation' ),
		'settings' => 'home_automation_header_email_number',
		'section'  => 'home_automation_blog_slide_section',
		'default'  => '',
		'sanitize_callback' => 'sanitize_email',
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_slider_opacity_color',
		'label'       => esc_html__( 'Slider Opacity Option', 'home-automation' ),
		'section'     => 'home_automation_blog_slide_section',
		'default'     => '0.5',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'0' => esc_html__( '0', 'home-automation' ),
			'0.1' => esc_html__( '0.1', 'home-automation' ),
			'0.2' => esc_html__( '0.2', 'home-automation' ),
			'0.3' => esc_html__( '0.3', 'home-automation' ),
			'0.4' => esc_html__( '0.4', 'home-automation' ),
			'0.5' => esc_html__( '0.5', 'home-automation' ),
			'0.6' => esc_html__( '0.6', 'home-automation' ),
			'0.7' => esc_html__( '0.7', 'home-automation' ),
			'0.8' => esc_html__( '0.8', 'home-automation' ),
			'0.9' => esc_html__( '0.9', 'home-automation' ),
			'unset' => esc_html__( 'Unset', 'home-automation' ),
			

		],
	] );

	// ABOUT US SECTION

	Kirki::add_section( 'home_automation_about_us_section', array(
        'title'          => esc_html__( 'About Us Settings', 'home-automation' ),
        'panel'          => 'home_automation_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_about_us_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_about_us_section_enable_heading',
		'section'     => 'home_automation_about_us_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable About Us Section', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_about_us_section_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'home-automation' ),
		'section'     => 'home_automation_about_us_section',
		'default'     => '0',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_about_us_section_title_heading',
		'section'     => 'home_automation_about_us_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Section Title', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'home_automation_about_us_section_title',
		'section'  => 'home_automation_about_us_section',
		'default'  => '',
		'priority' => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_about_us_page_heading',
		'section'     => 'home_automation_about_us_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Page Dropdown', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'dropdown-pages',
		'settings'    => 'home_automation_about_us',
		'section'     => 'home_automation_about_us_section',
		'default'     => 42,
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'       => esc_html__( 'Add Humidity Temperature', 'home-automation' ),
		'settings' => 'home_automation_humid_heading',
		'section'  => 'home_automation_about_us_section',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'       => esc_html__( 'Add Humidity Text', 'home-automation' ),
		'settings' => 'home_automation_humid_content',
		'section'  => 'home_automation_about_us_section',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'       => esc_html__( 'Add Temperature Degree', 'home-automation' ),
		'settings' => 'home_automation_humid_heading_2',
		'section'  => 'home_automation_about_us_section',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'label'       => esc_html__( 'Add Temperature Text', 'home-automation' ),
		'settings' => 'home_automation_humid_content_2',
		'section'  => 'home_automation_about_us_section',
		'default'  => '',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_list_heading',
		'section'     => 'home_automation_about_us_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Number Of List Text', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'number',
		'settings'    => 'home_automation_list_increament',
		'label'       => esc_html__( 'Number of list to show', 'home-automation' ),
		'section'     => 'home_automation_about_us_section',
		'default'     => 3,
		'choices'     => [
			'min'  => 0,
			'max'  => 5,
			'step' => 1,
		],
	] );

	$list_no = get_theme_mod('home_automation_list_increament','');

	for ($i=1; $i <= $list_no; $i++) {

		Kirki::add_field( 'theme_config_id', [
			'type'        => 'custom',
			'settings'    => 'home_automation_list_number'.$i,
			'section'     => 'home_automation_about_us_section',
				'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'List ', 'home-automation' ).$i . '</h3>',
			'priority'    => 10,
		] );

	    Kirki::add_field( 'theme_config_id', [
			'type'     => 'text',
			'label'       => esc_html__( 'Add Icon', 'home-automation' ),
			'description' => esc_html__( 'Add Fontawesome Icon Ex: fas fa-home', 'home-automation' ),
			'settings' => 'home_automation_about_us_icon'.$i,
			'section'  => 'home_automation_about_us_section',
			'default'  => '',
		] );

		Kirki::add_field( 'theme_config_id', [
			'type'     => 'text',
			'label'       => esc_html__( 'Add Text', 'home-automation' ),
			'settings' => 'home_automation_about_us_section_list'.$i,
			'section'  => 'home_automation_about_us_section',
			'default'  => '',
		] );
	}

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_about_excerpt_heading',
		'section'     => 'home_automation_about_us_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Number Of Text', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'slider',
		'settings'    => 'home_automation_about_excerpt_number',
		'label'       => esc_html__( 'Number of text to show', 'home-automation' ),
		'section'     => 'home_automation_about_us_section',
		'default'     => 60,
		'choices'     => [
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		],
	] );

	// FOOTER SECTION

	Kirki::add_section( 'home_automation_footer_section', array(
        'title'          => esc_html__( 'Footer Settings', 'home-automation' ),
        'panel'          => 'home_automation_panel_id',
        'priority'       => 160,
    ) );

    Kirki::add_field( 'theme_config_id', [
	    'label'       => '<span class="custom-label-class">' . esc_html__( 'INFORMATION ABOUT PREMIUM VERSION :-', 'home-automation' ) . '</span>',
	    'default'     => '<a class="premium_info_btn" target="_blank" href="' . esc_url( HOME_AUTOMATION_BUY_NOW ) . '">' . __( 'GO TO PREMIUM', 'home-automation' ) . '</a>',
	    'type'        => 'custom',
	    'section'     => 'home_automation_footer_section',
	    'description' => '<div class="custom-description-class">' . __( '<p>1. One Click Demo Importer </p><p>2. Color Pallete Setup </p><p>3. Section Reordering Facility</p><p>4. For More Options kindly Go For Premium Version.</p>', 'home-automation' ) . '</div>',
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_footer_enable_heading',
		'section'     => 'home_automation_footer_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Enable / Disable Footer Link', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'switch',
		'settings'    => 'home_automation_copyright_enable',
		'label'       => esc_html__( 'Section Enable / Disable', 'home-automation' ),
		'section'     => 'home_automation_footer_section',
		'default'     => '1',
		'priority'    => 10,
		'choices'     => [
			'on'  => esc_html__( 'Enable', 'home-automation' ),
			'off' => esc_html__( 'Disable', 'home-automation' ),
		],
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_footer_text_heading',
		'section'     => 'home_automation_footer_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Copyright Text', 'home-automation' ) . '</h3>',
		'priority'    => 10,
	] );

    Kirki::add_field( 'theme_config_id', [
		'type'     => 'text',
		'settings' => 'home_automation_footer_text',
		'section'  => 'home_automation_footer_section',
		'default'  => '',
		'priority' => 10,
	] );


		Kirki::add_field( 'theme_config_id', [
	'type'        => 'custom',
	'settings'    => 'home_automation_footer_text_heading_2',
	'section'     => 'home_automation_footer_section',
	'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Copyright Alignment', 'home-automation' ) . '</h3>',
	'priority'    => 10,
	] );

	new \Kirki\Field\Select(
	[
		'settings'    => 'home_automation_copyright_text_alignment',
		'label'       => esc_html__( 'Copyright text Alignment', 'home-automation' ),
		'section'     => 'home_automation_footer_section',
		'default'     => 'LEFT-ALIGN',
		'placeholder' => esc_html__( 'Choose an option', 'home-automation' ),
		'choices'     => [
			'LEFT-ALIGN' => esc_html__( 'LEFT-ALIGN', 'home-automation' ),
			'CENTER-ALIGN' => esc_html__( 'CENTER-ALIGN', 'home-automation' ),
			'RIGHT-ALIGN' => esc_html__( 'RIGHT-ALIGN', 'home-automation' ),

		],
	] );

	Kirki::add_field( 'theme_config_id', [
	'type'        => 'custom',
	'settings'    => 'home_automation_footer_text_heading_1',
	'section'     => 'home_automation_footer_section',
	'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Footer Copyright Background Color', 'home-automation' ) . '</h3>',
	'priority'    => 10,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'color',
		'settings'    => 'home_automation_copyright_bg',
		'label'       => __( 'Choose Your Copyright Background Color', 'home-automation' ),
		'section'     => 'home_automation_footer_section',
		'default'     => '#000000',
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'custom',
		'settings'    => 'home_automation_enable_footer_socail_link',
		'section'     => 'home_automation_footer_section',
			'default'         => '<h3 style="color: #2271b1; padding:10px; background:#fff; margin:0; border-left: solid 5px #2271b1; ">' . __( 'Social Media Link', 'home-automation' ) . '</h3>',
		'priority'    => 11,
	] );

	Kirki::add_field( 'theme_config_id', [
		'type'        => 'repeater',
		'section'     => 'home_automation_footer_section',
		'priority'    => 11,
		'row_label' => [
			'type'  => 'field',
			'value' => esc_html__( 'Footer Social Icon', 'home-automation' ),
			'field' => 'link_text',
		],
		'button_label' => esc_html__('Add New Social Icon', 'home-automation' ),
		'settings'     => 'home_automation_footer_social_links_settings',
		'default'      => '',
		'fields' 	   => [
			'link_text' => [
				'type'        => 'text',
				'label'       => esc_html__( 'Icon', 'home-automation' ),
				'description' => esc_html__( 'Add the fontawesome class ex: "fab fa-facebook-f".', 'home-automation' ),
				'default'     => '',
			],
			'link_url' => [
				'type'        => 'url',
				'label'       => esc_html__( 'Social Link', 'home-automation' ),
				'description' => esc_html__( 'Add the social icon url here.', 'home-automation' ),
				'default'     => '',
			],
		],
		'choices' => [
			'limit' => 5
		],
	] );
}


/*
 *  Customizer Notifications
 */

$home_automation_config_customizer = array(
    'recommended_plugins' => array( 
        'kirki' => array(
            'recommended' => true,
            'description' => sprintf( 
                /* translators: %s: plugin name */
                esc_html__( 'If you want to show all the sections of the FrontPage, please install and activate %s plugin', 'home-automation' ), 
                '<strong>' . esc_html__( 'Kirki Customizer', 'home-automation' ) . '</strong>'
            ),
        ),
    ),
    'home_automation_recommended_actions'       => array(),
    'home_automation_recommended_actions_title' => esc_html__( 'Recommended Actions', 'home-automation' ),
    'home_automation_recommended_plugins_title' => esc_html__( 'Recommended Plugin', 'home-automation' ),
    'home_automation_install_button_label'      => esc_html__( 'Install and Activate', 'home-automation' ),
    'home_automation_activate_button_label'     => esc_html__( 'Activate', 'home-automation' ),
    'home_automation_deactivate_button_label'   => esc_html__( 'Deactivate', 'home-automation' ),
);

Home_Automation_Customizer_Notify::init( apply_filters( 'home_automation_customizer_notify_array', $home_automation_config_customizer ) );