<?php
/**
 * Sidebar Position
 *
 * @package Newsbreeze
 */

$wp_customize->add_section(
	'newsbreeze_sidebar_position',
	array(
		'title' => esc_html__( 'Sidebar Position', 'newsbreeze' ),
		'panel' => 'newsbreeze_theme_options',
	)
);

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

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

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

$wp_customize->add_control(
	'newsbreeze_post_sidebar_position',
	array(
		'label'   => esc_html__( 'Post Sidebar Position', 'newsbreeze' ),
		'section' => 'newsbreeze_sidebar_position',
		'type'    => 'select',
		'choices' => array(
			'right-sidebar' => esc_html__( 'Right Sidebar', 'newsbreeze' ),
			'no-sidebar'    => esc_html__( 'No Sidebar', 'newsbreeze' ),
		),
	)
);

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

$wp_customize->add_control(
	'newsbreeze_page_sidebar_position',
	array(
		'label'   => esc_html__( 'Page Sidebar Position', 'newsbreeze' ),
		'section' => 'newsbreeze_sidebar_position',
		'type'    => 'select',
		'choices' => array(
			'right-sidebar' => esc_html__( 'Right Sidebar', 'newsbreeze' ),
			'no-sidebar'    => esc_html__( 'No Sidebar', 'newsbreeze' ),
		),
	)
);
