<?php 


// Footer Controls


new \Kirki\Field\Checkbox_Switch([
        'type'        => 'switch',
        'settings'    => 'show_footer_top',
        'label'       => esc_html__( 'Show Footer Top','edify'),
        'description' => esc_html__( 'Shows the 4-column widget area above the footer bottom bar. Add widgets to Footer Column 1-4 under Appearance > Widgets.','edify'),
        'section'     => 'footer_section_id',
        'default'     => true,
        'priority'    => 5,
        'choices'     => [
            'on'  => esc_html__( 'Yes','edify'),
            'off' => esc_html__( 'No','edify'),
        ],
    ] );

/* ---- Footer Bottom Bar Style ---- */

new \Kirki\Field\Color([
    'type'        => 'color',
    'settings'    => 'footer_btm_bg_color',
    'label'       => esc_html__( 'Footer Bottom Background Color','edify'),
    'section'     => 'footer_section_id',
    'default'     => '',
    'priority'    => 6,
    'choices'     => [ 'alpha' => true ],
] );

new \Kirki\Field\Color([
    'type'        => 'color',
    'settings'    => 'footer_btm_text_color',
    'label'       => esc_html__( 'Footer Bottom Text Color','edify'),
    'description' => esc_html__( 'Applies to the copyright text and footer bottom menu links.','edify'),
    'section'     => 'footer_section_id',
    'default'     => '',
    'priority'    => 7,
    'choices'     => [ 'alpha' => true ],
] );

new \Kirki\Field\Checkbox_Switch([
        'type'        => 'switch',
        'settings'    => 'back_to_top',
        'label'       => esc_html__( 'Show back Top','edify'),
        'section'     => 'footer_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'        => 'textarea',
        'settings'    => 'copyright',
        'label'       => esc_html__( 'Copyright Text','edify'),
        'section'     => 'footer_section_id',
        'default'     => esc_html__( '© Copyright bravia All rights reserved.Crafted by pxelcode','edify'),
        'priority'    => 10,
        'tab'      => 'general',
    ] );

    Kirki::add_field( 'db_theme_config_id', [
        'type'        => 'text',
        'settings'    => 'copyright_author',
        'label'       => esc_html__( 'Copyright Author','edify'),
        'section'     => 'footer_section_id',
        'default'     => esc_html__( 'Crafted by pxelcode','edify'),
        'priority'    => 10,
        'tab'      => 'general',
    ] );

    Kirki::add_field( 'db_theme_config_id', [
        'type'        => 'url',
        'settings'    => 'copyright_link',
        'label'       => esc_html__( 'Copyright Website Link','edify'),
        'section'     => 'footer_section_id',
        'default'     => esc_html__( '#','edify'),
        'priority'    => 10,
        'tab'      => 'general',
    ] );
