<?php
$wp_customize->add_section(
	'sidebar_options',
	array(
		'title' => esc_html__( 'SideBar Options', 'newsmaster' ),
		'panel' => 'archive_options_panel',
	)
);

$wp_customize->add_setting(
    'newsmaster_options[sidebar_layout_option]',
    array(
        'default'           => $newsmaster_default['sidebar_layout_option'],
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'newsmaster_sanitize_radio'
    )
);

$wp_customize->add_control(
    new NewsMaster_Custom_Radio_Image_Control(
        $wp_customize,
        'newsmaster_options[sidebar_layout_option]',
        array(
            'label'         => esc_html__( 'Select Sidebar Layout (archive)', 'newsmaster' ),
            'section'       => 'sidebar_options',
            'choices'       => newsmaster_get_sidebar_layouts(),
        )
    )
);


$wp_customize->add_setting(
    'newsmaster_options[single_sidebar_layout_option]',
    array(
        'default'           => $newsmaster_default['single_sidebar_layout_option'],
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'newsmaster_sanitize_radio'
    )
);

$wp_customize->add_control(
    new NewsMaster_Custom_Radio_Image_Control(
        $wp_customize,
        'newsmaster_options[single_sidebar_layout_option]',
        array(
            'label'         => esc_html__( 'Select Sidebar Layout (Single)', 'newsmaster' ),
            'section'       => 'sidebar_options',
            'choices'       => newsmaster_get_sidebar_layouts(),
        )
    )
);


$wp_customize->add_setting(
    'newsmaster_options[enable_sidebar_fix_archive]',
    array(
        'default'           => $newsmaster_default['enable_sidebar_fix_archive'],
        'sanitize_callback' => 'newsmaster_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'newsmaster_options[enable_sidebar_fix_archive]',
    array(
        'label'    => __( 'Enable Sticky Sidebar', 'newsmaster' ),
        'section'     => 'sidebar_options',
        'type'        => 'checkbox',
    )
);
