<?php
/**
 *  Faced Sidebar Option
 *
 * @since Faced 1.0.0
 *
 */
/*Blog Page Options*/
$wp_customize->add_section( 'faced_sidebar_section', array(
   'priority'       => 45,
   'capability'     => 'edit_theme_options',
   'theme_supports' => '',
   'title'          => __( 'Sidebar Options', 'faced' ),
   'panel' 		 => 'faced_panel',
) );
/*Blog Page Sidebar Layout*/
$wp_customize->add_setting( 'faced_options[faced-sidebar-blog-page]', array(
    'capability'        => 'edit_theme_options',
    'transport' => 'refresh',
    'default'           => $default['faced-sidebar-blog-page'],
    'sanitize_callback' => 'faced_sanitize_select'
) );
$wp_customize->add_control( 'faced_options[faced-sidebar-blog-page]', array(
   'choices' => array(
    'right-sidebar'   => __('Right Sidebar','faced'),
    'left-sidebar'    => __('Left Sidebar','faced'),
    'no-sidebar'      => __('No Sidebar','faced'),
    'middle-column'   => __('Middle Column','faced')
),
   'label'     => __( 'Blog Page Sidebar Layout', 'faced' ),
   'description' => __('This sidebar will work for the blog, archive, category, author pages. More options is in pro theme.', 'faced'),
   'section'   => 'faced_sidebar_section',
   'settings'  => 'faced_options[faced-sidebar-blog-page]',
   'type'      => 'select',
   'priority'  => 10,
) );

/*Inner Page Sidebar Layout*/
$wp_customize->add_setting( 'faced_options[faced-sidebar-single-page]', array(
    'capability'        => 'edit_theme_options',
    'transport' => 'refresh',
    'default'           => $default['faced-sidebar-single-page'],
    'sanitize_callback' => 'faced_sanitize_select'
) );
$wp_customize->add_control( 'faced_options[faced-sidebar-single-page]', array(
   'choices' => array(
    'right-sidebar'   => __('Right Sidebar','faced'),
    'left-sidebar'    => __('Left Sidebar','faced'),
    'no-sidebar'      => __('No Sidebar','faced'),
    'middle-column'   => __('Middle Column','faced')
),
   'label'     => __( 'Inner Pages Sidebar Layout', 'faced' ),
   'description' => __('This sidebar will work for the single page and post. More options is in pro theme.', 'faced'),
   'section'   => 'faced_sidebar_section',
   'settings'  => 'faced_options[faced-sidebar-single-page]',
   'type'      => 'select',
   'priority'  => 10,
) );


/*Sticky Sidebar Setting*/
$wp_customize->add_setting( 'faced_options[faced-enable-sticky-sidebar]', array(
    'capability'        => 'edit_theme_options',
    'transport' => 'refresh',
    'default'           => $default['faced-enable-sticky-sidebar'],
    'sanitize_callback' => 'faced_sanitize_checkbox'
) );
$wp_customize->add_control( 'faced_options[faced-enable-sticky-sidebar]', array(
    'label'     => __( 'Sticky Sidebar Option', 'faced' ),
    'description' => __('Enable and Disable sticky sidebar from this section.', 'faced'),
    'section'   => 'faced_sidebar_section',
    'settings'  => 'faced_options[faced-enable-sticky-sidebar]',
    'type'      => 'checkbox',
    'priority'  => 15,
) );
