<?php
// footer builder
travelfic_Kirki::add_section('travelfic_customizer_footer', array(
    'title'          => esc_html__('Footer Builder', 'travelfic'),
    'capability'     => 'edit_theme_options',
    'priority'       => 18,
));

// separator line
travelfic_Kirki::add_field('travelfic_customizer_options', [
    'type'        => 'custom',
    'settings'    => $prefix . 'footer_bg_before_color_separator_line',
    'section'     => 'travelfic_customizer_footer',
    'default'     => '<div class="tf-mt-20"></div>',
    'priority'    => 10,
    'required' => [
        [
            'setting'  => $prefix . 'footer_design_select',
            'operator' => '==',
            'value'    => false,
        ],
    ],
]);

//Footer Background Color
travelfic_Kirki::add_field('travelfic_customizer_options', array(
    'type'        => 'color',
    'settings'    => $prefix . 'footer_bg_color',
    'label'       => esc_html__('Background', 'travelfic'),
    'section'     => 'travelfic_customizer_footer',
    'choices'     => [
        'alpha' => true,
    ],
    'priority'    => 11,
    'transport'   => 'refresh',
));

// separator line
travelfic_Kirki::add_field('travelfic_customizer_options', [
    'type'        => 'custom',
    'settings'    => $prefix . 'footer_bg_color_separator_line',
    'section'     => 'travelfic_customizer_footer',
    'default'     => '<div class="border-dashed border-bottom tf-pt-12 tf-mb-12"></div>',
    'priority'    => 12,
]);

//Footer heading Color
travelfic_Kirki::add_field('travelfic_customizer_options', array(
    'type'        => 'color',
    'settings'    => $prefix . 'footer_heading_color',
    'label'       => esc_html__('Heading', 'travelfic'),
    'choices'     => [
        'alpha' => true,
    ],
    'section'     => 'travelfic_customizer_footer',
    'transport'   => 'refresh',
    'priority'    => 13,
));

// separator line
travelfic_Kirki::add_field('travelfic_customizer_options', [
    'type'        => 'custom',
    'settings'    => $prefix . 'footer_heading_color_separator_line',
    'section'     => 'travelfic_customizer_footer',
    'default'     => '<div class="border-dashed border-bottom tf-pt-12 tf-mb-12"></div>',
    'priority'    => 14,
]);

//Footer Text Color
travelfic_Kirki::add_field('travelfic_customizer_options', array(
    'type'        => 'color',
    'settings'    => $prefix . 'footer_text_color',
    'label'       => esc_html__('Text', 'travelfic'),
    'choices'     => [
        'alpha' => true,
    ],
    'section'     => 'travelfic_customizer_footer',
    'transport'   => 'refresh',
    'priority'    => 15,
));

// settings separator
travelfic_Kirki::add_section('travelfic_customizer_separator', array(
    'capability'     => 'edit_theme_options',
    'priority'       => 19,
));
