<?php
/*** Footer Logo
 *
 * @package Newsxo
 */

$newsxo_default = newsxo_get_default_theme_options();

// Add Section.
Newsxo_Customizer_Control::add_section(
    'footer_logo_section',
    array(
        'title' => __('Footer Logo', 'newsxo'),
        'priority' => 35,
        'panel' => 'footer_option_panel',
    )
);

//Footer logo Section 
Newsxo_Customizer_Control::add_field(
	array(
		'type'     => 'hidden',
        'settings'  => 'footer_logo_title',
        'label' => esc_html__('Logo', 'newsxo'),
		'section'  => 'footer_logo_section',
        'sanitize_callback' => 'newsxo_sanitize_text',
	)
);
    //Footer Custom logo width 
    Newsxo_Customizer_Control::add_field( 
        array(
            'type'     => 'newsxo-range', 
            'settings'  => 'newsxo_footer_main_logo_width',
            'label' => esc_html__('Width', 'newsxo'),
            'section'  => 'footer_logo_section', 
            'transport'   => 'postMessage',
            'media_query'   => true,
            'input_attr'    => array(
                'mobile'  => array(
                    'min'           => 0,
                    'max'           => 300,
                    'step'          => 1,
                    'default_value' => 130,
                ),
                'tablet'  => array(
                    'min'           => 0,
                    'max'           => 300,
                    'step'          => 1,
                    'default_value' => 170,
                ),
                'desktop' => array(
                    'min'           => 0,
                    'max'           => 300,
                    'step'          => 1,
                    'default_value' => 210,
                ),
            ),
        ),
    );
    Newsxo_Customizer_Control::add_field( 
        array(
            'type'     => 'newsxo-range', 
            'settings'  => 'newsxo_footer_main_logo_height',
            'label' => esc_html__('Height', 'newsxo'),
            'section'  => 'footer_logo_section', 
            'transport'   => 'postMessage',
            'media_query'   => true,
            'input_attr'    => array(
                'mobile'  => array(
                    'min'           => 0,
                    'max'           => 300,
                    'step'          => 1,
                    'default_value' => 40,
                ),
                'tablet'  => array(
                    'min'           => 0,
                    'max'           => 300,
                    'step'          => 1,
                    'default_value' => 50,
                ),
                'desktop' => array(
                    'min'           => 0,
                    'max'           => 300,
                    'step'          => 1,
                    'default_value' => 70,
                ),
            ),
        ),
    );