<?php
/**
|------------------------------------------------------------------------------
| OPTIONS
|------------------------------------------------------------------------------
*/
	$wp_customize->add_panel( 'tc_panel_single', array(
		'priority'			=> 33,
		'capability'		=> 'edit_theme_options',
		'theme_supports'	=> '',
		'title'				=> __( 'Options Single', 'kouprey' )
	));

	/**************************
	* Section: Related Posts *
	**************************/
	$wp_customize->add_section( 'kouprey_related_post_section' , array(
		'title'				=> __( 'Related Posts', 'kouprey' ),
		'priority'			=> 5,
		'panel'				=> 'tc_panel_single'
	));

	/* Taxonmy of Related Posts */
	$wp_customize->add_setting('kouprey_related_post_taxonomy', array('sanitize_callback' => 'kouprey_sanitize_select', 'default'=> 'category'));
	$wp_customize->add_control('kouprey_related_post_taxonomy', array(
		'label'					=> __('Related Posts Taxonomy', 'kouprey'),
		'section'				=> 'kouprey_related_post_section',
		'type'					=> 'radio',
		'priority'				=> 2,
		'choices'				=> array(
			'category'				=> __('Categories', 'kouprey'),
			'tag'					=> __('Tags', 'kouprey'),
		),
	));

	/* Number of Related Posts */
	$wp_customize->add_setting('kouprey_number_related_posts', array('sanitize_callback' => 'kouprey_sanitize_number_absint', 'default' => '9'));
	$wp_customize->add_control( 'kouprey_number_related_posts', array(
		'type'				=> 'number',
		'section'			=> 'kouprey_related_post_section',
		'label'				=> __( 'Number of Related Posts', 'kouprey' ),
	));