<?php


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


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

$wp_customize->add_panel( 'wrockmetro_sidebars_panelnew', array(
    'priority' => 170,
    'capability' => 'edit_theme_options',			
    'description' => __( 'Control theme default settings', 'wrock-metro' ),
    'priority'    => apply_filters( 'wrockmetro_sidebars_panelnew_priority', 170 ),
    'title' => __( 'Sidebar Settings', 'wrock-metro' )
) );

        $wp_customize->add_section('wrockmetro_sidebars_section',
        array(
            'title' => __( 'Sidebar Layout', 'wrock-metro' ),
            'description' => __( 'Sidebar Panel', 'wrock-metro' ),
            'capability'  => 'edit_theme_options',		
            'panel'			=> 'wrockmetro_sidebars_panelnew',
            'priority'    => apply_filters( 'wrockmetro_sidebars_section_priority', 10 ),
        ));

      


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

    $wp_customize->add_control(
        new wrockmetro_Image_Radio_Control(
            $wp_customize,
            'wrockmetro_sidebar_position',
            array(
                'label'       => __( 'Sidebar Positioning', 'wrock-metro' ),
                'description' => __( 'Set sidebar\'s default position. Can either be: right, left, both or none. Note: this can be overridden on individual pages.', 'wrock-metro' ),
                'section'     => 'wrockmetro_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( 'wrockmetro_sidebar_position_priority', 10 ),
            )
        ));
        $wp_customize->add_setting(
            'wrockmetro_breadcrumbs_headingset',
            array(
                'sanitize_callback' => 'wp_kses',
            ));
    
    
            $wp_customize->add_control(
                new wrockmetro_Customizer_Heading_Control(
                    $wp_customize,
                    'wrockmetro_breadcrumbs_headingset',
                    array(
                        'label'    => esc_html__( 'Sidebar Settings', 'wrock-metro' ),
                        'section'  => 'wrockmetro_sidebars_section',
                        'priority' => 15,
                    )));

        $wp_customize->add_setting('wrockmetro_sticky_sidebarblog',	
        array(
            'default'			=> 'disable',
            'type'				=> 'theme_mod',
            'capability'		=> 'edit_theme_options',
            'sanitize_callback'	=> 'wrockmetro_customize_sanitize_select'
        ));
        $wp_customize->add_control('wrockmetro_sticky_sidebarblog',
            array (                             
            'type' => 'radio',
            'label' => __('Sticky Sidebars','wrock-metro'),
            'settings'   => 'wrockmetro_sticky_sidebarblog',
            'section' => 'wrockmetro_sidebars_section',
            'choices' => array(
                'enable' => __('Enable','wrock-metro'),
                'disable' => __('Disable','wrock-metro'),
                ),
            ));

      