<?php
     $fields[] = array(
        'type'        => 'select',
        'settings'    => 'andaman_footer_color',
        'label'       => __( 'Footer Color', 'andaman' ),
        'section'     => 'andaman_footer',
        'default'     => 'black',
        'priority'    => 10,
        'choices'     => array(
            'black' => esc_attr__( 'Black', 'andaman' ),
            'white' => esc_attr__( 'White', 'andaman' ),
        ),
    );
     $fields[] = array(
        'type'        => 'toggle',
        'settings'    => 'andaman_widget_footer',
        'label'       => __( 'Widgets Footer', 'andaman' ),
        'section'     => 'andaman_footer',
        'default'     => true,
        'priority'    => 10,
        'choices'     => array(
            'on'  => esc_attr__( 'Enable', 'andaman' ),
            'off' => esc_attr__( 'Disable', 'andaman' ),
        ),
    );
    $fields[] = array(
        'type'        => 'select',
        'settings'    => 'andaman_widget_footer_count',
        'label'       => __( 'Count Of Widgets', 'andaman' ),
        'section'     => 'andaman_footer',
        'default'     => 'one',
        'priority'    => 10,
        'choices'     => array(
            'one'   => esc_attr__( '1/4 + 1/4 + 1/4', 'andaman' ),
            'two' => esc_attr__( '1/3 + 1/3 + 1/3 + 1/3', 'andaman' ),
        ),
        'active_callback'  => array(
            array(
                'setting'  => 'andaman_widget_footer',
                'operator' => '==',
                'value'    => true,
            ),
        ),
    );
    $fields[] = array(
        'type'        => 'toggle',
        'settings'    => 'andaman_footer_maps',
        'label'       => __( 'Map Image', 'andaman' ),
        'section'     => 'andaman_footer',
        'default'     => true,
        'priority'    => 10,
        'active_callback'  => array(
            array(
                'setting'  => 'andaman_widget_footer',
                'operator' => '==',
                'value'    => true,
            ),
        ),
    );

    



     $fields[] = array(
        'type'        => 'textarea',
        'settings'    => 'andaman_footer_copy',
        'label'       => __( 'Copyright Text', 'andaman' ),
        'section'     => 'andaman_footer',
        'default'     => '© 2018 Andaman by <a href="https://themeforest.net/user/dankovthemes" target="_blank">DankovThemes</a>. All right reserved.',
        'priority'    => 10,
    );
?>