<?php


/*********************
post-settings
*******************/


// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$wp_customize->add_panel( 'magazinestyle_sidebars_panelnew', array(
    'priority' => 170,
    'capability' => 'edit_theme_options',			
    'description' => __( 'Control theme default settings', 'magazine-style' ),
    'priority'    => apply_filters( 'magazinestyle_sidebars_panelnew_priority', 170 ),
    'title' => __( 'Sidebar Settings', 'magazine-style' )
) );

        $wp_customize->add_section('magazinestyle_sidebars_section',
        array(
            'title' => __( 'Sidebar Layout', 'magazine-style' ),
            'description' => __( 'Sidebar Panel', 'magazine-style' ),
            'capability'  => 'edit_theme_options',		
            'panel'			=> 'magazinestyle_sidebars_panelnew',
            'priority'    => apply_filters( 'magazinestyle_sidebars_section_priority', 10 ),
        ));

      


	// Add customizer settings and controls using the magazinestyle_Image_Radio_Control class
    $wp_customize->add_setting(
        'magazinestyle_sidebar_position',
        array(
            'default'           => 'right',
            'type'              => 'theme_mod',
            'sanitize_callback' => 'magazinestyle_customize_sanitize_select',
            'capability'        => 'edit_theme_options',
        )
    );

    $wp_customize->add_control(
        new magazinestyle_Image_Radio_Control(
            $wp_customize,
            'magazinestyle_sidebar_position',
            array(
                'label'       => __( 'Sidebar Positioning', 'magazine-style' ),
                'description' => __( 'Set sidebar\'s default position. Can either be: right, left, both or none. Note: this can be overridden on individual pages.', 'magazine-style' ),
                'section'     => 'magazinestyle_sidebars_section',
                'choices'     => array(
                    'right'  => get_template_directory_uri() . '/images/right.png',
                    'left' => get_template_directory_uri() . '/images/left.png',
                    'both' => get_template_directory_uri() . '/images/bothsides.png',
                    'none' => get_template_directory_uri() . '/images/fullnone.png',
                ),
                'priority'    => apply_filters( 'magazinestyle_container_type_priority', 10 ),
            )
        ));
        $wp_customize->add_setting(
            'magazinestyle_breadcrumbs_headingset',
            array(
                'sanitize_callback' => 'wp_kses',
            ));
    
    
            $wp_customize->add_control(
                new magazinestyle_Customizer_Heading_Control(
                    $wp_customize,
                    'magazinestyle_breadcrumbs_headingset',
                    array(
                        'label'    => esc_html__( 'Sidebar Settings', 'magazine-style' ),
                        'section'  => 'magazinestyle_sidebars_section',
                        'priority' => 15,
                    )));

        $wp_customize->add_setting('magazinestyle_sticky_sidebarblog',	
        array(
            'default'			=> 'disable',
            'type'				=> 'theme_mod',
            'capability'		=> 'edit_theme_options',
            'sanitize_callback'	=> 'magazinestyle_customize_sanitize_select'
        ));
        $wp_customize->add_control('magazinestyle_sticky_sidebarblog',
            array (                             
            'type' => 'radio',
            'label' => __('Sticky Sidebars','magazine-style'),
            'settings'   => 'magazinestyle_sticky_sidebarblog',
            'section' => 'magazinestyle_sidebars_section',
            'choices' => array(
                'enable' => __('Enable','magazine-style'),
                'disable' => __('Disable','magazine-style'),
                ),
            ));

      