<?php /*** Footer Option Panel
 *
 * @package Newsxo
 */

$newsxo_default = newsxo_get_default_theme_options();

/**
 * Create a Radio-Image control
 * 
 * This class incorporates code from the Kirki Customizer Framework and from a tutorial
 * written by Otto Wood.
 * 
 * The Kirki Customizer Framework, Copyright Aristeides Stathopoulos (@aristath),
 * is licensed under the terms of the GNU GPL, Version 2 (or later).
 * 
 * @link https://github.com/reduxframework/kirki/
 * @link http://ottopress.com/2012/making-a-custom-control-for-the-theme-customizer/
 */
     
/**
* Layout options section
*
* @package newsxo
*/
//Footer
// Newsxo_Customizer_Control::add_panel(
// 	'themes_footer',
// 	array(
// 		'title' => esc_html__( 'Footer', 'newsxo' ), 
//         'priority' => 24,
//         'capability' => 'edit_theme_options',
// 	)
// );
//You Missed seciton
Newsxo_Customizer_Control::add_section(
	'you_missed_section',
	array(
		'title' => esc_html__( 'You Missed', 'newsxo' ),  
        'priority' => 24,
        'capability' => 'edit_theme_options',
        // 'panel' => 'themes_footer',
	)
);
// you missed heading
Newsxo_Customizer_Control::add_field(
	array(
		'type'     => 'hidden', 
        'settings'  => 'newsxo_you_missed_settings',
        'label' => esc_html__('You Missed', 'newsxo'),
		'section'  => 'you_missed_section',
        'sanitize_callback' => 'newsxo_sanitize_text',
	)
);
// you missed toggle
Newsxo_Customizer_Control::add_field( 
	array(
		'type'     => 'toggle', 
        'settings'  => 'you_missed_enable',
        'label' => esc_html__('Hide/Show', 'newsxo'),
		'section'  => 'you_missed_section',
        'default' => $newsxo_default['you_missed_enable'], 
        'sanitize_callback' => 'newsxo_sanitize_checkbox',
	)
);
// you missed title
Newsxo_Customizer_Control::add_field(
	array(
		'type'     => 'text', 
        'settings'  => 'you_missed_title',
        'label' => esc_html__('Title', 'newsxo'),
		'section'  => 'you_missed_section',
		'transport'  => 'postMessage',
        'default' => $newsxo_default['you_missed_title'],
        'sanitize_callback' => 'sanitize_text_field',
	)
);