<?php
/**
 * Sidebar Position
 *
 * @package Mindful Blog
 */

$wp_customize->add_section(
	'mindful_blog_sidebar_position',
	array(
		'title' => esc_html__( 'Sidebar Position', 'mindful-blog' ),
		'panel' => 'mindful_blog_theme_options',
	)
);

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

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

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

$wp_customize->add_control(
	'mindful_blog_post_sidebar_position',
	array(
		'label'   => esc_html__( 'Post Sidebar Position', 'mindful-blog' ),
		'section' => 'mindful_blog_sidebar_position',
		'type'    => 'select',
		'choices' => array(
			'right-sidebar' => esc_html__( 'Right Sidebar', 'mindful-blog' ),
			'no-sidebar'    => esc_html__( 'No Sidebar', 'mindful-blog' ),
		),
	)
);

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

$wp_customize->add_control(
	'mindful_blog_page_sidebar_position',
	array(
		'label'   => esc_html__( 'Page Sidebar Position', 'mindful-blog' ),
		'section' => 'mindful_blog_sidebar_position',
		'type'    => 'select',
		'choices' => array(
			'right-sidebar' => esc_html__( 'Right Sidebar', 'mindful-blog' ),
			'no-sidebar'    => esc_html__( 'No Sidebar', 'mindful-blog' ),
		),
	)
);
