<?php


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


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

$wp_customize->add_panel( 'poster_sidebars_panelnew', array(
    'priority' => 170,
    'capability' => 'edit_theme_options',			
    'description' => __( 'Control theme default settings', 'poster' ),
    'priority'    => apply_filters( 'poster_sidebars_panelnew_priority', 170 ),
    'title' => __( 'Sidebar Settings', 'poster' )
) );

        $wp_customize->add_section('poster_sidebars_section',
        array(
            'title' => __( 'Sidebar Layout', 'poster' ),
            'description' => __( 'Sidebar Panel', 'poster' ),
            'capability'  => 'edit_theme_options',		
            'panel'			=> 'poster_sidebars_panelnew',
            'priority'    => apply_filters( 'poster_sidebars_section_priority', 10 ),
        ));

      


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

    $wp_customize->add_control(
        new poster_Image_Radio_Control(
            $wp_customize,
            'poster_sidebar_position',
            array(
                'label'       => __( 'Sidebar Positioning', 'poster' ),
                'description' => __( 'Set sidebar\'s default position. Can either be: right, left, both or none. Note: this can be overridden on individual pages.', 'poster' ),
                'section'     => 'poster_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( 'poster_sidebar_position_priority', 10 ),
            )
        ));
        $wp_customize->add_setting(
            'poster_breadcrumbs_headingset',
            array(
                'sanitize_callback' => 'wp_kses',
            ));
    
    
            $wp_customize->add_control(
                new poster_Customizer_Heading_Control(
                    $wp_customize,
                    'poster_breadcrumbs_headingset',
                    array(
                        'label'    => esc_html__( 'Sidebar Settings', 'poster' ),
                        'section'  => 'poster_sidebars_section',
                        'priority' => 15,
                    )));

        $wp_customize->add_setting('poster_sticky_sidebarblog',	
        array(
            'default'			=> 'disable',
            'type'				=> 'theme_mod',
            'capability'		=> 'edit_theme_options',
            'sanitize_callback'	=> 'poster_customize_sanitize_select'
        ));
        $wp_customize->add_control('poster_sticky_sidebarblog',
            array (                             
            'type' => 'radio',
            'label' => __('Sticky Sidebars','poster'),
            'settings'   => 'poster_sticky_sidebarblog',
            'section' => 'poster_sidebars_section',
            'choices' => array(
                'enable' => __('Enable','poster'),
                'disable' => __('Disable','poster'),
                ),
            ));

      