<?php
	// type use: text, checkbox, radio, select, dropdown-pages, textarea, color, gallery, image, group
	
	$rst_widgets = rst_get_my_widgets();
	// Favicon
	rs::addCustomizeTab(array(
		'title' => 'Favicon', 
		'name' => 'rst_customize_favicon',
		'priority' => 20,
		'controls' => array(
			array(
				'label' 		=> 'Favicon',
				'type' 			=> 'image',
				'description'	=> '16x16 px.',
				'name' 			=> 'favicon'
			),
			array(
				'label' 		=> 'Apple iPad Retina Icon',
				'type' 			=> 'image',
				'description'	=> '144x144 px.',
				'name' 			=> 'favicon_ipad_retina'
			),
			array(
				'label' 		=> 'Apple iPad Icon',
				'type' 			=> 'image',
				'description'	=> '75x75 px.',
				'name' 			=> 'favicon_ipad'
			),
			array(
				'label' 		=> 'Apple iPhone Icon',
				'type' 			=> 'image',
				'description'	=> '57x57 px.',
				'name' 			=> 'favicon_iphone'
			)
		)
	) );
	// Header 
	rs::addCustomizePanel(array(
		'name' => 'rst_customize_header',
		'title' => 'Header & Logo',
		'priority' => 21,
	) );
	rs::addCustomizeTab(array(
		'title' => 'Header setting', 
		'name' => 'rst_customize_header_setting',
		'panel'	=> 'rst_customize_header',
		'priority' => 30,
		'controls' => array(
			array(
				'label' 		=> 'Header Layout',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_header_layout',
				'default_value'	=> 1,
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/header-layout-1.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/header-layout-2.jpg',
					'3' => get_template_directory_uri() .'/inc/css/images/header-layout-3.jpg',
					'4' => get_template_directory_uri() .'/inc/css/images/header-layout-4.jpg',
					'5' => get_template_directory_uri() .'/inc/css/images/header-layout-5.jpg',
				)
			),
			array(
				'label' 		=> 'Hide Social',
				'type' 			=> 'checkbox',
				'name' 			=> 'hide_social',
				'conditional_logic' => array(
					'items' => array(
						'rst_header_layout' => '4|5'
					)
				)
			),
			array(
				'label' 		=> 'Hide Search',
				'type' 			=> 'checkbox',
				'name' 			=> 'hide_search',
				'conditional_logic' => array(
					'items' => array(
						'rst_header_layout' => '4|5'
					)
				)
			),
			array(
				'label' 		=> 'Background Header',
				'type' 			=> 'rsbackground',
				'name' 			=> 'bg_header',
				'css_selector'	=> '#top-header,#rst-header',
				'default_value'	=> array(
					'background-color' => '#fff'
				)
			),
			array(
				'label' 		=> 'Border Color',
				'type' 			=> 'color',
				'name' 			=> 'border_color',
				'default_value' => '#26100f ',
				'css'			=> '
					#tf-menu,#rst-header{
						border-color: $value;
					}
					
				'
			),
			
		)
	) );
	// Logo
	rs::addCustomizeTab(array(
		'title' => 'Logo', 
		'panel'	=> 'rst_customize_header',
		'name' => 'rst_customize_logo',
		'priority' => 30,
		'controls' => array(
			array(
				'label' 		=> 'Style Logo',
				'type' 			=> 'select',
				'default_value'	=> 1,
				'name'			=> 'rst_select_logo',
				'items'			=> array(
					'1' => 'Logo Image',
					'2' => 'Logo Text',
				)
			),
			array(
				'label' 		=> 'Logo Text',
				'type' 			=> 'text',
				'name' 			=> 'rst_logo_text',
				'conditional_logic' => array(
					'items' => array(
						'rst_select_logo' => '2'
					)
				)
			),
			array(
				'label' 		=> 'Font Logo',
				'type'			=> 'font',
				'name'			=> 'rst_font_logo',
				'css_selector'	=> '.rst-logo-text',
				'default_value'	=> array(
					'font-size'	=> '40px',
					'line-height' => '45px',
					'font-family' => 'Arapey',
					'font-weight' => '400',
				),
				'conditional_logic' => array(
					'items' => array(
						'rst_select_logo' => '2'
					)
				)
			),
			array(
				'label' 		=> 'Color Logo',
				'type' 			=> 'color',
				'default_value' => '#000',
				'name' 			=> 'rst_color_logo',
				'css'			=> '
					.rst-logo-text a{
						color: $value !important;
					}',
				'conditional_logic' => array(
					'items' => array(
						'rst_select_logo' => '2'
					)
				)
			),
			array(
				'label' 		=> 'Main Logo',
				'type' 			=> 'image',
				'name' 			=> 'rst_logo',
				'conditional_logic' => array(
					'items' => array(
						'rst_select_logo' => '1'
					)
				)
			),
			array(
				'label' 		=> 'Max Width',
				'type' 			=> 'text',
				'name' 			=> 'rst_logo_max_width',
				'description'	=> 'eg:200px',
				'css'			=> '.custom-logo img ,.rst-logo-img img{ max-width: $value }',
				'conditional_logic' => array(
					'items' => array(
						'rst_select_logo' => '1'
					)
				)
			),
			array(
				'label' 		=> 'Max Height',
				'type' 			=> 'text',
				'description'	=> 'eg:50px',
				'name' 			=> 'rst_logo_max_height',
				'css'			=> '.custom-logo img,.rst-logo-img img { max-height: $value }',
				'conditional_logic' => array(
					'items' => array(
						'rst_select_logo' => '1'
					)
				)
			),
			array(
				'label' 		=> 'Padding Top',
				'type' 			=> 'text',
				'description'	=> 'eg:10px',
				'name' 			=> 'rst_logo_padding_top',
				'css'			=> '#top-header, #rst-header,.inner-main-header #top-header { padding-top: $value }'
			),
			array(
				'label' 		=> 'Padding Bottom',
				'type' 			=> 'text',
				'description'	=> 'eg:10px',
				'name' 			=> 'rst_logo_padding_bottom',
				'css'			=> '#top-header, #rst-header,.inner-main-header #top-header { padding-bottom: $value }'
			),
			
		)
	) );
	// General
	rs::addCustomizeTab(array(
		'title' => 'Blog Setting', 
		'name' => 'rst_customize_general',
		'priority' => 22,
		'controls' => array(
			array(
				'label' 		=> 'Wrapper Style',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_wrapper_layout',
				'default_value'	=> 1,
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/wrapper_box.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/wrapper_full.jpg',
				)
			),
			array(
				'label' 		=> 'Layout Style',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_general_layout',
				'default_value'	=> 3,
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/fullwidth.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/sidebar_left.jpg',
					'3' => get_template_directory_uri() .'/inc/css/images/sidebar_right.jpg'
				)
			),
			array(
				'label' 		=> 'Template Style',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_general_template',
				'default_value'	=> 'large',
				'items'        	=> array(
					'large' => get_template_directory_uri() .'/inc/css/images/large.jpg',
					'grid' => get_template_directory_uri() .'/inc/css/images/Grid.jpg',
				)
			),
			array(
				'label' 		=> 'Number Columns',
				'type' 			=> 'select',
				'default_value'	=> 2,
				'name'			=> 'rst_general_column',
				'items'			=> array(
					'2' => '2 Columns',
					'3' => '3 Columns',
				),
				'description'	=> 'Number columns for template grid &amp; box',
				'conditional_logic' => array(
					'items' => array(
						'rst_general_template' => 'grid|box'
					)
				)
			),
			array(
				'label' 		=> 'Posts Per Page',
				'type' 			=> 'text',
				'default_value'	=> 10,
				'name'			=> 'rst_general_numberpost'
			),
			array(
				'label' 		=> 'Excerpt Length',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'rst_general_excerpt_length'
			),
			array(
				'label' 		=> 'Page Navi',
				'type' 			=> 'select',
				'default_value'	=> 1,
				'name'			=> 'rst_general_pagenavi',
				'items'			=> array(
					'4'	=> 'Hide',
					'1'	=> 'Number',
					'2'	=> 'Prev/Next',
					'3'	=> 'Load More',
				)
			),
			array(
				'label' 		=> 'Headline Background',
				'type' 			=> 'image',
				'name' 			=> 'bg_general_headline_background',
			),
			array(
				'label' 		=> 'Hide Date',
				'type' 			=> 'checkbox',
				'name' 			=> 'general_hide_date'
			),
			array(
				'label' 		=> 'Hide Comment Count',
				'type' 			=> 'checkbox',
				'name' 			=> 'general_hide_conment_count'
			),
			array(
				'label' 		=> 'Hide Author',
				'type' 			=> 'checkbox',
				'name' 			=> 'general_hide_author'
			)
			
		)
	) );
	rs::addCustomizeTab(array( 
		'title' => 'Slider Show', 
		'name' => 'rst_customize_homepage_banner',
		'priority' => 23,
		'controls' => array(
			array(
				'name' => 'homepage_hide_slider',
				'label'=> 'Turn Off Slider',
				'type' => 'checkbox',
			),
			array(
				'name' => 'home_page_slider_one_repeater',
				'label' => 'Add posts to slider',
				'type' => 'repeater',
				'layout' => 'row',
				'add_row_text' => null,
				'min_rows' => 1,
				'max_rows' => 999,
				'sorting' => true,
				'controls' => array(
					array(
						'name'      => 'homepage_slider_select_post',
						'label'     => 'Select post',
						'type'      => 'postlist',
						'query'     => array(),
						'post_type' => array('post'),
						'multiple'  => false
					),
				),
				'default_value' => array(),
				'value' => '',
			),
			array(
				'label' 		=> 'Hidden Caption',
				'type' 			=> 'checkbox',
				'name' 			=> 'slider_hide_caption'
			),
		)
	) );
	rs::addCustomizeTab(array(
		'title' => 'Extend Box', 
		'name' => 'rst_customize_homepage_extend_box',
		'priority' => 24,
		'controls' => array(
			array(
				'name' => 'homepage_hide_extend',
				'label'=> 'Turn Off Extend Box',
				'type' => 'checkbox',
			),
			array(
				'label' 		=> 'Style Extend Box',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_style_box',
				'default_value'	=> 1,
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/box_01.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/box_02.jpg',
				)
			),
			array(
				'label'=> 'Extend box column',	
				'name' => 'homepage_box_column',
				'type' => 'select',
				'default_value'	=> '3',
				'items' => array(
					'3' 	=> 'Three',
					'4' 	=> 'Four',
				),
			),
			array(
				'name' => 'home_page_extend_box_repeater_three',
				'label' => 'Add Content Box',
				'type' => 'repeater',
				'layout' => 'row',
				'add_row_text' => null,
				'min_rows' => 3,
				'max_rows' => 3,
				'sorting' => true,
				'controls' => array(
					array(
						'name' => 'rst_custom_image_box',
						'label' => 'Image',
						'type'  => 'image',
					),
					array(
						'name' => 'rst_custom_title_box',
						'label' => 'Title',
						'type'  => 'textarea',
					),
					array(
						'name' => 'rst_custom_link_box',
						'label' => 'Link',
						'type'  => 'text',
					),
				),
				'default_value' => array(),
				'value' => '',
				'conditional_logic' => array(
					'items' => array(
						'homepage_box_column' => '3'
					)
				)
			),
			array(
				'name' => 'home_page_extend_box_repeater_four',
				'label' => 'Add Content Box',
				'type' => 'repeater',
				'layout' => 'row',
				'add_row_text' => null,
				'min_rows' => 4,
				'max_rows' => 4,
				'sorting' => true,
				'controls' => array(
					array(
						'name' => 'rst_custom_image_box',
						'label' => 'Image',
						'type'  => 'image',
					),
					array(
						'name' => 'rst_custom_title_box',
						'label' => 'Title',
						'type'  => 'textarea',
					),
					array(
						'name' => 'rst_custom_link_box',
						'label' => 'Link',
						'type'  => 'text',
					),
				),
				'default_value' => array(),
				'value' => '',
				'conditional_logic' => array(
					'items' => array(
						'homepage_box_column' => '4'
					)
				)
			),
		)
	) );
	// Post
	rs::addCustomizeTab(array(
		'name' => 'panel_posts',
		'title' => 'Post Setting',
		'priority' => 25,
		'controls' => array(
			array(
				'label' 		=> 'Post Layout Default',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_post_layout',
				'default_value'	=> 0,
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/fullwidth.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/sidebar_left.jpg',
					'3' => get_template_directory_uri() .'/inc/css/images/sidebar_right.jpg'
				)
			),
			array(
				'label' 		=> 'Hide Thumbnail',
				'type' 			=> 'checkbox',
				'name' 			=> 'singe_hide_thumbnail'
			),
			array(
				'label' 		=> 'Hide Tags',
				'type' 			=> 'checkbox',
				'name' 			=> 'singe_hide_tags'
			),
			array(
				'label' 		=> 'Hide Author Box',
				'type' 			=> 'checkbox',
				'name' 			=> 'singe_hide_author'
			),
			array(
				'label' 		=> 'Hide Recent Post',
				'type' 			=> 'checkbox',
				'name' 			=> 'singe_hide_recent_post'
			),
			array(
				'label' 		=> 'Hide Comment Box',
				'type' 			=> 'checkbox',
				'name' 			=> 'singe_hide_comment'
			),
			array(
				'label' 		=> 'Hide Share Facebook',
				'type' 			=> 'checkbox',
				'name' 			=> 'share_facebook'
			),
			array(
				'label' 		=> 'Hide Share Google plus',
				'type' 			=> 'checkbox',
				'name' 			=> 'share_google'
			),
			array(
				'label' 		=> 'Hide Share Twitter',
				'type' 			=> 'checkbox',
				'name' 			=> 'share_twitter'
			),
			array(
				'label' 		=> 'Hide Share linkedin',
				'type' 			=> 'checkbox',
				'name' 			=> 'share_linkedin'
			),
			array(
				'label' 		=> 'Hide Share Pinterest',
				'type' 			=> 'checkbox',
				'name' 			=> 'share_pinterest'
			)
		)
	) );
	
	// Category
	rs::addCustomizeTab(array(
		'title' => 'Category & Author Page', 
		'name' => 'rst_customize_category',
		'priority' => 26,
		'controls' => array(
			array(
				'label' 		=> 'Layout Setting',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_cat_layout',
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/fullwidth.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/sidebar_left.jpg',
					'3' => get_template_directory_uri() .'/inc/css/images/sidebar_right.jpg'
				)
			),
			array(
				'label' 		=> 'Template Setting',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_cat_template',
				'items'        	=> array(
					'large' => get_template_directory_uri() .'/inc/css/images/large.jpg',
					'grid' => get_template_directory_uri() .'/inc/css/images/Grid.jpg',
				)
			),
			array(
				'label' 		=> 'Number Columns',
				'type' 			=> 'select',
				'name'			=> 'rst_cat_column',
				'items'			=> array(
					'2' => '2 Columns',
					'3' => '3 Columns',
				),
				'description'	=> 'Number columns for template grid &amp; box',
				'conditional_logic' => array(
					'items' => array(
						'rst_cat_template' => 'grid|box'
					)
				)
			),
			array(
				'label' 		=> 'Posts Per Page',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'rst_cat_numberpost'
			),
			array(
				'label' 		=> 'Excerpt Length',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'rst_cat_excerpt_length'
			),
			array(
				'label' 		=> 'Page Navi',
				'type' 			=> 'select',
				'name'			=> 'rst_cat_pagenavi',
				'items'			=> array(
					'4'	=> 'Hide',
					'1'	=> 'Number',
					'2'	=> 'Prev/Next',
					'3'	=> 'Load More',
				)
			),
			array(
				'label' 		=> 'Headline Background',
				'type' 			=> 'image',
				'name' 			=> 'bg_cat_headline_background',
			),
			array(
				'label' 		=> 'Hide Date',
				'type' 			=> 'checkbox',
				'name' 			=> 'cat_hide_date'
			),
			array(
				'label' 		=> 'Hide Comment Count',
				'type' 			=> 'checkbox',
				'name' 			=> 'cat_hide_conment_count'
			),
			array(
				'label' 		=> 'Hide Author',
				'type' 			=> 'checkbox',
				'name' 			=> 'cat_hide_author'
			)
		)
	) );
	
	// Search
	rs::addCustomizeTab(array(
		'title' => 'Search', 
		'name' => 'rst_customize_search',
		'priority' => 27,
		'controls' => array(
			array(
				'label' 		=> 'Layout Setting',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_search_layout',
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/fullwidth.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/sidebar_left.jpg',
					'3' => get_template_directory_uri() .'/inc/css/images/sidebar_right.jpg'
				)
			),
			array(
				'label' 		=> 'Template Setting',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_search_template',
				'items'        	=> array(
					'large' => get_template_directory_uri() .'/inc/css/images/large.jpg',
					'grid' => get_template_directory_uri() .'/inc/css/images/Grid.jpg',
				)
			),
			array(
				'label' 		=> 'Number Columns',
				'type' 			=> 'select',
				'name'			=> 'rst_search_column',
				'items'			=> array(
					'2' => '2 Columns',
					'3' => '3 Columns',
				),
				'description'	=> 'Number columns for template grid &amp; box',
				'conditional_logic' => array(
					'items' => array(
						'rst_search_template' => 'grid|box'
					)
				)
			),
			array(
				'label' 		=> 'Posts Per Page',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'rst_search_numberpost'
			),
			array(
				'label' 		=> 'Excerpt Length',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'rst_search_excerpt_length'
			),
			
			array(
				'label' 		=> 'Page Navi',
				'type' 			=> 'select',
				'name'			=> 'rst_search_pagenavi',
				'items'			=> array(
					'4'	=> 'Hide',
					'1'	=> 'Number',
					'2'	=> 'Prev/Next',
					'3'	=> 'Load More',
				)
			),
			array(
				'label' 		=> 'Hide Date',
				'type' 			=> 'checkbox',
				'name' 			=> 'search_hide_date'
			),
			array(
				'label' 		=> 'Hide Comment Count',
				'type' 			=> 'checkbox',
				'name' 			=> 'search_hide_conment_count'
			),
			array(
				'label' 		=> 'Hide Author',
				'type' 			=> 'checkbox',
				'name' 			=> 'search_hide_author'
			)
		)
	) );
	// Page
	rs::addCustomizeTab(array(
		'title' => 'Page', 
		'name' => 'rst_customize_page',
		'priority' => 28,
		'controls' => array(
			array(
				'label' 		=> 'Page Layout Default',
				'type' 			=> 'radio-image',
				'name' 			=> 'rst_page_layout',
				'default_value'	=> 0,
				'items'        	=> array(
					'1' => get_template_directory_uri() .'/inc/css/images/fullwidth.jpg',
					'2' => get_template_directory_uri() .'/inc/css/images/sidebar_left.jpg',
					'3' => get_template_directory_uri() .'/inc/css/images/sidebar_right.jpg'
				)
			),
			array(
				'label' 		=> 'Headline Background Page',
				'type' 			=> 'image',
				'name' 			=> 'bg_headline_background_page',
			),
			array(
				'label' 		=> 'Hide Thumbnail',
				'type' 			=> 'checkbox',
				'name' 			=> 'page_hide_thumbnail'
			),
			/*
			array(
				'label' 		=> 'Hide Share',
				'type' 			=> 'checkbox',
				'name' 			=> 'page_hide_share'
			),
			array(
				'label' 		=> 'Hide Author Box',
				'type' 			=> 'checkbox',
				'default_value'	=> true,
				'name' 			=> 'page_hide_author'
			),
			*/
			array(
				'label' 		=> 'Hide Comment Box',
				'type' 			=> 'checkbox',
				'name' 			=> 'page_hide_comment'
			),
		)
	));
	
	
	
	// 404
	rs::addCustomizeTab(array(
		'title' => '404', 
		'name' => 'rst_customize_404',
		'priority' => 29,
		'controls' => array(
			array(
				'label' 		=> 'Title',
				'type' 			=> 'text',
				'name'			=> 'title_404',
				'default_value'	=> '404'
			),
			array(
				'label' 		=> 'Sub Title',
				'type' 			=> 'text',
				'name'			=> 'subtitle_404',
				'default_value'	=> 'Page not found'
			),
			array(
				'label' 		=> 'Content',
				'type' 			=> 'textarea',
				'name'			=> 'content_404',
				'default_value'	=> ''
			)
		)
	) );
	
	
	//Background Body
	rs::addCustomizeTab(array(
		'title' => 'Background', 
		'name' => 'rst_customize_bg',
		'priority' => 30,
		'controls' => array(
			array(
				'label' 		=> 'Background Body',
				'type' 			=> 'rsbackground',
				'name' 			=> 'bg_body',
				'css_selector'	=> 'body',
				'default_value'	=> array(
					'background-color' => '#fff'
				)
			),
			array(
				'label' 		=> 'Background Wrapper',
				'type' 			=> 'rsbackground',
				'name' 			=> 'bg_wrapper',
				'css_selector'	=> '#wrapper',
				'default_value'	=> array(
					'background-color' => '#fff'
				)
			)
		)
	));
	// Theme Color
	rs::addCustomizeTab(array(
		'title' => 'Theme Color', 
		'name' => 'rst_customize_theme_color',
		'priority' => 31,
		'controls' => array(
			array(
				'label' 		=> 'Main Color',
				'type' 			=> 'color',
				'default_value' => '#e99e03',
				'name' 			=> 'rst_theme_color',
				'css'			=> '
					a:hover,a:focus,a.active, .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus,.navbar-default .navbar-nav .sub-menu li a:hover, .navbar-default .navbar-nav .sub-menu li a:focus,.highlight,.title, .comment-reply-title span, .meta-cat,.title::before, .comment-reply-title span::before, .comment-reply-title span::after, .title::after, .meta-cat::before, .meta-cat::after,ul.social li a i,ul.cat li::before,.widget_recent_entries ul li::before, .widget_archive ul li::before, .widget_categories ul li::before, .widget_pages ul li::before, .widget_meta ul li::before, .widget_nav_menu ul li::before, ul.links li::before,ul.cat li:hover a,.widget_recent_entries  ul li:hover a,.widget_archive ul li:hover a, .widget_categories ul li:hover a, .widget_pages ul li:hover a, .widget_meta ul li:hover a, .widget_nav_menu ul li:hover a, ul.links li:hover a,ul.cat li::before, .widget_archive ul li::before, .widget_categories ul li::before, .widget_pages ul li::before, .widget_meta ul li::before, .widget_nav_menu ul li::before, ul.links li::before ,.metas a:hover,ul.social li a i,.sidebar ul.tags li a:hover, .tagcloud a:hover, ul.tags li a:hover,.navbar-default .navbar-nav > .current-menu-item > a, .navbar-default .navbar-nav > .current-menu-item > a:hover, .navbar-default .navbar-nav > .current-menu-item > a:focus,.rst-inner-content a{
						color: $value;
					}
					.txt-link,ul.social li a i,.title::before, .comment-reply-title span::before, .comment-reply-title span::after, .title::after, .meta-cat::before, .meta-cat::after,ul.social li a i,.sidebar ul.tags li a:hover, .tagcloud a:hover, ul.tags li a:hover,#tf-page-header hr,blockquote{
						border-color: $value;
					}
					blockquote{
						border-color: $value !important;
					}
					.color, .newsletter-submit, #subscribe-submit input[type="submit"],ul.cat li::before,.widget_recent_entries ul li::before, .widget_archive ul li::before, .widget_categories ul li::before, .widget_pages ul li::before, .widget_meta ul li::before, .widget_nav_menu ul li::before, ul.links li::before,.rst-galleries.owl-theme .owl-controls .owl-buttons div,#tf-pagination a:hover, #tf-pagination span:hover, #tf-pagination .current,ul.social.reverse li a i,.owl-theme .owl-controls .owl-page span,a.top,ul.social li a i:hover,.color:hover, .newsletter-submit:hover, .color:focus, .newsletter-submit:focus, #subscribe-submit input[type="submit"]:hover, #subscribe-submit input[type="submit"]:focus,.rst-galleries.owl-theme .owl-controls .owl-nav div,.owl-theme .owl-dots .owl-dot span{
						background-color: $value;
					}
				'
			),
			array(
				'label' 		=> 'Text Color',
				'type' 			=> 'color',
				'default_value' => '#333',
				'name' 			=> 'rst_text_color',
				'css'			=> '
					body, p{
						color: $value;
					}
					
				'
			),
			array(
				'label' 		=> 'Post Title Color',
				'type' 			=> 'color',
				'default_value' => '#26100f',
				'name' 			=> 'rst_post_title_color',
				'css'			=> '
					.post-detail h2, .post-detail h2 a,.media-body .media-heading a, .media-body .media-heading strong, .media-body .media-heading b{
						color: $value;
					}
					
				'
			),
			array(
				'label' 		=> 'Info Post Color',
				'description'	=> 'Author Color & Date Color & Category Color',
				'type' 			=> 'color',
				'default_value' => '#797979',
				'name' 			=> 'rst_cat_color',
				'css'			=> '
					.metas a,.related-posts .media a.meta-date, .widget_recent_post .media .meta-date{
						color: $value;
					}
					
				'
			),
			array(
				'label' 		=> 'Link Sidebar Color',
				'type' 			=> 'color',
				'default_value' => '#333031',
				'name' 			=> 'rst_link_sidebar_color',
				'css'			=> '
					ul.cat a, .widget_archive ul li a, .widget_categories ul li a, .widget_pages ul li a, .widget_meta ul li a, .widget_nav_menu ul li a, .widget_recent_entries ul li a, ul.links a,.tagcloud a, ul.tags li a,ul.cat li,.widget_archive ul li,.widget_categories ul li,.widget_pages ul li,.widget_meta  ul li,.widget_nav_menu ul li,.widget_recent_entries ul li, ul.links li ,.widget_recent_comments ul li,,.widget_recent_comments ul li a{
						color: $value;
					}
					
				'
			),
		)
	) );
	
	
	//Fonts
	rs::addCustomizePanel(array(
		'name' => 'panel_fonts',
		'title' => 'Fonts',
		'priority' => 32,
	) );
		
	//Fonts > Font Site
	rs::addCustomizeTab(array(
		'title' => 'Site Font', 
		'name' => 'rst_customize_fonts',
		'panel'	=> 'panel_fonts',
		'priority' => 30,
		'controls' => array(
			array(
				'label' 		=> 'Body',
				'type'			=> 'font',
				'name'			=> 'font_body',
				'css_selector'	=> 'body,p',
				'default_value'	=> array(
					'font-family' => 'Arimo',
					'font-size'	=> '14px',
					'font-weight' => '400',
					'line-height' => '23px',
				)
			),
			array(
				'label' 		=> 'Second Font',
				'type'			=> 'font',
				'name'			=> 'font_second_body',
				'css_selector'	=> '.title, .comment-reply-title span, .meta-cat,p.copyright-txt,ul.cat li, .widget_archive ul li, .widget_categories ul li, .widget_pages ul li, .widget_meta ul li, .widget_nav_menu ul li, .widget_recent_entries ul li, ul.links li,.tf-btn, .newsletter-submit, #subscribe-submit input[type="submit"],.tagcloud a,ul.tags li a,p.skills',
				'description'	=> 'sidebar font, category font , copyright font',
				'default_value'	=> array(
					'font-family' => 'Arapey',
					'font-weight' => '400',
				)
			),
			array(
				'label' 		=> 'H1',
				'type'			=> 'font',
				'name'			=> 'font_h1',
				'css_selector'	=> 'h1',
				'default_value'	=> array(
					'font-size'	=> '35px',
					'line-height' => '38px',
					'font-family' => 'Arapey',
					'font-weight' => '500',
				)
			),
			array(
				'label' 		=> 'H2',
				'type'			=> 'font',
				'name'			=> 'font_h2',
				'css_selector'	=> 'h2,.rst-inner-box-detail-home h2',
				'default_value'	=> array(
					'font-size'	=> '30px',
					'line-height' => '32px',
					'font-family' => 'Arapey',
					'font-weight' => '500',
				)
			),
			array(
				'label' 		=> 'H3',
				'type'			=> 'font',
				'name'			=> 'font_h3',
				'css_selector'	=> 'h3',
				'default_value'	=> array(
					'font-size'	=> '20px',
					'line-height' => '23px',
					'font-family' => 'Arapey',
					'font-weight' => '500',
				)
			),
			array(
				'label' 		=> 'H4',
				'type'			=> 'font',
				'name'			=> 'font_h4',
				'css_selector'	=> 'h4',
				'default_value'	=> array(
					'font-size'	=> '18px',
					'line-height' => '22px',
					'font-family' => 'Arapey',
					'font-weight' => '500',
				)
			),
			array(
				'label' 		=> 'H5',
				'type'			=> 'font',
				'name'			=> 'font_h5',
				'css_selector'	=> 'h5',
				'default_value'	=> array(
					'font-family' => 'Arapey',
					'font-size'	=> '16px',
					'line-height' => '20px',
					'font-weight' => '500',
				)
			),
			array(
				'label' 		=> 'H6',
				'type'			=> 'font',
				'name'			=> 'font_h6',
				'css_selector'	=> 'h6',
				'default_value'	=> array(
					'font-size'	=> '14px',
					'line-height' => '18px',
					'font-family' => 'Arapey',
					'font-weight' => '500',
				)
			),
			
		)
	));
	
	//Fonts > Main Menu
	rs::addCustomizeTab(array(
		'title' => 'Menu Font', 
		'name' => 'rst_customize_fonts_main_menu',
		'panel'	=> 'panel_fonts',
		'priority' => 30,
		'controls' => array(
			array(
				'label' 		=> 'Main Menu Font',
				'type'			=> 'font',
				'name'			=> 'font_main_menu',
				'css_selector'	=> '.navbar-default .navbar-nav > .current-menu-item > a, .navbar-default .navbar-nav li a',
				'default_value'	=> array(
					'font-size'	=> '16px',
					'line-height' => '20px',
					'font-family' => 'Times New Roman',
					'font-weight' => '400',
				)
			),
			array(
				'label' 		=> 'Sub Menu Font',
				'type'			=> 'font',
				'name'			=> 'font_sub_menu',
				'css_selector'	=> '.navbar-default .navbar-nav .sub-menu  li  a',
				'default_value'	=> array(
					'font-size'	=> '14px',
					'line-height' => '18px',
					'font-family' => 'Times New Roman',
					'font-weight' => '400',
				)
			),
			array(
				'label' 		=> 'Menu Color',
				'type' 			=> 'color',
				'default_value' => '#26100f',
				'name' 			=> 'rst_menu_color',
				'css'			=> '
					.navbar-default .navbar-nav > .current-menu-item > a, .navbar-default .navbar-nav li a{
						color: $value;
					}
				'
			),
			array(
				'label' 		=> 'Sub Menu Color',
				'type' 			=> 'color',
				'name' 			=> 'rst_sub_menu_color',
				'default_value'	=> '#333333',
				'css'			=> '.navbar-default .navbar-nav .sub-menu li a { color: $value }'
			),
			array(
				'label' 		=> 'Menu Color Hover',
				'type' 			=> 'color',
				'default_value' => '',
				'name' 			=> 'rst_theme_color_hover',
				'css'			=> '
					 #tf-menu.navbar-default .navbar-nav > li > a:hover, #tf-menu.navbar-default .navbar-nav > li > a:focus,#tf-menu.navbar-default .navbar-nav .sub-menu li a:hover, #tf-menu.navbar-default .navbar-nav .sub-menu li a:focus{
						color: $value;
					}
				'
			),
			
		)
	));
	//Fonts > Main Menu
	rs::addCustomizeTab(array(
		'title' => 'Custom Reading', 
		'name' => 'rst_customize_fonts_reading',
		'panel'	=> 'panel_fonts',
		'priority' => 30,
		'controls' => array(
			array(
				'label' 		=> 'Reading Font',
				'type'			=> 'font',
				'name'			=> 'font_reading_font',
				'css_selector'	=> '.txt-link',
				'default_value'	=> array(
					'font-size'	=> '18px',
					'line-height' => '24px',
					'font-family' => 'Niconne',
					'font-weight' => '400',
				)
			),
			array(
				'label' 		=> 'Reading Color',
				'type' 			=> 'color',
				'default_value' => '#000000',
				'name' 			=> 'rst_reading_color',
				'css'			=> '
					.txt-link{
						color: $value;
					}
				'
			),
			array(
				'label' 		=> 'Reading Border Color',
				'type' 			=> 'color',
				'default_value' => '',
				'name' 			=> 'rst_reading_border_color',
				'css'			=> '
					.post-block .txt-link{
						border-color: $value;
					}
				'
			),
			array(
				'label' 		=> 'Reading Background Hover Color',
				'type' 			=> 'color',
				'default_value' => '#26100f ',
				'name' 			=> 'rst_reading_bạckground_hover_color',
				'css'			=> '
					.post-block .txt-link:hover{
						background-color: $value;
						border-color: $value;
					}
				'
			),
			
		)
	));
	
	
	// Seo
	rs::addCustomizeTab(array(
		'title' => 'Seo', 
		'name' => 'rst_customize_seo',
		'priority' => 33,
		'controls' => array(
			array(
				'label' 		=> 'Meta Description',
				'type' 			=> 'textarea',
				'description'	=> 'Enter your website meta description for SEO.',
				'name' 			=> 'des_seo'
			),
			array(
				'label' 		=> 'Meta Keywords',
				'type' 			=> 'textarea',
				'description'	=> 'Enter your keywords here separated by a comma.',
				'name' 			=> 'keywords_seo'
			),
			array(
				'label' 		=> 'Meta Author',
				'type' 			=> 'textarea',
				'description'	=> '',
				'name' 			=> 'author_seo'
			),
		)
	) );
	
	// Social Network
	rs::addCustomizeTab(array(
		'title' => 'Social Network', 
		'name' => 'rst_customize_social',
		'priority' => 34,
		'controls' => array(
			array(
				'label' 		=> 'Facebook',
				'type' 			=> 'text',
				'name' 			=> 'social_facebook'
			),
			array(
				'label' 		=> 'Google plus',
				'type' 			=> 'text',
				'name' 			=> 'social_google'
			),
			array(
				'label' 		=> 'Twitter',
				'type' 			=> 'text',
				'name' 			=> 'social_twitter'
			),
			array(
				'label' 		=> 'Tumblr',
				'type' 			=> 'text',
				'name' 			=> 'social_tumblr'
			),
			array(
				'label' 		=> 'Instagram',
				'type' 			=> 'text',
				'name' 			=> 'social_instagram'
			),
			array(
				'label' 		=> 'Youtube',
				'type' 			=> 'text',
				'name' 			=> 'social_youtube'
			),
			array(
				'label' 		=> 'Linkedin',
				'type' 			=> 'text',
				'name' 			=> 'social_linkedin'
			),
			array(
				'label' 		=> 'Flickr',
				'type' 			=> 'text',
				'name' 			=> 'social_flickr'
			),
			array(
				'label' 		=> 'Vimeo',
				'type' 			=> 'text',
				'name' 			=> 'social_vimeo'
			),
			array(
				'label' 		=> 'Pinterest',
				'type' 			=> 'text',
				'name' 			=> 'social_pinterest'
			),
			array(
				'label' 		=> 'Dribbble',
				'type' 			=> 'text',
				'name' 			=> 'social_dribbble'
			),
			array(
				'label' 		=> 'Digg',
				'type' 			=> 'text',
				'name' 			=> 'social_digg'
			),
			array(
				'label' 		=> 'Skype',
				'type' 			=> 'text',
				'name' 			=> 'social_skype'
			),
			array(
				'label' 		=> 'Deviantart',
				'type' 			=> 'text',
				'name' 			=> 'social_deviantart'
			),
			array(
				'label' 		=> 'Yahoo',
				'type' 			=> 'text',
				'name' 			=> 'social_yahoo'
			),
			array(
				'label' 		=> 'Reddit',
				'type' 			=> 'text',
				'name' 			=> 'social_reddit'
			)
		)
	) );
	
	// Footer
	rs::addCustomizeTab(array(
		'title' => 'Footer', 
		'name' => 'rst_customize_footer',
		'priority' => 35,
		'controls' => array(
			array(
				'label' 		=> 'Logo',
				'type' 			=> 'image',
				'name'			=> 'footer_logo'
			),
			array(
				'label' 		=> 'Hide Logo',
				'type' 			=> 'checkbox',
				'default_value'	=> '',
				'name'			=> 'footer_hide_logo'
			),
			array(
				'label' 		=> 'Show Instagram',
				'type' 			=> 'checkbox',
				'default_value'	=> '',
				'name'			=> 'footer_hide_instagram'
			),
			array(
				'label' 		=> 'Instagram Title',
				'type' 			=> 'text',
				'default_value'	=> 'Follow me on instagram',
				'name'			=> 'footer_instagram_title',
				'conditional_logic' => array(
					'items' => array(
						'footer_hide_instagram' => '1'
					)
				)
			),
			array(
				'label' 		=> 'Instagram Username',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'footer_instagram_user',
				'conditional_logic' => array(
					'items' => array(
						'footer_hide_instagram' => '1'
					)
				)
			),
			
			array(
				'label' 		=> 'Instagram Number Photo',
				'type' 			=> 'text',
				'default_value'	=> '16',
				'name'			=> 'footer_instagram_number_photo',
				'description'	=> 'Max 20',
				'conditional_logic' => array(
					'items' => array(
						'footer_hide_instagram' => '1'
					)
				)
			),
			array(
				'label' 		=> 'Copyright',
				'type' 			=> 'textarea',
				'default_value'	=> '&copy; 2015 Angel. All rights reverved ',
				'name'			=> 'footer_copyright'
			),
		)
	) );
	
	// Translations
	rs::addCustomizeTab(array(
		'title' => 'Translations / ReName Text', 
		'name' => 'rst_customize_translations',
		'priority' => 36,
		'controls' => array(
			array(
				'label' 		=> 'Continue reading...',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_continue_reading'
			),
			array(
				'label' 		=> 'Load more posts',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_loadmore'
			),
			array(
				'label' 		=> 'Contact Us',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'rst_contact_us'
			),
			array(
				'label' 		=> 'go back to homepage',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_go_to_home'
			),
			array(
				'label' 		=> 'Search resuilt for',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_search_resuilt'
			),
			array(
				'label' 		=> 'Search for',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_search_for'
			),
			array(
				'label' 		=> 'this is a page for',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_archives'
			),
			array(
				'label' 		=> 'Leave A Comment',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_leave_comment'
			),
			array(
				'label' 		=> 'Related Posts',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_related_post'
			),
			array(
				'label' 		=> 'About The Author',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_author'
			),
			array(
				'label' 		=> 'do you have any questions?',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_contact_questions'
			),
			array(
				'label' 		=> 'know more about',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_about'
			),
			array(
				'label' 		=> 'read more posts by',
				'type' 			=> 'text',
				'default_value'	=> '',
				'name'			=> 'translation_read_more_author'
			)
		)
	) );
?>