<?php
defined('__THEME__') or die;

if (!isset($content_width)) { $content_width = 940; }

require_once( dirname( __FILE__ ) . '/lib/options.php' );

$options = array();

$options[] = array(
		'title' => __('About', 'ya-opts'),
		'desc' => __('<p class="description">YA Framework is a WordPress starter theme based on HTML5 & Bootstrapped. With power Mega Menu, Post Formats and Custom Widgets are included in you can create a new theme easily without much time.<br><br>
		Theme Name:  Ya Framework<br>
		Theme URI:  <a href="http://www.smartaddons.com/">http://www.smartaddons.com/</a><br>
		Description:  Framework is base theme.<br>
		Version:  1.0.0<br>
		Author:  SmartAddons<br>
		Author URI:  <a href="http://www.smartaddons.com/">http://www.smartaddons.com/</a>
</p>', 'ya-opts'),
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => YA_URL.'/options/img/glyphicons/glyphicons_062_attach.png'
		//Lets leave this as a blank section, no options just some intro text set above.
		//'fields' => array()
	);
			
$options[] = array(
		'title' => __('General', 'ya-opts'),
		'desc' => __('<p class="description">The theme allows to build your own styles right out of the backend without any coding knowledge. Start your own color scheme by selecting one of 4 predefined schemes. Upload new logo and favicon or get their URL.</p>', 'ya-opts'),
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => YA_URL.'/options/img/glyphicons/glyphicons_023_cogwheels.png',
		//Lets leave this as a blank section, no options just some intro text set above.
		'fields' => array(
				array(
						'id' => 'scheme',
						'type' => 'radio_img',
						'title' => __('Color Scheme', 'ya-opts'),
						'sub_desc' => 'Select one of 4 predefined schemes',
						'desc' => '',
						'options' => array(
										'default' => array('title' => 'Blue', 'img' => get_template_directory_uri().'/assets/img/blue.png'),
										'black' => array('title' => 'Black', 'img' => get_template_directory_uri().'/assets/img/black.png'),
										'green' => array('title' => 'Green', 'img' => get_template_directory_uri().'/assets/img/green.png'),
											),//Must provide key => value(array:title|img) pairs for radio options
						'std' => 'default'
					),
				array(
						'id' => 'favicon',
						'type' => 'upload',
						'title' => __('Favicon Icon', 'ya-opts'),
						'sub_desc' => 'Use the Upload button to upload the new favicon and get URL of the favicon',
						'std' => get_template_directory_uri().'/assets/img/favicon.ico'
					),
				array(
						'id' => 'text_direction',
						'type' => 'select',
						'title' => __('Text Direction', 'ya-opts'),
						'sub_desc' => 'Support universal recognition: RTL/LTR Language',
						'options' => array(
								'auto' => 'Auto',
								'ltr' => 'Left to Right',
								'rtl' => 'Right to Left'
								),
						'std' => 'auto'
					),
				array(
						'id' => 'responsive_support',
						'type' => 'checkbox',
						'title' => __('Responsive Support', 'ya-opts'),
						'sub_desc' => 'Support reponsive layout, if you do not want to use this function, please uncheck.',
						'desc' => '',
						'std' => '1'// 1 = on | 0 = off
					),
				array(
						'id' => 'sitelogo',
						'type' => 'upload',
						'title' => __('Logo Image', 'ya-opts'),
						'sub_desc' => 'Use the Upload button to upload the new logo and get URL of the logo',
						'std' => get_template_directory_uri().'/assets/img/logo.png'
					)
			)
	);
			
$options[] = array(
		'title' => __('Navbar Options', 'ya-opts'),
		'desc' => __('<p class="description">If you got a big site with a lot of sub menus we recommend using a mega menu. Just select the dropbox to display a menu as mega menu or dropdown menu.</p>', 'ya-opts'),
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => YA_URL.'/options/img/glyphicons/glyphicons_041_charts.png',
		//Lets leave this as a blank section, no options just some intro text set above.
		'fields' => array(
//				array(
//						'id' => 'navbar_position',
//						'type' => 'select',
//						'title' => __('Navbar Position', 'ya-opts'),
//						'options' => array( 'static' => 'Static', 'top-fixed' => 'Top Fixed', 'bottom-fixed' => 'Bottom Fixed' ),
//						'std' => 'static'
//					),
//				array(
//						'id' => 'navbar_inverse',
//						'type' => 'checkbox',
//						'title' => __('Navbar Inverse Color', 'ya-opts'),
//						'sub_desc' => __('No validation can be done on this field type', 'ya-opts'),
//						'desc' => __('This is the description field, again good for additional info.', 'ya-opts'),
//						'std' => '0'// 1 = on | 0 = off
//					),
//				array(
//						'id' => 'navbar_branding',
//						'type' => 'checkbox',
//						'title' => __('Display Branding', 'ya-opts'),
//						'sub_desc' => __('No validation can be done on this field type', 'ya-opts'),
//						'desc' => __('This is the description field, again good for additional info.', 'ya-opts'),
//						'std' => '0'// 1 = on | 0 = off
//					),
//				array(
//						'id' => 'navbar_logo',
//						'type' => 'upload',
//						'title' => __('Use Logo for Branding', 'ya-opts'),
//						'std' => get_template_directory_uri().'/assets/img/logo.png'
//					),
				array(
						'id' => 'menu_type',
						'type' => 'select',
						'title' => __('Menu Type', 'ya-opts'),
						'options' => array( 'dropdown' => 'Dropdown Menu', 'mega' => 'Mega Menu' ),
						'std' => 'dropdown'
					),
			)
	);
	
$options[] = array(
		'title' => __('Layout', 'ya-opts'),
		'desc' => __('<p class="description">Ya Framework comes with a layout setting that allows you to build any number of stunning layouts and apply theme to your entries.</p>', 'ya-opts'),
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => YA_URL.'/options/img/glyphicons/glyphicons_160_imac.png',
		//Lets leave this as a blank section, no options just some intro text set above.
		'fields' => array(
				array(
						'id' => 'theme_layout',
						'type' => 'radio_img',
						'title' => __('Content Layout', 'ya-opts'),
						'options' => array(
								'no' => array('title' => 'No Sidebar', 'img' => YA_URL.'/options/img/no.png'),
								'lm' => array('title' => 'Left Main', 'img' => YA_URL.'/options/img/lm.png'),
								'mr' => array('title' => 'Main Right', 'img' => YA_URL.'/options/img/mr.png'),
								'lrm' => array('title' => 'Left Right Main', 'img' => YA_URL.'/options/img/lrm.png'),
								'mlr' => array('title' => 'Main Left Right', 'img' => YA_URL.'/options/img/mlr.png'),
								'lmr' => array('title' => 'Left Main Right', 'img' => YA_URL.'/options/img/lmr.png'),
							),//Must provide key => value(array:title|img) pairs for radio options
						'sub_desc' => 'Select layout to display',
						'desc' => '',
						'std' => 'mr',
					),
				array(
						'id' => 'sidebar_left_expand',
						'type' => 'select',
						'title' => __('Left Sidebar Expand', 'ya-opts'),
						'options' => array(
								'2' => '2/12',
								'3' => '3/12',
								'4' => '4/12',
								'5' => '5/12',
								'6' => '6/12',
								'7' => '7/12',
								'8' => '8/12'
							),
						'std' => '4',
						'sub_desc' => 'Select width of left sidebar.',
					),
				array(
						'id' => 'sidebar_right_expand',
						'type' => 'select',
						'title' => __('Right Sidebar Expand', 'ya-opts'),
						'options' => array(
								'2' => '2/12',
								'3' => '3/12',
								'4' => '4/12',
								'5' => '5/12',
								'6' => '6/12',
								'7' => '7/12',
								'8' => '8/12'
							),
						'std' => '4',
						'sub_desc' => 'Select width of right sidebar.',
					),
			)
	);
		
	
$options[] = array(
		'title' => __('Typography', 'ya-opts'),
		'desc' => __('<p class="description">Change the font style of your blog, custom with Google Font.</p>', 'ya-opts'),
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => YA_URL.'/options/img/glyphicons/glyphicons_116_text_bigger.png',
		//Lets leave this as a blank section, no options just some intro text set above.
		'fields' => array(
				array(
						'id' => 'google_webfonts',
						'type' => 'text',
						'title' => __('Use Google Webfont', 'ya-opts'),
						'sub_desc' => 'Insert font style that you actually need on your webpage.',
						'std' => ''
					),
				array(
						'id' => 'webfonts_weight',
						'type' => 'select',
						'sub_desc' => 'For weight, see Google Fonts to custom for each font style.',
						'title' => __('Webfont Weight', 'ya-opts'),
						'options' => array(
								'200' => '200',
								'300' => '300',
								'400' => '400',
								'600' => '600',
								'700' => '700',
								'800' => '800',
								'900' => '900'
							),
						'std' => ''
					),
				array(
						'id' => 'webfonts_character_set',
						'title' => __( 'Webfont Character Set', 'ya-opts' ),
						'type' => 'select',
						'sub_desc' => 'Select the character sets you want.',
						'options' => array(
								'cyrillic'     => __( 'Cyrillic',          'ya-opts' ),
								'cyrillic-ext' => __( 'Cyrillic Extended', 'ya-opts' ),
								'greek'        => __( 'Greek',             'ya-opts' ),
								'greek-ext'    => __( 'Greek Extended',    'ya-opts' ),
								'latin'        => __( 'Latin',             'ya-opts' ),
								'latin-ext'    => __( 'Latin Extended',    'ya-opts' ),
								'vietnamese'   => __( 'Vietnamese',        'ya-opts' )
							),
						'std' => ''
					),
				array(
						'id' => 'webfonts_assign',
						'type' => 'select',
						'title' => __( 'Webfont Assign to', 'ya-opts' ),
						'sub_desc' => 'Select the place will apply the font style headers, every where or custom.',
						'options' => array(
								'headers' => __( 'Headers',    'yatheme' ),
								'all'     => __( 'Everywhere', 'yatheme' ),
								'custom'  => __( 'Custom',     'yatheme' )
							)
				 	),
				 array(
				 		'id' => 'webfonts_custom',
				 		'type' => 'text',
						'sub_desc' => 'Insert the places will be custom here, after selected custom Webfont assign.',
				 		'title' => __( 'Webfont Custom Selector', 'ya-opts' )
				 	),
			)
	);

$options[] = array(
		'title' => __('Social share', 'ya-opts'),
		'desc' => __('<p class="description">Social sharing is ready to use and built in. You can share your pages with just a click and your post can go to their wall and you can gain vistitors from Social Networks. Check Social Networks that you want to use.</p>', 'ya-opts'),
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => YA_URL.'/options/img/glyphicons/glyphicons_043_group.png',
		//Lets leave this as a blank section, no options just some intro text set above.
		'fields' => array(
				array(
						'id' => 'social-share',
						'title' => __( '<div class="social-share">Social share</div>', 'ya-opts' ),
						'type' => 'checkbox',
						'sub_desc' => '',
						'desc' => '',
						'std' => '0'
					),
				array(
						'id' => 'social-share-fb',
						'title' => '<div class="social-share">' . __( 'Facebook', 'ya-opts' ).'</div>',//__( 'Facebook', 'ya-opts' ),
						'type' => 'checkbox',
						'sub_desc' => '',
						'desc' => '',
						'std' => '1',
					),
				array(
						'id' => 'social-share-tw',
						'title' => '<div class="social-share">' . __( 'Twitter', 'ya-opts' ).'</div>',//__( 'Facebook', 'ya-opts' ),
						'type' => 'checkbox',
						'sub_desc' => '',
						'desc' => '',
						'std' => '1',
					),
				array(
						'id' => 'social-share-in',
						'title' => '<div class="social-share">'. __( 'Linked', 'ya-opts' ).'</div>',//__( 'Facebook', 'ya-opts' ),
						'type' => 'checkbox',
						'sub_desc' => '',
						'desc' => '',
						'std' => '1',
					),
				array(
						'id' => 'social-share-go',
						'title' => '<div class="social-share">'. __( 'Google+', 'ya-opts' ).'</div>',//__( 'Facebook', 'ya-opts' ),
						'type' => 'checkbox',
						'sub_desc' => '',
						'desc' => '',
						'std' => '1',
					),
//				array(
//						'id' => 'social-share-pi',
//						'title' => '<div class="social-share">Pinterest</div>',//__( 'Facebook', 'ya-opts' ),
//						'type' => 'checkbox',
//						'sub_desc' => '',
//						'desc' => '',
//						'std' => '1',
//					)
					
			)
	);

$options[] = array(
		'title' => __('Advanced', 'ya-opts'),
		'desc' => __('<p class="description">Custom advanded with Cpanel, Widget advanded, Developer mode </p>', 'ya-opts'),
		//all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones.
		//You dont have to though, leave it blank for default.
		'icon' => YA_URL.'/options/img/glyphicons/glyphicons_310_flower.png',
		//Lets leave this as a blank section, no options just some intro text set above.
		'fields' => array(
				array(
						'id' => 'show_cpanel',
						'title' => __( 'Show cPanel', 'yatheme' ),
						'type' => 'checkbox',
						'sub_desc' => 'Turn on/off Cpanel',
						'desc' => '',
						'std' => ''
					),
				array(
						'id' => 'widget-advanced',
						'title' => __('Widget Advanced', 'ya-opts'),
						'type' => 'checkbox',
						'sub_desc' => 'Turn on/off Widget Advanced',
						'desc' => '',
						'std' => '1'
					),
				array(
						'id' => 'developer_mode',
						'title' => __( 'Developer Mode', 'ya-opts' ),
						'type' => 'checkbox',
						'sub_desc' => 'Turn on/off preset',
						'desc' => '',
						'std' => '0'
					),
				array(
						'id' => 'google_analytics_id',
						'type' => 'text',
						'sub_desc' => 'Enter Google Analytics code',
						'title' => __( 'Google Analytics ID', 'ya-opts' ),
				 	),
				array(
						'id' => 'advanced_head',
						'type' => 'textarea',
						'sub_desc' => 'Insert your own CSS into this block. This overrides all default styles located throughout the theme',
						'title' => __( 'Custom CSS/JS', 'ya-opts' )
				 	)
			)
	);

$options_args = array();

//Setup custom links in the footer for share icons
$options_args['share_icons']['facebook'] = array(
		'link' => 'https://www.facebook.com',
		'title' => 'Facebook',
		'img' => YA_URL.'/options/img/glyphicons/glyphicons_320_facebook.png'
);
$options_args['share_icons']['twitter'] = array(
		'link' => 'https://twitter.com',
		'title' => 'Folow me on Twitter',
		'img' => YA_URL.'/options/img/glyphicons/glyphicons_322_twitter.png'
);
$options_args['share_icons']['linked_in'] = array(
		'link' => 'http://www.linkedin.com',
		'title' => 'Find me on LinkedIn',
		'img' => YA_URL.'/options/img/glyphicons/glyphicons_337_linked_in.png'
);

//Choose to disable the import/export feature
// $options_args['show_import_export'] = true;

//Choose a custom option name for your theme options, the default is the theme name in lowercase with spaces replaced by underscores
$options_args['opt_name'] = 'framework';

$options_args['google_api_key'] = '';//must be defined for use with google webfonts field type

//Custom menu icon
//$options_args['menu_icon'] = '';

//Custom menu title for options page - default is "Options"
$options_args['menu_title'] = __('Theme Options', 'ya-opts');

//Custom Page Title for options page - default is "Options"
$options_args['page_title'] = __('YA Options :: ', 'ya-opts') . wp_get_theme()->get('Name');

//Custom page slug for options page (wp-admin/themes.php?page=***) - default is "ya_theme_options"
$options_args['page_slug'] = 'ya_theme_options';

//Custom page capability - default is set to "manage_options"
//$options_args['page_cap'] = 'manage_options';

//page type - "menu" (adds a top menu section) or "submenu" (adds a submenu) - default is set to "menu"
$options_args['page_type'] = 'submenu';

//parent menu - default is set to "themes.php" (Appearance)
//the list of available parent menus is available here: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters
//$options_args['page_parent'] = 'themes.php';

//custom page location - default 100 - must be unique or will override other items
$options_args['page_position'] = 27;
	
$widget_areas = array(
	array(
			'name' => __('Sidebar Left', 'yatheme'),
			'id'   => 'left',
			'before_widget' => '<section class="sidebar-left widget %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	),
	array(
			'name' => __('Sidebar Right', 'yatheme'),
			'id'   => 'right',
			'before_widget' => '<section class="sidebar-right widget %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	),
	array(
			'name' => __('Banner', 'yatheme'),
			'id'   => 'banner',
			'before_widget' => '<section class="sidebar-banner widget %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	),
// 	array(
// 			'name' => __('Primary Sidebar', 'yatheme'),
// 			'id'   => 'primary',
// 	),
	array(
			'name' => __('Above Content', 'yatheme'),
			'id'   => 'above',
			'before_widget' => '<section class="sidebar-above widget %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	),
	array(
			'name' => __('Below Content', 'yatheme'),
			'id'   => 'below',
			'before_widget' => '<section class="sidebar-below widget %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	),
	array(
			'name' => __('Bottom', 'yatheme'),
			'id'   => 'bottom',
			'before_widget' => '<section class="widget span3 %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	),
	array(
			'name' => __('Footer', 'yatheme'),
			'id'   => 'footer',
			'before_widget' => '<section class="sidebar-footer widget %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	),
	array(
			'name' => __('Floating', 'yatheme'),
			'id'   => 'floating',
			'before_widget' => '<section class="sidebar-floating widget %1$s %2$s"><div class="widget-inner">',
			'after_widget'  => '</div></section>',
			'before_title'  => '<h3>',
			'after_title'   => '</h3>'
	)
);
