<?php
/**
 * A unique identifier is defined to store the options in the database and reference them from the theme.
 */
function optionsframework_option_name() {

	$themename = get_option( 'stylesheet' );
	$themename = preg_replace("/\W/", "_", strtolower($themename) );
	if( is_child_theme() ){	
		$themename = str_replace("_child","",$themename );
		}
	$themename_lan = $themename;
	
	if( defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE != 'en' )
	$themename = $themename.'_'.ICL_LANGUAGE_CODE;
	
	if(function_exists('pll_current_language')){
	$default_lan = pll_default_language('slug');
	$current_lan = pll_current_language('slug');
	if($current_lan !='' && $default_lan != $current_lan)
	$themename_lan = $themename.'_'.$current_lan;
	}
	return $themename_lan;
}


/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the 'id' fields, make sure to use all lowercase and no spaces.
 *
 * If you are making your theme translatable, you should replace 'options_framework_theme'
 * with the actual text domain for your theme.  Read more:
 * http://codex.wordpress.org/Function_Reference/load_theme_textdomain
 */

function optionsframework_options() {


    $imagepath =  get_template_directory_uri() . '/images/';
	 
	// Background Defaults
	$background_defaults = array(
		'color' => '',
		'image' => '',
		'repeat' => 'repeat',
		'position' => 'top center',
		'attachment'=>'scroll' );

	// Typography Defaults
	$typography_defaults = array(
		'size' => '15px',
		'face' => 'georgia',
		'style' => 'bold',
		'color' => '#bada55' );

	// Typography Options
	$typography_options = array(
		'sizes' => array( '6','12','14','16','20' ),
		'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
		'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),
		'color' => false
	);
   $blog_background = array(
		'color' => '',
		'image' => $imagepath.'blog-background.jpg',
		'repeat' => 'repeat-y',
		'position' => 'top left',
		'attachment'=>'fixed');
   

	

	$options     = array();
    $section_num = of_get_option( 'section_num', 4 );
	
	$options[] = array(
		'name' => __('Basic Settings', 'singlepage'),
		'type' => 'heading');
	
	$options[] = array(
		'name' => __('Google Map API Key', 'singlepage'),
		'id' => 'gmap_api_key',
		'std' => '',
		'type' => 'text');

	$options[] = array(
		'name' => __('Upload Logo', 'singlepage'),
		'id' => 'logo',
		'std' => '',
		'type' => 'upload');
		
	
	$options[] = array(
		'name' => __('404 Page Content', 'singlepage'),
		'id' => 'page_404_content',
		'std' => '<div class="text-center">
                                    <img class="img-404" src="'.$imagepath .'404.png" alt="404 not found" />
                                    <br/> <br/>
                                    <a href="'.esc_url(home_url("/")).'"><i class="fa fa-home"></i> Please, return to homepage!</a>
                                    </div>',
		'type' => 'editor');
	
	$options[] = array(
		'name' => __('Custom CSS', 'singlepage'),
		'desc' => __('The following css code will add to the header before the closing &lt;/head&gt; tag.', 'singlepage'),
		'id' => 'custom_css',
		'std' => 'body{margin:0px;}',
		'type' => 'textarea');
	
		
     $options[] = array(
		'name' => __('Home Page', 'singlepage'),
		'type' => 'heading');
	 
	/* $options[] = array(
		'name' => __('Enable Featured Homepage', 'singlepage'),
		'desc' => sprintf(__('Active featured homepage Layout.  The standardized way of creating Static Front Pages: <a href="%s" target="_blank">Creating a Static Front Page</a>', 'singlepage'),esc_url('http://codex.wordpress.org/Creating_a_Static_Front_Page')),
		'id' => 'enable_home_page',
		'std' => '1',
		'type' => 'checkbox');*/
	 
     $options[] = array(
		'name' => __( 'Section Height Mode ( Desktop & Tablet )', 'singlepage' ),
		'desc' => '',
		'id' => 'section_height_mode',
		'std' => '1',
		'type' => 'radio',
		'options' => array(
						1=> __( 'One Section per Screen', 'singlepage' ),
						2=> __( 'Section Height Extensible', 'singlepage' ),
						   )
		);
	 
	  $options[] = array(
		'name' => __( 'Section Height Mode on Mobile', 'singlepage' ),
		'desc' => '',
		'id' => 'section_height_mode_mobile',
		'std' => '2',
		'type' => 'radio',
		'options' => array(
						1=> __( 'One Section per Screen', 'singlepage' ),
						2=> __( 'Section Height Extensible', 'singlepage' ),
						   )
		);
	  
	 
	  $options[] = array(
		'name' => __('Hide Side Navigation', 'singlepage'),
		'desc' => __('Hide home page scroll bar.', 'singlepage'),
		'id' => 'hide_scroll_bar',
		'std' => '0',
		'type' => 'checkbox');
	  
	
	

	 
	 $background_sections = array("0"=>__('Disable', 'singlepage'));
		if( is_numeric( $section_num ) ){
		for($i=1; $i <= $section_num; $i++){
			$background_sections[$i] = sprintf(__('Secion %d', 'singlepage'),$i);
			}
		}
		// YouTube Video Background Options 
		
		
		  $options[] = array(	'desc' =>'<div class="options-section"><h3 class="groupTitle">'.__('YouTube Video Background Options', 'singlepage').'</h3>',	'class' => 'toggle_option_group group_close','type' => 'info');
		 
	    $options[] = array('name' => __('YouTube Video', 'singlepage'),'id' => 'youtube_video','type' => 'text','std'=>'r1xohS2u69E' ,"desc"=>__('Insert here the ID or the complete URL of the YouTube video','singlepage'));
		
		
		$options[] = array(	'name' => __('Video Loop', 'singlepage'),	'id' => 'youtube_video_loop','std' => 'true','class' => 'mini','options' => array('true'=>__('yes', 'singlepage'),'false'=>__('no', 'singlepage')),	'type' => 'select');
		
		$options[] = array(	'name' => __('Mute', 'singlepage'),	'id' => 'youtube_video_mute','std' => 'true','class' => 'mini','options' => array('true'=>__('yes', 'singlepage'),'false'=> __('no', 'singlepage')),	'type' => 'select');
		
		$options[] = array(	'name' => __('Show Controls', 'singlepage'),	'id' => 'youtube_show_controls','std' => 'false','class' => 'mini','options' => array('true'=>__('yes', 'singlepage'),'false'=> __('no', 'singlepage')),	'type' => 'select');
		
		$options[] = array('name' => __('Starts At', 'singlepage'),'id' => 'youtube_start_at','type' => 'text','std'=>'10' ,"desc"=>'');
		
		$options[]  = array('name' => __('Video Background Section', 'singlepage'),'std' => '0','class' => 'mini','id' => 'youtube_video_background_section',
		'type'  => 'select','options'=>$background_sections);
		

		$options[] = array('desc' => '</div>',	'class' => 'toggle_title','type' => 'info');
		
		
		//// HTML5 Video Background Options 
	     
		  $options[] = array(	'desc' =>'<div class="options-section"><h3 class="groupTitle">'.__('HTML5 Video Background Options', 'singlepage').'</h3>',	'class' => 'toggle_option_group group_close','type' => 'info');
		 
	    $options[] = array('name' => __('mp4 video url', 'singlepage'),'id' => 'mp4_video_url','type' => 'text','std'=>'' ,"desc"=>__('For Android devices, Internet Explorer 9, Safari','singlepage'));
		$options[] = array('name' => __('ogv video url', 'singlepage'),'id' => 'ogv_video_url','type' => 'text','std'=>'',"desc"=>__('For Google Chrome, Mozilla Firefox, Opera ','singlepage'));
		$options[] = array('name' => __('webm video url', 'singlepage'),'id' => 'webm_video_url','type' => 'text','std'=>'',"desc"=>__('For Google Chrome, Mozilla Firefox, Opera ','singlepage'));
		$options[] = array('name' => __('poster', 'singlepage'),'id' => 'poster_url','type' => 'upload','std'=>'',"desc"=>__('Displaying the image for browsers that don\'t support the HTML5 Video element.','singlepage'));
		$options[] = array(	'name' => __('Video Loop', 'singlepage'),	'id' => 'video_loop','std' => '1','class' => 'mini','options' => array('1'=>'yes','0'=>'no'),	'type' => 'select');
		$options[] = array(	'name' => __('Video Volume', 'singlepage'),	'id' => 'video_volume','std' => '0.8','class' => 'mini','options' => array('0.001'=>'0','0.1'=>'0.1','0.2'=>'0.2','0.3'=>'0.3','0.4'=>'0.4','0.5'=>'0.5','0.6'=>'0.6','0.7'=>'0.7','0.8'=>'0.8','0.9'=>'0.9','1.0'=>'1.0'),	'type' => 'select');
		
		
		$options[]  = array('name' => __('Video Background Section', 'singlepage'),'std' => '0','class' => 'mini','id' => 'video_background_section',
		'type'  => 'select','options'=>$background_sections);
		
		$options[] = array('desc' => '</div>',	'class' => 'toggle_title','type' => 'info');
		//// End HTML5 Video Background Options 
		
		 //// full screen google map 
	 
		  $options[] = array(	'desc' =>'<div class="options-section"><h3 class="groupTitle">'.__('Full Screen Google Map Options', 'singlepage').'</h3>',	'class' => 'toggle_option_group group_close','type' => 'info');
		 
	   
		$options[] = array(	'name' => __('Address', 'singlepage'),	'id' => 'google_map_address','std' => 'Sydney, NSW','class' => 'mini','type' => 'text');
		$options[] = array(	'name' => __('Zoom', 'singlepage'),	'id' => 'google_map_zoom','std' => '10','class' => 'mini','std'=>'10','type' => 'text');
		
		$options[]  = array('name' => __('Google Map Section', 'singlepage'),'std' => '0','class' => 'mini','id' => 'google_map_section',
		'type'  => 'select','options'=>$background_sections);
		
		$options[] = array('desc' => __('</div>', 'singlepage'),	'class' => 'toggle_title','type' => 'info');
		//// End full screen google map Options
		
		// home page sidebar menu options
		$options[] = array(	'desc' =>'<div class="options-section"><h3 class="groupTitle">'.__('Home Page Sidebar Menu Options', 'singlepage').'</h3>',	'class' => 'toggle_option_group group_close','type' => 'info');
		$options[] = array(	'name' => __('Menu Style ( Desktop )', 'singlepage'),'id' => 'menu_style_desktop','std' => '1','class' => 'mini','options' => array('1'=>'Style 1','2'=>'Style 2'),'type' => 'select');
		
		$options[] = array(	'name' => __('Menu Style Status ( Desktop )', 'singlepage'),'id' => 'menu_status_desktop','std' => 'open','class' => 'mini','options' => array('open'=>'open','close'=>'close'),'type' => 'select');
		
		
		$options[] = array(	'name' => __('Menu Style ( Tablet )', 'singlepage'),'id' => 'menu_style_tablet','std' => '1','class' => 'mini','options' => array('1'=>'Style 1','2'=>'Style 2'),'type' => 'select');
		
		$options[] = array(	'name' => __('Menu Style Status ( Tablet )', 'singlepage'),'id' => 'menu_status_tablet','std' => 'open','class' => 'mini','options' => array('open'=>'open','close'=>'close'),'type' => 'select');
		
		$options[] = array(	'name' => __('Menu Style ( Mobile )', 'singlepage'),'id' => 'menu_style_mobile','std' => '2','class' => 'mini','options' => array('1'=>'Style 1','2'=>'Style 2'),'type' => 'select');
		
		$options[] = array(	'name' => __('Menu Style Status ( Mobile )', 'singlepage'),'id' => 'menu_status_mobile','std' => 'close','class' => 'mini','options' => array('open'=>'open','close'=>'close'),'type' => 'select');
		
		
		$options[] = array('desc' => '</div>',	'class' => 'toggle_title','type' => 'info');
		
		// end page sidebar menu options
		
	  $options[] = array(
		'name' => __('Number of Sections', 'singlepage'),
		'desc' => __('Select number of sections', 'singlepage'),
		'id' => 'section_num',
		'type' => 'select',
		'class' => 'mini',
		'std' => '4',
		'options' => array_combine(range(1,4), range(1,4)) );
		
	 $options[] = array('name' => __('Scrolling Delay', 'singlepage'),'class'=>'mini','id' => 'scrolldelay','type' => 'text','std'=>'700','desc'=> '');
		
	 
	 $section_menu_title              = array("SECTION ONE","SECTION TWO","SECTION THREE","SECTION FOUR");
	 $section_menu_slug               = array("section-one","section-two","section-three","section-four");
	 $section_content_color      = array("#ffffff","#ffffff","#ffffff","#ffffff");
	 $section_css_class          = array("","","","");
	 $section_background_size    = array("yes","no","no","yes");
	 
	 $section_background = array(
	     array(
		'color' => '',
		'image' => $imagepath.'bg_01.jpg',
		'repeat' => 'repeat',
		'position' => 'top left',
		'attachment'=>'scroll' ),
		 array(
		'color' => '#152431',
		'image' => '',
		'repeat' => 'repeat',
		'position' => 'top left',
		'attachment'=>'scroll' ),
		 array(
		'color' => '#D73E4D',
		'image' => '',
		'repeat' => 'repeat',
		'position' => 'top left',
		'attachment'=>'scroll' ),
		 array(
		'color' => '#375099',
		'image' => '',
		'repeat' => 'repeat',
		'position' => 'top left',
		'attachment'=>'scroll' )
		 );
	 $section_image     = array(
								$imagepath.'1.png',
								$imagepath.'2.png',
							    $imagepath.'3.png',
								$imagepath.'4.png'
								);
	 
	 $section_content   = array('<p><h1 class="section-title">Impressive Design</h1><br>
<ul>
	<li>Elegans Lorem Ratio amoena</li>
	<li>fons et oculorum captans iconibus</li>
	<li> haec omnia faciant ad melioris propositi vestri website</li>
</ul><br/>
<a href="#" class="btn btn-white btn-outline btn-lg"> Buy Now </a>

<a href="#" class="btn btn-warning btn-lg" >Download </a>
</p>',
		'<p><h1 class="section-title">Responsive Layout</h1><br>
</p>',
			'<p><h1 class="section-title">Flexibility</h1><br>
<ul>
	<li>Lorem ipsum dolor sit amet</li>
	<li>consectetur adipiscingelit</li>
	<li>Integer sed magna vel </li>
	<li>Dapibus ege-stas turpis.</li>
</ul>
</p>',
		'<p><h1 class="section-title">Continuous  Support</h1><br>
<ul>
	<li>Lorem ipsum dolor sit amet</li>
	<li>consectetur adipiscingelit</li>
	<li>Integer sed magna vel velit</li>
	<li>Dapibus ege-stas turpis.</li>
</ul>
</p>' );
	     
	   $options[] = array(	'desc' => '<div class="home-sections">', 'class' => '','id'=>'home-sections','type' => 'info');
	 		for($i=0; $i < $section_num; $i++){
		
		if(!isset($section_title[$i])){$section_title[$i] = "";}
		if(!isset($section_menu[$i])){$section_menu[$i] = "";}
		if(!isset($section_background[$i])){$section_background[$i] = array('color' => '',
		'image' => '',
		'repeat' => '',
		'position' => '',
		'attachment'=>'');}
		if(!isset($section_css_class[$i])){$section_css_class[$i] = "";}
		if(!isset($section_content[$i])){$section_content[$i] = "";}
		if(!isset($section_title_color[$i])){$section_title_color[$i] = "";}
		if(!isset($section_title_border_color[$i])){$section_title_border_color[$i] = "";}
		
		
		
		$holder_title = of_get_option('section_menu_title_'.$i)?of_get_option('section_menu_title_'.$i):sprintf(__('Section %s', 'singlepage'),($i+1));
	
		$options[] = array(	'desc' => '<div class="options-section"><h3 class="groupTitle"><i class="fa fa-arrows"></i>  '.$holder_title.'</h3>', 'class' => 'toggle_option_group home-section group_close','type' => 'info');
		
		$options[] = array(
		'name' => '',
		'desc' => '<div style="overflow:hidden; background-color:#eee;"><a data-section="'.$i.'" href="javascript:;" class="delete-section" style="float:right;" title="'.__('Delete This Section', 'singlepage').'"><i class="fa fa-trash"></i> '.__('Delete this section', 'singlepage').'</a></div>',
		'id' => 'delete_section_'.$i,
		'std' => '',
		'type' => 'info',
		'class'=>'section-item section-delete-button');
		
		$options[] = array('name' => __('Section Full Width', 'singlepage'),'id' => 'section_full_width_'.$i.'','type' => 'checkbox','std'=>'','desc'=>__('Section container no padding', 'singlepage'));
		
		$options[] = array('name' => __('Section Menu Title', 'singlepage'),'id' => 'section_menu_title_'.$i.'','type' => 'text','std'=>$section_menu_title[$i]);
		$options[] = array('name' => __('Section Menu Slug', 'singlepage'),'id' => 'section_menu_slug_'.$i.'','type' => 'text','std'=>$section_menu_slug[$i]);
		
		$options[] = array( 'name' => __('Section Content Typography', 'singlepage'),

			'id' => 'section_content_typography_'.$i,
			'std' => array( 'size' => '14px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'),
			'type' => 'typography',
			'options' => array(
			'faces' =>  singlepage_options_typography_get_os_fonts(),
			'styles' => false )
			  );

		
		//$options[] = array('name' => __('Content Color', 'singlepage'),'id' => 'section_content_color_'.$i.'','type' => 'color','std'=>$section_content_color[$i]);
		
	    $options[] = array('name' =>  __('Section Background ( Desktop )', 'singlepage'),'id' => 'section_background_'.$i.'','std' => $section_background[$i],'type' => 'background' );
		$options[] = array('name' =>  __('Section Background ( Tablet )', 'singlepage'),'id' => 'section_background_tablet_'.$i.'','std' => array(
		'color' => '',
		'image' => '',
		'repeat' => 'repeat',
		'position' => 'top left',
		'attachment'=>'scroll' )
		 ,'type' => 'background' );
		$options[] = array('name' =>  __('Section Background ( Mobile )', 'singlepage'),'id' => 'section_background_mobile_'.$i.'','std' => array(
		'color' => '',
		'image' => '',
		'repeat' => 'repeat',
		'position' => 'top left',
		'attachment'=>'scroll' )
		 ,'type' => 'background' );
		
	   $options[] = array('name' => __('100% Width Background Image', 'singlepage'),'std' => $section_background_size[$i],'id' => 'background_size_'.$i.'','type' => 'select','class'=>'mini','options'=>array("no"=>"no","yes"=>"yes"));
	   $options[] = array('name' => __('Section Css Class', 'singlepage'),'id' => 'section_css_class_'.$i.'','type' => 'text','std'=>$section_css_class[$i]);
	   $options[] = array('name' => __('Content Image', 'singlepage'),'id' => 'section_image_'.$i,	'std' =>  $section_image[$i],'type' => 'upload');
	   $options[] = array('name' => __('Content Image Link', 'singlepage'),'id' => 'section_image_link_'.$i.'','type' => 'text','std'=>'');
	   
	   $options[] = array('name' => __('Content Image Link Target', 'singlepage'),'std' => '','id' => 'section_image_link_target_'.$i.'','type' => 'select','class'=>'mini','options'=>array("_blank"=>"blank","_self"=>"self"));
	   
	   
	   $options[] = array('name' => __('Section Content', 'singlepage'),'id' => 'section_content_'.$i,'class'=>'home-section-editor','std' => $section_content[$i],'type' => 'editor','desc'=>__('If you have reordered the sections and found the section content is blank or can not be edited, please click the "Save Options" button to save options before you edit section content.', 'singlepage'));
	   $options[] = array('name' =>  __('Section Content Background', 'singlepage'),'id' => 'section_content_background_'.$i,'std' => '','type' => 'color' );
	   $options[] = array(	'name' => __('Opacity', 'singlepage'),	'id' => 'opacity_'.$i,'std' => '0.5','class' => 'mini','options' => array('0.1'=>'0.1','0.2'=>'0.2','0.3'=>'0.3','0.4'=>'0.4','0.5'=>'0.5','0.6'=>'0.6','0.7'=>'0.7','0.8'=>'0.8','0.9'=>'0.9','1.0'=>'1.0'),	'type' => 'select');
	   $options[] = array('name' => __('Section Content Border Radius', 'singlepage'),'id' => 'border_radius_'.$i,'std'=>'10px','class' => 'mini','type' => 'text');
	   
	   $options[] = array('desc' => '</div>','class' => 'toggle_title','type' => 'info');
	
		}
		
		 $options[] = array( 'desc' => '</div>', 'class' => '','type' => 'info');
		 
		 
		$options[] = array(
		'name' => __('Featured Homepage Sidebar', 'singlepage'),
		'id' => 'featured_homepage_sidebar',
		'std' => '<div class="social-networks"><ul class="unstyled inline">
  <li class="facebook  display-icons"> <a rel="external" title="facebook" href="#"> <i class="fa fa-facebook fa-2x">&nbsp;</i> </a> </li>
  <li class="twitter  display-icons"> <a rel="external" title="twitter" href="#"> <i class="fa fa-twitter fa-2x">&nbsp;</i> </a> </li>
  <li class="flickr  display-icons"> <a rel="external" title="flickr" href="#"> <i class="fa fa-flickr fa-2x">&nbsp;</i> </a> </li>
  <li class="rss  display-icons"> <a rel="external" title="rss" href="#"> <i class="fa fa-rss fa-2x">&nbsp;</i> </a> </li>
  <li class="google-plus  display-icons"> <a rel="external" title="google-plus" href="#"> <i class="fa fa-google-plus fa-2x">&nbsp;</i> </a> </li>
  <li class="youtube  display-icons"> <a rel="external" title="youtube" href="#"> <i class="fa fa-youtube fa-2x">&nbsp;</i> </a> </li>
</ul></div>',
		'type' => 'editor');
		
		 
	 
	 	$options[] = array('name' => __('Content Container Width', 'singlepage'),'class'=>'mini','id' => 'content_container_width_768','type' => 'text','std'=>'70%','desc'=> __('Extra small devices Phones (<768px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Left', 'singlepage'),'class'=>'mini','id' => 'content_container_left_768','type' => 'text','std'=>'30%','desc'=> __('Extra small devices Phones (<768px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Top', 'singlepage'),'class'=>'mini','id' => 'content_container_top_768','type' => 'text','std'=>'15%','desc'=> __('Extra small devices Phones (<768px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Padding', 'singlepage'),'class'=>'mini','id' => 'content_container_padding_768','type' => 'text','std'=>'10px','desc'=> __('Extra small devices Phones (<768px)', 'singlepage'));
	
	$options[] = array('name' => __('Content Container Width', 'singlepage'),'class'=>'mini','id' => 'content_container_width_992','type' => 'text','std'=>'60%','desc'=> __('Small devices Tablets (<992px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Left', 'singlepage'),'class'=>'mini','id' => 'content_container_left_992','type' => 'text','std'=>'21%','desc'=> __('Extra small devices Phones ( <992px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Top', 'singlepage'),'class'=>'mini','id' => 'content_container_top_992','type' => 'text','std'=>'15%','desc'=> __('Extra small devices Phones ( <992px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Padding', 'singlepage'),'class'=>'mini','id' => 'content_container_padding_992','type' => 'text','std'=>'20px','desc'=> __('Extra small devices Phones (<992px)', 'singlepage'));
	
	
	$options[] = array('name' => __('Content Container Width', 'singlepage'),'class'=>'mini','id' => 'content_container_width_1200','type' => 'text','std'=>'50%','desc'=> __('Medium devices Desktops (<1200px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Left', 'singlepage'),'class'=>'mini','id' => 'content_container_left_1200','type' => 'text','std'=>'21%','desc'=> __('Medium devices Desktops (<1200px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Top', 'singlepage'),'class'=>'mini','id' => 'content_container_top_1200','type' => 'text','std'=>'15%','desc'=> __('Medium devices Desktops (<1200px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Padding', 'singlepage'),'class'=>'mini','id' => 'content_container_padding_1200','type' => 'text','std'=>'20px','desc'=> __('Medium devices Desktops (<1200px)', 'singlepage'));
	
	$options[] = array('name' => __('Content Container Width', 'singlepage'),'class'=>'mini','id' => 'content_container_width_1200_r','type' => 'text','std'=>'50%','desc'=> __('Large devices Desktops (&#8805;1200px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Left', 'singlepage'),'class'=>'mini','id' => 'content_container_left_1200_r','type' => 'text','std'=>'21%','desc'=> __('Large devices Desktops (&#8805;1200px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Margin Top', 'singlepage'),'class'=>'mini','id' => 'content_container_top_1200_r','type' => 'text','std'=>'15%','desc'=> __('Large devices Desktops (&#8805;1200px)', 'singlepage'));
	$options[] = array('name' => __('Content Container Padding', 'singlepage'),'class'=>'mini','id' => 'content_container_padding_1200_r','type' => 'text','std'=>'20px','desc'=> __('Large devices Desktops (&#8805;1200px)', 'singlepage'));
	
	$options[] = array('name' =>  __('Homepage Footer Background', 'singlepage'),'id' => 'homepage_footer_background','std' =>$background_defaults,'type' => 'background' );

// FOOTER
	    $options[] = array('name' => __('Footer', 'singlepage'),'type' => 'heading');
	
	    $social_icons = array('fa fa-facebook'=>'facebook',
						  'fa fa-flickr'=>'flickr',
						  'fa fa-google-plus'=>'google plus',
						  'fa fa-linkedin'=>'linkedin',
						  'fa fa-pinterest'=>'pinterest',
						  'fa fa-twitter'=>'twitter',
						  'fa fa-tumblr'=>'tumblr',
						  'fa fa-digg'=>'digg',
						  'fa fa-rss'=>'rss',
						 
						  );
        for($i=0;$i<9;$i++){
			
	    $options[] = array("name" => sprintf(__('Social Icon #%s', 'singlepage'),($i+1)),	"id" => "social_icon_".$i,"std" => "","class" => 'mini',"type" => "select",	"options" => $social_icons );
		$options[] = array('name' => sprintf(__('Social Title #%s', 'singlepage'),($i+1)),'id' => 'social_title_'.$i,"class" => 'mini','type' => 'text');	
		$options[] = array('name' => sprintf(__('Social Link #%s', 'singlepage'),($i+1)),'id' => 'social_link_'.$i,'type' => 'text');	
		}

//Typography
		
		$options[] = array('name' => __('Typography', 'singlepage'),'type' => 'heading');
        $options[] = array('name' => __('Load Google Fonts', 'singlepage'),'class'=>'','id' => 'load_google_fonts','type' => 'text','std'=>'','desc'=> __('For example:  Open+Sans:300,400,700|Oswald', 'singlepage'));
	    $options[] = array('name' => __('Content Link Color', 'singlepage'),'id' => 'content_link_color','type' => 'color','std'=>'#666');
		$options[] = array('name' => __('Content Link Mouseover Color', 'singlepage'),'id' => 'content_link_hover_color','type' => 'color','std'=>'#fe8a02');
		
		$options[] = array( 'name' => __('Page Menu Typography', 'singlepage'),

			'desc' => __('Homepage and Pages Menu Typography.', 'singlepage'),
			'id' => 'page_menu_typography',
			'std' => array( 'size' => '14px', 'face' => 'Open Sans, sans-serif', 'color' => '#c2d5eb'),
			'type' => 'typography',
			'options' => array(
			'faces' => singlepage_options_typography_get_os_fonts(),
			'styles' => false )
			  );
		$options[] = array('name' => __('Page Menu Active Color', 'singlepage'),'id' => 'home_nav_menu_hover_color' ,'std' => '#ffffff','type'=> 'color');
		
		$options[] = array( 'name' => __('Blog Menu Typography', 'singlepage'),

			'desc' => __('Blog Menu Typography.', 'singlepage'),
			'id' => 'blog_menu_typography',
			'std' => array( 'size' => '14px', 'face' => 'Open Sans, sans-serif', 'color' => '#666666'),
			'type' => 'typography',
			'options' => array(
			'faces' => singlepage_options_typography_get_os_fonts(),
			'styles' => false )
			  );
		
		$options[] = array('name' => __('Blog Menu Active Color', 'singlepage'),'id' => 'blog_menu_hover_color' ,'std' => '#eeee22','type'=> 'color');
		
		$options[] = array( 'name' => __('Homepage Side Nav Menu Typography', 'singlepage'),

			'id' => 'homepage_side_nav_menu_typography',
			'std' => array( 'size' => '14px', 'face' => 'Open Sans, sans-serif', 'color' => '#ffffff'),
			'type' => 'typography',
			'options' => array(
			'faces' => singlepage_options_typography_get_os_fonts(),
			'styles' => false )
			  );
	     $options[] = array('name' => __('Side Nav Menu Active Color', 'singlepage'),'id' => 'home_side_nav_menu_active_color' ,'std' => '#23dd91','type'=> 'color');
		 
		 $options[] = array(
		'name' => __('Side Nav Circle Color', 'singlepage'),
		'desc' => '',
		'id' => "home_side_nav_circle_color",
		'std' => "nav_cur0",
		'type' => "images",
		'options' => array(
			'nav_cur0' => $imagepath . 'nav_cur0.png',
			'nav_cur1' => $imagepath . 'nav_cur1.png',
			'nav_cur2' => $imagepath . 'nav_cur2.png',
			'nav_cur3' => $imagepath . 'nav_cur3.png',
			'nav_cur4' => $imagepath . 'nav_cur4.png',
			'nav_cur5' => $imagepath . 'nav_cur5.png',
			'nav_cur6' => $imagepath . 'nav_cur6.png',
			'nav_cur7' => $imagepath . 'nav_cur7.png',
			'nav_cur8' => $imagepath . 'nav_cur8.png',
			'nav_cur9' => $imagepath . 'nav_cur9.png',
			'nav_cur10' => $imagepath . 'nav_cur10.png',
			'nav_cur11' => $imagepath . 'nav_cur11.png',
		)
	);
		 
		 
		 $options[] = array( 'name' => __('Pages & Posts Content Typography', 'singlepage'),

			'id' => 'page_post_content_typography',
			'std' => array( 'size' => '14px', 'face' => 'Open Sans, sans-serif', 'color' => '#555'),
			'type' => 'typography',
			'options' => array(
			'faces' => singlepage_options_typography_get_os_fonts(),
			'styles' => false )
			  );


	return $options;
}