<?php


    // header_logo_section section 
    new \Kirki\Field\Image(
        [
            'settings'    => 'header_custom_logo',
            'label'       => esc_html__( 'Header Logo', 'edify' ),
            'description' => esc_html__( 'Theme Default/Primary Logo Here', 'edify' ),
            'section'     => 'header_section_id',
            'default'     => get_template_directory_uri() . '/assets/images/logo.png',
        ]
    );

    new \Kirki\Field\Checkbox_Switch([
        'type'        => 'switch',
        'settings'    => 'header_right_switch',
        'label'       => esc_html__( 'Enable/Disable Right Content','edify'),
        'section'     => 'header_section_id',
        'default'     => '1',
        'priority'    => 10,
        'choices'     => [
            'on'  => esc_html__( 'Yes','edify'),
            'off' => esc_html__( 'No','edify'),
        ],
    ] );

    // new \Kirki\Field\Checkbox_Switch([
    //     'type'        => 'switch',
    //     'settings'    => 'header_sticky',
    //     'label'       => esc_html__( 'Enable/Disable Sticky Header','edify'),
    //     'section'     => 'header_section_id',
    //     'default'     => '1',
    //     'priority'    => 10,
    //     'choices'     => [
    //         'on'  => esc_html__( 'Yes','edify'),
    //         'off' => esc_html__( 'No','edify'),
    //     ],
    // ] );
    

    // new \Kirki\Field\Radio_Buttonset(
    //     [
    //         'settings'    => 'header_menu_style',
    //         'label'       => esc_html__( 'Menu Position', 'edify' ),
    //         'section'     => 'header_section_id',
    //         'default'     => 'right',
    //         'priority'    => 10,
    //         'choices'     => [
    //             'left' => esc_html__( 'Left', 'edify' ),
    //             'right'   => esc_html__( 'Right', 'edify' ),
    //             'center'  => esc_html__( 'Center', 'edify' ),
    //         ],
    //     ]
    // );


new \Kirki\Field\Checkbox_Switch([
    'type'        => 'switch',
    'settings'    => 'show_header_btn',
    'label'       => esc_html__( 'Enable/Disable Button','edify'),
    'section'     => 'header_section_id',
    'default'     => '1',
    'priority'    => 10,
    'choices'     => [
        'on'  => esc_html__( 'Yes','edify'),
        'off' => esc_html__( 'No','edify'),
    ],
    'active_callback' => [
        [
            'setting'  => 'header_right_switch',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );


new \Kirki\Field\Checkbox_Switch([
    'type'        => 'switch',
    'settings'    => 'show_mini_cart',
    'label'       => esc_html__( 'Enable/Disable Mini Cart','edify'),
    'section'     => 'header_section_id',
    'default'     => '1',
    'priority'    => 10,
    'choices'     => [
        'on'  => esc_html__( 'Yes','edify'),
        'off' => esc_html__( 'No','edify'),
    ],
    'active_callback' => [
        [
            'setting'  => 'header_right_switch',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );



Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'text',
    'settings'    => 'header_btn_text',
    'label'       => esc_html__( 'Header Button text','edify'),
    'section'     => 'header_section_id',
    'default'     => esc_html__( 'Register','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_btn',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );

Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'url',
    'settings'    => 'header_btn_link',
    'label'       => esc_html__( 'Button Link','edify'),
    'section'     => 'header_section_id',
    'default'     => esc_html__( '#','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_btn',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );


// new Kirki\Field\Select(
//     [
//         'settings'    => 'dynamic_page_link',
//         'label'       => __( 'Select Page Link', 'kirki' ),
//         'section'     => 'header_section_id',
//         'default'     => '',
//         'priority'    => 10,
//         'multiple'    => 1,
//         'placeholder' => __( 'Select Page', 'kirki' ),
//         'choices'     => Kirki\Util\Helper::get_posts(
//             array(
//                 'posts_per_page' => 10,
//                 'post_type'      => 'page'
//             ) ,
//         ),
//         'active_callback' => [
//             [
//                 'setting'  => 'show_header_btn',
//                 'operator' => '==',
//                 'value'    => '1',
//             ]
//         ],
//     ]
// );

