<?php
/**
 * Sidebar Option
 *
 * @package News Steam
 */

$wp_customize->add_section(
	'news_steam_sidebar_option',
	array(
		'title' => esc_html__( 'Layout', 'news-steam' ),
		'panel' => 'news_steam_theme_options',
	)
);

// Sidebar Option - Global Sidebar Position.
$wp_customize->add_setting(
	'news_steam_sidebar_position',
	array(
		'sanitize_callback' => 'news_steam_sanitize_select',
		'default'           => 'right-sidebar',
	)
);

$wp_customize->add_control(
	'news_steam_sidebar_position',
	array(
		'label'   => esc_html__( 'Global Sidebar Position', 'news-steam' ),
		'section' => 'news_steam_sidebar_option',
		'type'    => 'select',
		'choices' => array(
			'right-sidebar' => esc_html__( 'Right Sidebar', 'news-steam' ),
			'no-sidebar'    => esc_html__( 'No Sidebar', 'news-steam' ),
		),
	)
);

// Sidebar Option - Post Sidebar Position.
$wp_customize->add_setting(
	'news_steam_post_sidebar_position',
	array(
		'sanitize_callback' => 'news_steam_sanitize_select',
		'default'           => 'right-sidebar',
	)
);

$wp_customize->add_control(
	'news_steam_post_sidebar_position',
	array(
		'label'   => esc_html__( 'Post Sidebar Position', 'news-steam' ),
		'section' => 'news_steam_sidebar_option',
		'type'    => 'select',
		'choices' => array(
			'right-sidebar' => esc_html__( 'Right Sidebar', 'news-steam' ),
			'no-sidebar'    => esc_html__( 'No Sidebar', 'news-steam' ),
		),
	)
);

// Sidebar Option - Page Sidebar Position.
$wp_customize->add_setting(
	'news_steam_page_sidebar_position',
	array(
		'sanitize_callback' => 'news_steam_sanitize_select',
		'default'           => 'right-sidebar',
	)
);

$wp_customize->add_control(
	'news_steam_page_sidebar_position',
	array(
		'label'   => esc_html__( 'Page Sidebar Position', 'news-steam' ),
		'section' => 'news_steam_sidebar_option',
		'type'    => 'select',
		'choices' => array(
			'right-sidebar' => esc_html__( 'Right Sidebar', 'news-steam' ),
			'no-sidebar'    => esc_html__( 'No Sidebar', 'news-steam' ),
		),
	)
);
