/home/moonrcjl/public_html/wp/wp-content/themes/arsha/inc/kirki-customizer.php
<?php


new \Kirki\Panel(
    'panel_id',
    [
        'priority'    => 10,
        'title'       => esc_html__( 'Arsha Panel', 'arsha' ),
        'description' => esc_html__( 'Arsha Panel Description.', 'arsha' ),
    ]
);

// header_top_section
function header_top_section(){
    // header_top_bar section 
    new \Kirki\Section(
        'header_top_section',
        [
            'title'       => esc_html__( 'Header Info', 'arsha' ),
            'description' => esc_html__( 'Header Section Information.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 100,
        ]
    );


    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'arsha_header_elementor_switch',
            'label'       => esc_html__( 'Header Custom/Elementor Switch', 'arsha' ),
            'description' => esc_html__( 'Header Custom/Elementor On/Off', 'arsha' ),
            'section'     => 'header_top_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    ); 

    // header_top_bar section 
    new \Kirki\Field\Radio_Image(
        [
            'settings'    => 'header_layout_custom',
            'label'       => esc_html__( 'Chose Header Style', 'arsha' ),
            'section'     => 'header_top_section',
            'priority'    => 10,
            'choices'     => [
                'header_1'   => get_template_directory_uri() . '/inc/img/header/header-1.jpg',
                'header_2' => get_template_directory_uri() . '/inc/img/header/header-2.jpg',
                'header_3'  => get_template_directory_uri() . '/inc/img/header/header-3.jpg',
                'header_4'  => get_template_directory_uri() . '/inc/img/header/header-4.jpg',
                'header_5'  => get_template_directory_uri() . '/inc/img/header/header-5.jpg',
            ],
            'default'     => 'header_1',
            'active_callback' => [
                [
                    'setting' => 'arsha_header_elementor_switch',
                    'operator' => '==',
                    'value' => false
                ]
            ]
        ]
    );


    $header_post_type = array(
        'post_type'      => 'tp-header',
        'posts_per_page' => -1,
    );
    $header_post_type_loop = get_posts($header_post_type);

    $header_post_obj_arr = array();
    foreach($header_post_type_loop as $post){
        $header_post_obj_arr[$post->ID] = $post->post_title;
    }


    wp_reset_query();


    new \Kirki\Field\Select(
        [
            'settings'    => 'arsha_header_templates',
            'label'       => esc_html__( 'Elementor Header Template', 'arsha' ),
            'section'     => 'header_top_section',
            'placeholder' => esc_html__( 'Choose an option', 'arsha' ),
            'choices'     => $header_post_obj_arr,
            'active_callback' => [
                [
                    'setting' => 'arsha_header_elementor_switch',
                    'operator' => '==',
                    'value' => true
                ]
            ]
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'header_topbar_switch',
            'label'       => esc_html__( 'Header Topbar Switch', 'arsha' ),
            'description' => esc_html__( 'Header Topbar switch On/Off', 'arsha' ),
            'section'     => 'header_top_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    );    

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'header_right_switch',
            'label'       => esc_html__( 'Header Right Switch', 'arsha' ),
            'description' => esc_html__( 'Header Right switch On/Off', 'arsha' ),
            'section'     => 'header_top_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    ); 

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'header_preloader_switch',
            'label'       => esc_html__( 'Header Preloader Switch', 'arsha' ),
            'description' => esc_html__( 'Header Preloader switch On/Off', 'arsha' ),
            'section'     => 'header_top_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'header_search_switch',
            'label'       => esc_html__( 'Header Search Switch', 'arsha' ),
            'description' => esc_html__( 'Header Search switch On/Off', 'arsha' ),
            'section'     => 'header_top_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    ); 

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'header_backtotop_switch',
            'label'       => esc_html__( 'Header Back to Top Switch', 'arsha' ),
            'description' => esc_html__( 'Header Back to Top switch On/Off', 'arsha' ),
            'section'     => 'header_top_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'header_top_button_switch',
            'label'       => esc_html__( 'Header Top Button On/Off', 'arsha' ),
            'description' => esc_html__( 'Header Top Button switch On/Off', 'arsha' ),
            'section'     => 'header_top_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    );
    
    new \Kirki\Field\Text(
        [
            'settings' => 'header_button_text',
            'label'    => esc_html__( 'Button Text', 'arsha' ),
            'section'  => 'header_top_section',
            'default'  => esc_html__( 'Get Quite', 'arsha' ),
            'priority' => 10,
        ]
    );

    new \Kirki\Field\URL(
        [
            'settings' => 'header_button_link',
            'label'    => esc_html__( 'Button URL', 'arsha' ),
            'section'  => 'header_top_section',
            'default'  => '#',
            'priority' => 10,
        ]
    );

    new \Kirki\Field\Text(
        [
            'settings' => 'header_phone',
            'label'    => esc_html__( 'Phone Number', 'arsha' ),
            'section'  => 'header_top_section',
            'default'  => esc_html__( '+99 (786) 8765', 'arsha' ),
            'priority' => 10,
        ]
    );    

    new \Kirki\Field\Text(
        [
            'settings' => 'header_email',
            'label'    => esc_html__( 'Email ID', 'arsha' ),
            'section'  => 'header_top_section',
            'default'  => esc_html__( 'arsha@support.com', 'arsha' ),
            'priority' => 10,
        ]
    );    

    new \Kirki\Field\Text(
        [
            'settings' => 'header_address',
            'label'    => esc_html__( 'Address Text', 'arsha' ),
            'section'  => 'header_top_section',
            'default'  => esc_html__( '734 H, Bryan Burlington, NC 27215', 'arsha' ),
            'priority' => 10,
        ]
    );

    new \Kirki\Field\URL(
        [
            'settings' => 'header_address_link',
            'label'    => esc_html__( 'Address URL', 'arsha' ),
            'section'  => 'header_top_section',
            'default'  => 'https://www.google.com/maps/@36.0758266,-79.4558848,17z',
            'priority' => 10,
        ]
    );

    new \Kirki\Field\Text(
        [
            'settings' => 'header_top_time',
            'label'    => esc_html__( 'Header top time', 'arsha' ),
            'section'  => 'header_top_section',
            'default'  => 'Mon - Sat 8:00 - 18:20',
            'priority' => 10,
        ]
    );


}
header_top_section();


// header_side_section
function header_side_section(){
    // header_top_bar section 
    new \Kirki\Section(
        'header_side_section',
        [
            'title'       => esc_html__( 'Header Side Info', 'arsha' ),
            'description' => esc_html__( 'Header Side Information.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 110,
        ]
    );
    // header_side_section section 

    // header_side_logo_section 
    new \Kirki\Field\Image(
        [
            'settings'    => 'header_side_logo',
            'label'       => esc_html__( 'Header Side Logo', 'arsha' ),
            'description' => esc_html__( 'Header Side Default/Primary Logo Here', 'arsha' ),
            'section'     => 'header_side_section',
            'default'     => get_template_directory_uri() . '/assets/img/logo/white-logo.png',
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'header_side_info_switch',
            'label'       => esc_html__( 'Header Side Info Switch', 'arsha' ),
            'description' => esc_html__( 'Header Side Info switch On/Off', 'arsha' ),
            'section'     => 'header_side_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    );  

    new \Kirki\Field\Textarea(
        [
            'settings'    => 'header_top_offcanvas_textarea',
            'label'       => esc_html__( 'Offcanvas About Us', 'arsha' ),
            'section'     => 'header_side_section',
            'default'     => esc_html__( 'Web designing in a powerful way of just not an only professions. We have tendency to believe the idea that smart looking .', 'arsha' ),
        ]
    );

    // Contacts Text 
    new \Kirki\Field\Text(
        [
            'settings' => 'header_side_contacts_label',
            'label'    => esc_html__( 'Contacts Label Text', 'arsha' ),
            'section'  => 'header_side_section',
            'default'  => esc_html__( 'CONTACT US', 'arsha' ),
            'priority' => 10,
        ]
    );    

    new \Kirki\Field\Text(
        [
            'settings' => 'header_side_address',
            'label'    => esc_html__( 'Side Address', 'arsha' ),
            'section'  => 'header_side_section',
            'default'  => esc_html__( 'CONTACT US', 'arsha' ),
            'priority' => 10,
        ]
    );
    new \Kirki\Field\Text(
        [
            'settings' => 'header_side_address_url',
            'label'    => esc_html__( 'Side Address', 'arsha' ),
            'section'  => 'header_side_section',
            'default'  => esc_html__( 'themepure@gmail.com', 'arsha' ),
            'priority' => 10,
        ]
    );    
    new \Kirki\Field\Text(
        [
            'settings' => 'header_side_address_phone',
            'label'    => esc_html__( 'Side Phone', 'arsha' ),
            'section'  => 'header_side_section',
            'default'  => esc_html__( '+48 555 223 224', 'arsha' ),
            'priority' => 10,
        ]
    );    
    new \Kirki\Field\Text(
        [
            'settings' => 'header_side_mailchimp',
            'label'    => esc_html__( 'Side Mailchimp', 'arsha' ),
            'section'  => 'header_side_section',
            'default'  => esc_html__( '', 'arsha' ),
            'priority' => 10,
        ]
    );

    new \Kirki\Field\Textarea(
        [
            'settings' => 'header_side_gallery',
            'label'    => esc_html__( 'Side Gallery', 'arsha' ),
            'section'  => 'header_side_section',
            'default'  => esc_html__( '', 'arsha' ),
            'priority' => 10,
        ]
    );

}
header_side_section();

// header_social_section
function header_social_section(){
    // header_top_bar section 
    new \Kirki\Section(
        'header_social_section',
        [
            'title'       => esc_html__( 'Social Area', 'arsha' ),
            'description' => esc_html__( 'Social URL.', 'arsha' ),
            'panel'       => 'panel_id',
            'description' => esc_html__( 'For social hide just use blank', 'arsha' ),
            'priority'    => 120,
        ]
    );
    // header_top_bar section 

    new \Kirki\Field\URL(
        [
            'settings' => 'header_facebook_link',
            'label'    => esc_html__( 'Facebook URL', 'arsha' ),
            'section'  => 'header_social_section',
            'default'  => '#',
            'priority' => 10,
        ]
    ); 

    new \Kirki\Field\URL(
        [
            'settings' => 'header_twitter_link',
            'label'    => esc_html__( 'Twitter URL', 'arsha' ),
            'section'  => 'header_social_section',
            'default'  => '#',
            'priority' => 10,
        ]
    );  

    new \Kirki\Field\URL(
        [
            'settings' => 'header_linkedin_link',
            'label'    => esc_html__( 'Linkedin URL', 'arsha' ),
            'section'  => 'header_social_section',
            'default'  => '#',
            'priority' => 10,
        ]
    ); 

    new \Kirki\Field\URL(
        [
            'settings' => 'header_instagram_link',
            'label'    => esc_html__( 'Instagram URL', 'arsha' ),
            'section'  => 'header_social_section',
            'default'  => '#',
            'priority' => 10,
        ]
    );  

    new \Kirki\Field\URL(
        [
            'settings' => 'header_youtube_link',
            'label'    => esc_html__( 'Youtube URL', 'arsha' ),
            'section'  => 'header_social_section',
            'default'  => '#',
            'priority' => 10,
        ]
    );  

    new \Kirki\Field\URL(
        [
            'settings' => 'header_fb_link',
            'label'    => esc_html__( 'Facebook URL', 'arsha' ),
            'section'  => 'header_social_section',
            'default'  => '#',
            'priority' => 10,
        ]
    ); 


}
header_social_section();

// header_logo_section
function header_logo_section(){
    // header_logo_section section 
    new \Kirki\Section(
        'header_logo_section',
        [
            'title'       => esc_html__( 'Header Logo', 'arsha' ),
            'description' => esc_html__( 'Header Logo Settings.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 130,
        ]
    );

    // header_logo_section section 
    new \Kirki\Field\Image(
        [
            'settings'    => 'header_logo',
            'label'       => esc_html__( 'Header Logo', 'arsha' ),
            'description' => esc_html__( 'Theme Default/Primary Logo Here', 'arsha' ),
            'section'     => 'header_logo_section',
            'default'     => get_template_directory_uri() . '/assets/img/logo/white-logo.png',
        ]
    );

    new \Kirki\Field\Image(
        [
            'settings'    => 'header_secondary_logo',
            'label'       => esc_html__( 'Header Secondary Logo / Dark', 'arsha' ),
            'description' => esc_html__( 'Theme Secondary Logo Here', 'arsha' ),
            'section'     => 'header_logo_section',
            'default'     => get_template_directory_uri() . '/assets/img/logo/black-logo.png',
        ]
    );


    new \Kirki\Field\Image(
        [
            'settings'    => 'header_search_logo',
            'label'       => esc_html__( 'Header Search Logo', 'arsha' ),
            'description' => esc_html__( 'Search Logo Here', 'arsha' ),
            'section'     => 'header_logo_section',
            'default'     => get_template_directory_uri() . '/assets/img/logo/white-logo.png',
        ]
    );


    new \Kirki\Field\Image(
        [
            'settings'    => 'preloader_logo',
            'label'       => esc_html__( 'Preloader Icon', 'arsha' ),
            'description' => esc_html__( 'Preloader Icon Logo Here', 'arsha' ),
            'section'     => 'header_logo_section',
            'default'     => get_template_directory_uri() . '/assets/img/logo/preloder.png',
        ]
    );
}
header_logo_section();


// header_logo_section
function header_breadcrumb_section(){
    // header_logo_section section 
    new \Kirki\Section(
        'header_breadcrumb_section',
        [
            'title'       => esc_html__( 'Breadcrumb', 'arsha' ),
            'description' => esc_html__( 'Breadcrumb Settings.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 160,
        ]
    );

    // header_logo_section section 
    new \Kirki\Field\Image(
        [
            'settings'    => 'breadcrumb_image',
            'label'       => esc_html__( 'Breadcrumb Image', 'arsha' ),
            'description' => esc_html__( 'Breadcrumb Image add/remove', 'arsha' ),
            'section'     => 'header_breadcrumb_section',
        ]
    );

    new \Kirki\Field\Text(
        [
            'settings' => 'breadcrumb_sub_title',
            'label'    => esc_html__( 'Breadcrumb Sub title', 'arsha' ),
            'section'  => 'header_breadcrumb_section',
            'default'  => esc_html__( 'Please set breadcrumb sub title', 'arsha' ),
            'priority' => 10,
        ]
    ); 


    new \Kirki\Field\Color(
        [
            'settings'    => 'breadcrumb_bg_color',
            'label'       => __( 'Breadcrumb BG Color', 'arsha' ),
            'description' => esc_html__( 'You can change breadcrumb bg color from here.', 'arsha' ),
            'section'     => 'header_breadcrumb_section',
            'default'     => '#f3fbfe',
        ]
    );

    new \Kirki\Field\Dimensions(
        [
            'settings'    => 'breadcrumb_padding',
            'label'       => esc_html__( 'Dimensions Control', 'arsha' ),
            'description' => esc_html__( 'Description', 'arsha' ),
            'section'     => 'header_breadcrumb_section',
            'default'     => [
                'padding-top'  => '',
                'padding-bottom' => '',
            ],
        ]
    );

    new \Kirki\Field\Typography(
        [
            'settings'    => 'breadcrumb_typography',
            'label'       => esc_html__( 'Typography Control', 'arsha' ),
            'description' => esc_html__( 'The full set of options.', 'arsha' ),
            'section'     => 'header_breadcrumb_section',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => '.tpbreadcrumb-title',
                ],
            ],
        ]
    );


}
header_breadcrumb_section();

// header_logo_section
function full_site_typography(){
    // header_logo_section section 
    new \Kirki\Section(
        'full_site_typography',
        [
            'title'       => esc_html__( 'Typography', 'arsha' ),
            'description' => esc_html__( 'Typography Settings.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 190,
        ]
    );

    new \Kirki\Field\Typography(
        [
            'settings'    => 'arsha_typo_body',
            'label'       => esc_html__( 'Typography Body Text', 'arsha' ),
            'description' => esc_html__( 'Body Typography Control.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => 'body',
                ],
            ],
        ]
    );

    new \Kirki\Field\Typography(
        [
            'settings'    => 'arsha_typo_h1',
            'label'       => esc_html__( 'Typography Heading 1 Font', 'arsha' ),
            'description' => esc_html__( 'H1 Typography Control.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => 'h1',
                ],
            ],
        ]
    );


    new \Kirki\Field\Typography(
        [
            'settings'    => 'arsha_typo_h2',
            'label'       => esc_html__( 'Typography Heading 2 Font', 'arsha' ),
            'description' => esc_html__( 'H2 Typography Control.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => 'h2',
                ],
            ],
        ]
    );


    new \Kirki\Field\Typography(
        [
            'settings'    => 'arsha_typo_h3',
            'label'       => esc_html__( 'Typography Heading 3 Font', 'arsha' ),
            'description' => esc_html__( 'H3 Typography Control.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => 'h3',
                ],
            ],
        ]
    );


    new \Kirki\Field\Typography(
        [
            'settings'    => 'arsha_typo_h4',
            'label'       => esc_html__( 'Typography Heading 4 Font', 'arsha' ),
            'description' => esc_html__( 'H4 Typography Control.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => 'h4',
                ],
            ],
        ]
    );


    new \Kirki\Field\Typography(
        [
            'settings'    => 'arsha_typo_h5',
            'label'       => esc_html__( 'Typography Heading 5 Font', 'arsha' ),
            'description' => esc_html__( 'H5 Typography Control.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => 'h5',
                ],
            ],
        ]
    );


    new \Kirki\Field\Typography(
        [
            'settings'    => 'arsha_typo_h6',
            'label'       => esc_html__( 'Typography Heading 6 Font', 'arsha' ),
            'description' => esc_html__( 'H6 Typography Control.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => 'h6',
                ],
            ],
        ]
    );

    new \Kirki\Field\Typography(
        [
            'settings'    => 'full_site_typography_settings',
            'label'       => esc_html__( 'Typography Control', 'arsha' ),
            'description' => esc_html__( 'The full set of options.', 'arsha' ),
            'section'     => 'full_site_typography',
            'priority'    => 10,
            'transport'   => 'auto',
            'default'     => [
                'font-family'     => '',
                'variant'         => '',
                'color'           => '',
                'font-size'       => '',
                'line-height'     => '',
                'text-align'      => '',
            ],
            'output'      => [
                [
                    'element' => '.tpbreadcrumb-title',
                ],
            ],
        ]
    );
}
full_site_typography();

// header_logo_section
function footer_layout_section(){
    // header_logo_section section 
    new \Kirki\Section(
        'footer_layout_section',
        [
            'title'       => esc_html__( 'Footer', 'arsha' ),
            'description' => esc_html__( 'Footer Settings.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 190,
        ]
    );
    // footer_widget_number section 
    new \Kirki\Field\Select(
        [
            'settings'    => 'footer_widget_number',
            'label'       => esc_html__( 'Footer Widget Number', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => '4',
            'placeholder' => esc_html__( 'Choose an option', 'arsha' ),
            'choices'     => [
                '1' => esc_html__( '1', 'arsha' ),
                '2' => esc_html__( '2', 'arsha' ),
                '3' => esc_html__( '3', 'arsha' ),
                '4' => esc_html__( '4', 'arsha' ),
            ],
            'active_callback' => [
                [
                    'setting' => 'arsha_footer_elementor_switch',
                    'operator' => '==',
                    'value' => false
                ]
            ]
        ]
    );


    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'arsha_footer_elementor_switch',
            'label'       => esc_html__( 'Footer Custom/Elementor Switch', 'arsha' ),
            'description' => esc_html__( 'Footer Custom/Elementor On/Off', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    ); 


    new \Kirki\Field\Radio_Image(
        [
            'settings'    => 'footer_layout',
            'label'       => esc_html__( 'Footer Layout Control', 'arsha' ),
            'section'     => 'footer_layout_section',
            'priority'    => 10,
            'choices'     => [
                'footer_1'   => get_template_directory_uri() . '/inc/img/footer/footer-1.jpg',
                'footer_2'   => get_template_directory_uri() . '/inc/img/footer/footer-2.jpg',
                'footer_3'   => get_template_directory_uri() . '/inc/img/footer/footer-3.jpg',
                'footer_4'   => get_template_directory_uri() . '/inc/img/footer/footer-4.jpg',
                
            ],
            'default'     => 'footer_1',
            'active_callback' => [
                [
                    'setting' => 'arsha_footer_elementor_switch',
                    'operator' => '==',
                    'value' => false
                ]
            ]
        ]
    );



    $footer_post_type = array(
        'post_type'      => 'tp-footer',
        'posts_per_page' => -1,
    );
    $footer_post_type_loop = get_posts($footer_post_type);
    $footer_post_obj_arr = array();
    foreach($footer_post_type_loop as $post){
        $footer_post_obj_arr[$post->ID] = $post->post_title;
    }

    wp_reset_postdata();

    new \Kirki\Field\Select(
        [
            'settings'    => 'arsha_footer_templates',
            'label'       => esc_html__( 'Elementor Footer Template', 'arsha' ),
            'section'     => 'footer_layout_section',
            'placeholder' => esc_html__( 'Choose an option', 'arsha' ),
            'choices'     => $footer_post_obj_arr,
            'active_callback' => [
                [
                    'setting' => 'arsha_footer_elementor_switch',
                    'operator' => '==',
                    'value' => true
                ]
            ]
        ]
    );

    // footer_layout_section section 
    new \Kirki\Field\Image(
        [
            'settings'    => 'footer_bg_image',
            'label'       => esc_html__( 'Footer BG Image', 'arsha' ),
            'description' => esc_html__( 'Footer Image add/remove', 'arsha' ),
            'section'     => 'footer_layout_section',
        ]
    );
    // footer_logo_section 
    new \Kirki\Field\Image(
        [
            'settings'    => 'footer_logo',
            'label'       => esc_html__( 'Footer Logo', 'arsha' ),
            'description' => esc_html__( 'Footer Default/Primary Logo Here', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => get_template_directory_uri() . '/assets/img/logo/white-logo.png',
        ]
    );

    new \Kirki\Field\Color(
        [
            'settings'    => 'footer_bg_color',
            'label'       => __( 'Footer BG Color', 'arsha' ),
            'description' => esc_html__( 'You can change footer bg color from here.', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => '',
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'footer_layout_2_switch',
            'label'       => esc_html__( 'Footer Style 2 Switch', 'arsha' ),
            'description' => esc_html__( 'Footer Style 2 On/Off', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    );      
    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'footer_layout_3_switch',
            'label'       => esc_html__( 'Footer Style 3 Switch', 'arsha' ),
            'description' => esc_html__( 'Footer Style 3 On/Off', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => 'off',
            'choices'     => [
                'on'  => esc_html__( 'Enable', 'arsha' ),
                'off' => esc_html__( 'Disable', 'arsha' ),
            ],
        ]
    );      


    new \Kirki\Field\Text(
        [
            'settings' => 'footer_copyright',
            'label'    => esc_html__( 'Footer Copyright', 'arsha' ),
            'section'  => 'footer_layout_section',
            'default'  => esc_html__( 'Copyright &copy; 2025 Nanantal. All Rights Reserved', 'arsha' ),
            'priority' => 10,
        ]
    );  


    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'footer_social_switch',
            'label'       => esc_html__( 'Footer Social On / Off', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => false,
            'priority' => 10,
        ]
    ); 

    new \Kirki\Field\Textarea(
        [
            'settings' => 'footer_top_content',
            'label'    => esc_html__( 'Footer Top Content', 'arsha' ),
            'section'  => 'footer_layout_section',
            'default'  => esc_html__( 'Paste your footer top content here', 'arsha' ),
            'priority' => 10,
        ]
    ); 

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'footer_copyright_menu_switch',
            'label'       => esc_html__( 'Footer Copyright Menu On / Off', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => false,
            'priority' => 10,
        ]
    ); 

    new \Kirki\Field\Textarea(
        [
            'settings' => 'footer_copyright_menu',
            'label'    => esc_html__( 'Footer Copyright Menu', 'arsha' ),
            'section'  => 'footer_layout_section',
            'default'  => esc_html__( 'Paste your copyright menu items here', 'arsha' ),
            'priority' => 10,
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'footer_bottom_menu_switch',
            'label'       => esc_html__( 'Footer Bottom Menu On / Off', 'arsha' ),
            'section'     => 'footer_layout_section',
            'default'     => false,
            'priority' => 10,
        ]
    ); 
    new \Kirki\Field\Textarea(
        [
            'settings' => 'footer_bottom_menu',
            'label'    => esc_html__( 'Footer Bottom Menu', 'arsha' ),
            'section'  => 'footer_layout_section',
            'default'  => esc_html__( 'Paste your footer bottom menu items here', 'arsha' ),
            'priority' => 10,
        ]
    );  




}
footer_layout_section();

// blog_section
function blog_section(){
    // blog_section section 
    new \Kirki\Section(
        'blog_section',
        [
            'title'       => esc_html__( 'Blog Section', 'arsha' ),
            'description' => esc_html__( 'Blog Section Settings.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 150,
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings'    => 'arsha_blog_btn_switch',
            'label'       => esc_html__( 'Blog BTN On/Off', 'arsha' ),
            'section'     => 'blog_section',
            'default'     => true,
            'priority' => 10,
        ]
    ); 

    // blog_section BTN 
    new \Kirki\Field\Checkbox_Switch(
        [
            'settings' => 'arsha_blog_cat',
            'label'    => esc_html__( 'Blog Category Meta On/Off', 'arsha' ),
            'section'  => 'blog_section',
            'default'  => false,
            'priority' => 10,
        ]
    );

    // blog_section Author Meta 
    new \Kirki\Field\Checkbox_Switch(
        [
            'settings' => 'arsha_blog_author',
            'label'    => esc_html__( 'Blog Author Meta On/Off', 'arsha' ),
            'section'  => 'blog_section',
            'default'  => true,
            'priority' => 10,
        ]
    );
    // blog_section Date Meta 
    new \Kirki\Field\Checkbox_Switch(
        [
            'settings' => 'arsha_blog_date',
            'label'    => esc_html__( 'Blog Date Meta On/Off', 'arsha' ),
            'section'  => 'blog_section',
            'default'  => true,
            'priority' => 10,
        ]
    );

    // blog_section Comments Meta 
    new \Kirki\Field\Checkbox_Switch(
        [
            'settings' => 'arsha_blog_comments',
            'label'    => esc_html__( 'Blog Comments Meta On/Off', 'arsha' ),
            'section'  => 'blog_section',
            'default'  => true,
            'priority' => 10,
        ]
    );


    // blog_section Blog BTN text 
    new \Kirki\Field\Text(
        [
            'settings' => 'arsha_blog_btn',
            'label'    => esc_html__( 'Blog Button Text', 'arsha' ),
            'section'  => 'blog_section',
            'default'  => "Read More",
            'priority' => 10,
        ]
    );

    new \Kirki\Field\Checkbox_Switch(
        [
            'settings' => 'arsha_social_share_switch',
            'label'    => esc_html__( 'Single Blog Social Share', 'arsha' ),
            'section'  => 'blog_section',
            'default'  => false,
            'priority' => 10,
        ]
    );

}
blog_section();


// 404 section
function error_404_section(){
    // 404_section section 
    new \Kirki\Section(
        'error_404_section',
        [
            'title'       => esc_html__( '404 Page', 'arsha' ),
            'description' => esc_html__( '404 Page Settings.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 150,
        ]
    );
    new \Kirki\Field\Image(
        [
            'settings'    => 'error_thumb',
            'label'       => esc_html__( 'Thumbnail', 'arsha' ),
            'description' => esc_html__( 'Error Thumb Here', 'arsha' ),
            'section'     => 'error_404_section',
            'default'     => get_template_directory_uri() . '/assets/img/error/thumb-1.png',
        ]
    );

    // 404_section 
    new \Kirki\Field\Text(
        [
            'settings' => 'arsha_error_title',
            'label'    => esc_html__( 'Not Found Title', 'arsha' ),
            'section'  => 'error_404_section',
            'default'  => "Sorry We Can't Find That Page! ",
            'priority' => 10,
        ]
    );

    // 404_section 
    new \Kirki\Field\Text(
        [
            'settings' => 'arsha_error_404',
            'label'    => esc_html__( 'Not Found 404', 'arsha' ),
            'section'  => 'error_404_section',
            'default'  => "404",
            'priority' => 10,
        ]
    );
    // 404_section 
    new \Kirki\Field\Text(
        [
            'settings' => 'arsha_error_text',
            'label'    => esc_html__( 'Not Found 404', 'arsha' ),
            'section'  => 'error_404_section',
            'default'  => "Oops! The page you are looking for does not exist. It might have been moved or deleted.",
            'priority' => 10,
        ]
    );




    // 404_section description
    new \Kirki\Field\Text(
        [
            'settings' => 'arsha_error_link_text',
            'label'    => esc_html__( 'Error Link Text', 'arsha' ),
            'section'  => 'error_404_section',
            'default'  => "Back To Home",
            'priority' => 10,
        ]
    );


}
error_404_section();

// theme color section
function theme_color_section(){
    new \Kirki\Section(
        'theme_color_section',
        [
            'title'       => esc_html__( 'Theme Color', 'arsha' ),
            'description' => esc_html__( 'Arsha theme color Settings.', 'arsha' ),
            'panel'       => 'panel_id',
            'priority'    => 150,
        ]
    );
    new \Kirki\Field\Color(
        [
            'settings'    => 'arsha_color_1',
            'label'       => __( 'Theme Color 1', 'arsha' ),
            'description' => esc_html__( 'this is theme color 1 control.', 'arsha' ),
            'section'     => 'theme_color_section',
            'default'     => '#00A3C3',
        ]
    );
    new \Kirki\Field\Color(
        [
            'settings'    => 'arsha_color_2',
            'label'       => __( 'Theme Color 2', 'arsha' ),
            'description' => esc_html__( 'this is theme color 2 control.', 'arsha' ),
            'section'     => 'theme_color_section',
            'default'     => '#16243E',
        ]
    );
    new \Kirki\Field\Color(
        [
            'settings'    => 'arsha_gra_color_1',
            'label'       => __( 'Gradient Color 1', 'arsha' ),
            'description' => esc_html__( 'this is theme gradient 1 color control.', 'arsha' ),
            'section'     => 'theme_color_section',
            'default'     => '#004D6E',
        ]
    );
    new \Kirki\Field\Color(
        [
            'settings'    => 'arsha_gra_color_2',
            'label'       => __( 'Gradient Color 2', 'arsha' ),
            'description' => esc_html__( 'this is theme gradient 2 color control.', 'arsha' ),
            'section'     => 'theme_color_section',
            'default'     => '#00ACCC',
        ]
    );
    new \Kirki\Field\Color(
        [
            'settings'    => 'arsha_body',
            'label'       => __( 'Body Text Color', 'arsha' ),
            'description' => esc_html__( 'this is theme body text color control.', 'arsha' ),
            'section'     => 'theme_color_section',
            'default'     => '#333F4D',
        ]
    );
}
theme_color_section();