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

$wp_customize->add_setting(
    'newsmass_options[sidebar_layout_option]',
    array(
        'default'           => $newsmass_default['sidebar_layout_option'],
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'newsmass_sanitize_radio'
    )
);

$wp_customize->add_control(
    new Newsmass_Custom_Radio_Image_Control(
        $wp_customize,
        'newsmass_options[sidebar_layout_option]',
        array(
            'label'         => esc_html__( 'Select Sidebar Layout (archive)', 'newsmass' ),
            'section'       => 'sidebar_options',
            'choices'       => newsmass_get_sidebar_layouts(),
        )
    )
);


$wp_customize->add_setting(
    'newsmass_options[single_sidebar_layout_option]',
    array(
        'default'           => $newsmass_default['single_sidebar_layout_option'],
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'newsmass_sanitize_radio'
    )
);

$wp_customize->add_control(
    new Newsmass_Custom_Radio_Image_Control(
        $wp_customize,
        'newsmass_options[single_sidebar_layout_option]',
        array(
            'label'         => esc_html__( 'Select Sidebar Layout (Single)', 'newsmass' ),
            'section'       => 'sidebar_options',
            'choices'       => newsmass_get_sidebar_layouts(),
        )
    )
);


$wp_customize->add_setting(
    'newsmass_options[enable_sidebar_fix_archive]',
    array(
        'default'           => $newsmass_default['enable_sidebar_fix_archive'],
        'sanitize_callback' => 'newsmass_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'newsmass_options[enable_sidebar_fix_archive]',
    array(
        'label'    => __( 'Enable Sticky Sidebar', 'newsmass' ),
        'section'     => 'sidebar_options',
        'type'        => 'checkbox',
    )
);
