<?php

new \Kirki\Pro\Field\Headline(
    [
        'settings'    => 'header_content_headline',
        'label'       => esc_html__( 'Header Topbar Content', 'edify' ),
        'description' => esc_html__( 'Header Topbar Content', 'edify' ),
        'section'     => 'header_topbar_section_id',
    ]
);

new \Kirki\Field\Checkbox_Switch([
    'type'        => 'switch',
    'settings'    => 'show_header_topbar',
    'label'       => esc_html__( 'Show Header Topbar','edify'),
    'section'     => 'header_topbar_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'    => 'show_header_topbar_social',
    'label'       => esc_html__( 'Show Header Social','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => '1',
    'priority'    => 10,
    'choices'     => [
        'on'  => esc_html__( 'Yes','edify'),
        'off' => esc_html__( 'No','edify'),
    ],
] );

Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'text',
    'settings'    => 'header_email',
    'label'       => esc_html__( 'Header Email','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => esc_html__( 'edify@support.com','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_topbar',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );

Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'text',
    'settings'    => 'header_phone',
    'label'       => esc_html__( 'Header Phone','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => esc_html__( '+8801310-069824','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_topbar',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );


new \Kirki\Pro\Field\Headline(
    [
        'settings'    => 'social_headline',
        'label'       => esc_html__( 'Header Social', 'edify' ),
        'description' => esc_html__( 'Header Social', 'edify' ),
        'section'     => 'header_topbar_section_id',
    ]
);

Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'url',
    'settings'    => 'fb_link',
    'label'       => esc_html__( 'Facebook Link','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => esc_html__( '#','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_topbar_social',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );


Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'url',
    'settings'    => 'twt_link',
    'label'       => esc_html__( 'Twitter Link','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => esc_html__( '#','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_topbar_social',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );

Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'url',
    'settings'    => 'linkedin_link',
    'label'       => esc_html__( 'Linkedin Link','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => esc_html__( '#','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_topbar_social',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );

Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'url',
    'settings'    => 'ytb_link',
    'label'       => esc_html__( 'YouTube Link','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => esc_html__( '#','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_topbar_social',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );


Kirki::add_field( 'db_theme_config_id', [
    'type'        => 'url',
    'settings'    => 'web_link',
    'label'       => esc_html__( 'Web Link','edify'),
    'section'     => 'header_topbar_section_id',
    'default'     => esc_html__( '#','edify'),
    'priority'    => 10,
    'active_callback' => [
        [
            'setting'  => 'show_header_topbar_social',
            'operator' => '==',
            'value'    => '1',
        ]
    ],
] );



new \Kirki\Pro\Field\Headline(
    [
        'settings'    => 'header_topbar_headline',
        'label'       => esc_html__( 'Header Topbar Style', 'edify' ),
        'description' => esc_html__( 'Header Topbar Style', 'edify' ),
        'section'     => 'header_topbar_section_id',
    ]
);

//  Menu Settings
new \Kirki\Field\Dimensions([
    'type'        => 'dimensions',
    'settings'    => 'topbar_padding',
    'label'       => esc_html__( 'Topbar padding','edify'),
    'section'     => 'header_topbar_section_id',
    'description' => esc_html__( 'Type padding in with px.','edify'),
    'default'     => [
        'padding-top'    => '',
        'padding-bottom' => '',
    ],
] );

new \Kirki\Field\Color( [
    'type'        => 'color',
    'settings'    => 'topbar_bg_color',
    'label'       => __( 'Topbar Background Color','edify'),
    'section'     => 'header_topbar_section_id',
    'choices'     => [
        'alpha' => true,
    ],

] );

new \Kirki\Field\Color([
    'type'        => 'color',
    'settings'    => 'topbar_font_color',
    'label'       => __( 'Font Color','edify'),
    'section'     => 'header_topbar_section_id',
    'choices'     => [
        'alpha' => true,
    ],
] );



new \Kirki\Field\Radio_Buttonset(
    [
        'settings'    => 'topbar_social_settings',
        'label'       => esc_html__( 'Social Icons ', 'edify' ),
        'section'     => 'header_topbar_section_id',
        'default'     => 'normal',
        'priority'    => 10,
        'choices'     => [
            'alpha' => true,
        ],
        'choices'     => [
            'normal'   => esc_html__( 'Normal', 'edify' ),
            'hover' => esc_html__( 'Hover', 'edify' ),
        ],
    ]
);

new \Kirki\Field\Color([
    'type'        => 'color',
    'settings'    => 'top_social_icon_color',
    'label'       => __( 'Icon Color','edify'),
    'section'     => 'header_topbar_section_id',
    'choices'     => [
        'alpha' => true,
    ],
    'active_callback' => [
        [
            'setting'  => 'topbar_social_settings',
            'operator' => '==',
            'value'    => 'normal',
        ]
    ],
] );

new \Kirki\Field\Color([
    'type'        => 'color',
    'settings'    => 'top_social_hover_color',
    'label'       => __( 'Icon Color','edify'),
    'section'     => 'header_topbar_section_id',
    'choices'     => [
        'alpha' => true,
    ],
    'active_callback' => [
        [
            'setting'  => 'topbar_social_settings',
            'operator' => '==',
            'value'    => 'hover',
        ]
    ],
] );


new \Kirki\Field\Color([
    'type'        => 'color',
    'settings'    => 'top_social_icon_bg_color',
    'label'       => __( 'Background Color','edify'),
    'section'     => 'header_topbar_section_id',
    'choices'     => [
        'alpha' => true,
    ],
    'active_callback' => [
        [
            'setting'  => 'topbar_social_settings',
            'operator' => '==',
            'value'    => 'normal',
        ]
    ],
] );

new \Kirki\Field\Color([
    'type'        => 'color',
    'settings'    => 'top_social_icon_hover_bg',
    'label'       => __( 'Background Color','edify'),
    'section'     => 'header_topbar_section_id',
    'choices'     => [
        'alpha' => true,
    ],
    'active_callback' => [
        [
            'setting'  => 'topbar_social_settings',
            'operator' => '==',
            'value'    => 'hover',
        ]
    ],
] );
