<?php
/*** Footer Widget Area
 *
 * @package Newsxo
 */

$newsxo_default = newsxo_get_default_theme_options();

// Add Section.
Newsxo_Customizer_Control::add_section(
    'footer_widget_area_section',
    array(
        'title' => __('Footer Widget Area', 'newsxo'),
        'priority' => 30,
        'panel' => 'footer_option_panel',
    )
);
    
    // footer column layout
    Newsxo_Customizer_Control::add_field( 
        array(
            'type'     => 'select', 
            'settings'  => 'newsxo_footer_column_layout',
            'transport'   => 'postMessage',
            'label' => esc_html__('Select Column Layout', 'newsxo'),
            'section'  => 'footer_widget_area_section', 
            'default' => '3',
            'is_text' => true, 
            'choices'   => array(
                '1' => '1',
                '2' => '2',
                '3' => '3',
                '4' => '4',
            ),
            'sanitize_callback' => 'newsxo_sanitize_select',
        )
    );