<?php
/**
|------------------------------------------------------------------------------
| Static Control
|------------------------------------------------------------------------------
*/

	class veayo_Theme_Info extends WP_Customize_Control {
		public function render_content() {
			echo $this->description;
		}
	}

	/**
	|------------------------------------------------------------------------------
	| OPTIONS
	|------------------------------------------------------------------------------
	*/
	$wp_customize->add_panel( 'panel_general', array(
		'priority'			=> 30,
		'capability'		=> 'edit_theme_options',
		'theme_supports'	=> '',
		'title'				=> __( 'Options General', 'veayo' )
	));

	/*******************
	* Section: Layout *
	********************/
	$wp_customize->add_section( 'veayo_general_layout_section' , array(
		'title'				=> __( 'Option Layout', 'veayo' ),
		'priority'			=> 1,
		'section'			=> 'veayo_general_section',
		'panel'				=> 'panel_general'
	));

	$wp_customize->add_setting( 'veayo_general_layout', array('sanitize_callback' => 'veayo_sanitize_select', 'default' => 'right_sidebar'));
	$wp_customize->add_control( 'veayo_general_layout', array(
		'section'			=> 'veayo_general_layout_section',
		'label'				=> __( 'Layout Style', 'veayo' ),
		'description'		=> __( 'Choose your favorite layout', 'veayo'),
		'type'				=> 'radio',
		'priority'			=> 2,
		'choices'			=> array(
			'none_sidebar'				=> __('None Sidebar', 'veayo'),
			'left_sidebar'				=> __('Left Sidebar', 'veayo'),
			'right_sidebar'				=> __('Right Sidebar', 'veayo'),
		),
	));

	/*******************
	* Section: Meta info *
	********************/
	$wp_customize->add_section( 'veayo_general_meta_info_section' , array(
		'title'				=> __( 'Option Meta info', 'veayo' ),
		'priority'			=> 3,
		'section'			=> 'veayo_general_section',
		'panel'				=> 'panel_general'
	));

	/*******************
	* Section: Excerpt *
	********************/
	$wp_customize->add_section( 'veayo_general_excerpt_section' , array(
		'title'				=> __( 'Options Excerpt', 'veayo' ),
		'priority'			=> 4,
		'section'			=> 'veayo_general_section',
		'panel'				=> 'panel_general'
	));

	/* Excerpt Length */
	$wp_customize->add_setting('veayo_general_excerpt_lengh', array('sanitize_callback' => 'veayo_sanitize_number_absint', 'default' => 34));
	$wp_customize->add_control( 'veayo_general_excerpt_lengh', array(
		'type'				=> 'number',
		'section'			=> 'veayo_general_excerpt_section',
		'label'				=> __( 'Excerpt Length', 'veayo' ),
		'description'		=> __( 'Expert Length is the number of words to show in Home/Archive pages.', 'veayo'),
	));

	/* Excerpt End Text */
	$wp_customize->add_setting('veayo_general_excerpt_end_text', array('sanitize_callback' => 'veayo_sanitize_html', 'default' => ' ...'));
	$wp_customize->add_control( 'veayo_general_excerpt_end_text', array(
		'type'				=> 'text',
		'section'			=> 'veayo_general_excerpt_section',
		'label'				=> __( 'Excerpt Ending Text', 'veayo' ),
	));

	/**********************
	* Section: Pagination *
	***********************/
	$wp_customize->add_section( 'veayo_general_pagination_section' , array(
		'title'					=> __( 'Options Pagination', 'veayo' ),
		'priority'				=> 5,
		'panel'					=> 'panel_general'
	));

	$wp_customize->add_setting('veayo_general_pagination_mode', array('sanitize_callback' => 'veayo_sanitize_select', 'default'	=> 'default', 'capability' => 'edit_theme_options' ));
	$wp_customize->add_control( 'veayo_general_pagination_mode', array(
		'label'					=> __( 'Choose Pagination Type', 'veayo' ),
		'section'				=> 'veayo_general_pagination_section',
		'type'					=> 'radio',
		'priority'				=> 5,
		'choices'				=> array(
			'default'					=> __('Default (Older Posts/Newer Posts)', 'veayo'),
			'numberal'					=> __('Numberal (1 2 3 ..)', 'veayo'),
		),
	));
	