<?php
/**
 * Framework options.
 * @package TimeTurner
 * @since TimeTurner 1.0.0
*/   
$timeturner_fonts = array(
			'' => 'default',	
			'Abel' => 'Abel',			
			'Aclonica' => 'Aclonica',
			'Actor' => 'Actor',
			'Adamina' => 'Adamina',
			'Aldrich' => 'Aldrich',
			'Alice' => 'Alice',
			'Alike' => 'Alike',
			'Allan' => 'Allan',
			'Allerta' => 'Allerta',
      'Amarante' => 'Amarante',
			'Amaranth' => 'Amaranth',
      'Andika' => 'Andika',
			'Antic' => 'Antic',
			'Arimo' => 'Arimo',	
			'Artifika' => 'Artifika',
			'Arvo' => 'Arvo',
			'Brawler' => 'Brawler',
			'Buda:light' => 'Buda',	
      'Butcherman' => 'Butcherman',	
			'Cantarell' => 'Cantarell',	
      'Cherry Swash' => 'Cherry Swash',				
			'Chivo' => 'Chivo',			
			'Coda' => 'Coda',	
      'Concert One' => 'Concert One',		
			'Copse' => 'Copse',
			'Corben:bold' => 'Corben',
			'Cousine' => 'Cousine',			
			'Coustard' => 'Coustard',
			'Covered By Your Grace' => 'Covered By Your Grace',
			'Crafty Girls' => 'Crafty Girls',
			'Crimson Text' => 'Crimson Text',
			'Crushed' => 'Crushed',
			'Cuprum' => 'Cuprum',
			'Damion' => 'Damion',
			'Dancing Script' => 'Dancing Script',
			'Dawning of a New Day' => 'Dawning of a New Day',
			'Days One' => 'Days One',
			'Delius' => 'Delius',
			'Delius Swash Caps' => 'Delius Swash Caps',
			'Delius Unicase' => 'Delius Unicase',
			'Didact Gothic' => 'Didact Gothic',
			'Dorsa' => 'Dorsa',
			'Droid Sans' => 'Droid Sans',
			'Droid Sans Mono' => 'Droid Sans Mono',
      'Droid Serif' => 'Droid Serif',
			'EB Garamond' => 'EB Garamond',
			'Expletus Sans' => 'Expletus Sans',
			'Fanwood Text' => 'Fanwood Text',
			'Federo' => 'Federo',
			'Fontdiner Swanky' => 'Fontdiner Swanky',
			'Forum' => 'Forum',
			'Francois One' => 'Francois One',
			'Gentium Basic' => 'Gentium Basic',
			'Gentium Book Basic' => 'Gentium Book Basic',
			'Geo' => 'Geo',
			'Geostar' => 'Geostar',
			'Geostar Fill' => 'Geostar Fill',
      'Gilda Display' => 'Gilda Display',
			'Give You Glory' => 'Give You Glory',
			'Gloria Hallelujah' => 'Gloria Hallelujah',
			'Goblin One' => 'Goblin One',
			'Goudy Bookletter 1911' => 'Goudy Bookletter 1911',
			'Gravitas One' => 'Gravitas One',
			'Gruppo' => 'Gruppo',
			'Hammersmith One' => 'Hammersmith One',
			'Holtwood One SC' => 'Holtwood One SC',
			'Homemade Apple' => 'Homemade Apple',
			'Inconsolata' => 'Inconsolata',
			'Indie Flower' => 'Indie Flower',
      'IM Fell English' => 'IM Fell English',
			'Irish Grover' => 'Irish Grover',
			'Irish Growler' => 'Irish Growler',
			'Istok Web' => 'Istok Web',
			'Judson' => 'Judson',
			'Julee' => 'Julee',
			'Just Another Hand' => 'Just Another Hand',
			'Just Me Again Down Here' => 'Just Me Again Down Here',
			'Kameron' => 'Kameron',
			'Kelly Slab' => 'Kelly Slab',
			'Kenia' => 'Kenia',
			'Kranky' => 'Kranky',
			'Kreon' => 'Kreon',
			'Kristi' => 'Kristi',
			'La Belle Aurore' => 'La Belle Aurore',
      'Lato' => 'Lato',
			'League Script' => 'League Script',
			'Leckerli One' => 'Leckerli One',
			'Lekton' => 'Lekton',
      'Lily Script One' => 'Lily Script One',
			'Limelight' => 'Limelight',
			'Lobster' => 'Lobster',
			'Lobster Two' => 'Lobster Two',
			'Lora' => 'Lora',
			'Love Ya Like A Sister' => 'Love Ya Like A Sister',
			'Loved by the King' => 'Loved by the King',
      'Lovers Quarrel' => 'Lovers Quarrel',
			'Luckiest Guy' => 'Luckiest Guy',
			'Maiden Orange' => 'Maiden Orange',
			'Mako' => 'Mako',
			'Marvel' => 'Marvel',
			'Maven Pro' => 'Maven Pro',
			'Meddon' => 'Meddon',
			'MedievalSharp' => 'MedievalSharp',
      'Medula One' => 'Medula One',
			'Megrim' => 'Megrim',
			'Merienda One' => 'Merienda One',
			'Merriweather' => 'Merriweather',
			'Metrophobic' => 'Metrophobic',
			'Michroma' => 'Michroma',
			'Miltonian Tattoo' => 'Miltonian Tattoo',
			'Miltonian' => 'Miltonian',
			'Modern Antiqua' => 'Modern Antiqua',
			'Molengo' => 'Molengo',
      'Monofett' => 'Monofett',
			'Monoton' => 'Monoton',
      'Montaga' => 'Montaga',
			'Montez' => 'Montez',
      'Montserrat' => 'Montserrat',
			'Mountains of Christmas' => 'Mountains of Christmas',
			'Muli:light' => 'Muli Light',
			'Muli' => 'Muli Regular',
			'Neucha' => 'Neucha',
			'Neuton' => 'Neuton',
			'News Cycle' => 'News Cycle',
			'Nixie One' => 'Nixie One',
			'Nobile' => 'Nobile',
			'Nova Cut' => 'Nova Cut',
			'Nova Flat' => 'Nova Flat',
			'Nova Mono' => 'Nova Mono',
			'Nova Oval' => 'Nova Oval',
			'Nova Round' => 'Nova Round',
			'Nova Script' => 'Nova Script',
			'Nova Slim' => 'Nova Slim',
			'Nova Square' => 'Nova Square',
			'Numans' => 'Numans',
			'Nunito' => 'Nunito',
      'Open Sans' => 'Open Sans',
			'Oswald' => 'Oswald',
			'Over the Rainbow' => 'Over the Rainbow',
			'Ovo' => 'Ovo',
			'Pacifico' => 'Pacifico',
			'Passero One' => 'Passero One',
			'Patrick Hand' => 'Patrick Hand',
			'Paytone One' => 'Paytone One',
			'Permanent Marker' => 'Permanent Marker',
			'Philosopher' => 'Philosopher',
			'Play' => 'Play',
			'Playfair Display' => 'Playfair Display',
			'Podkova' => 'Podkova',
			'Poller One' => 'Poller One',
			'Pompiere' => 'Pompiere',
			'Prata' => 'Prata',
			'Prociono' => 'Prociono',
			'PT Sans' => 'PT Sans',
			'PT Sans Caption' => 'PT Sans Caption',
			'PT Sans Narrow' => 'PT Sans Narrow',
			'PT Serif' => 'PT Serif',
			'PT Serif Caption' => 'PT Serif Caption',
			'Puritan' => 'Puritan',
			'Quattrocento' => 'Quattrocento',
			'Quattrocento Sans' => 'Quattrocento Sans',
			'Questrial' => 'Questrial',
			'Radley' => 'Radley',
			'Raleway:100' => 'Raleway', 
      'Rationale' => 'Rationale',
			'Redressed' => 'Redressed',
      'Reenie Beanie' => 'Reenie Beanie', 
      'Roboto' => 'Roboto',
			'Rock Salt' => 'Rock Salt',
			'Rochester' => 'Rochester',
			'Rokkitt' => 'Rokkitt',
			'Rosario' => 'Rosario',
			'Ruslan Display' => 'Ruslan Display',
      'Sancreek' => 'Sancreek',
			'Sansita One' => 'Sansita One',
			'Schoolbell' => 'Schoolbell',
			'Shadows Into Light' => 'Shadows Into Light',
			'Shanti' => 'Shanti',
			'Short Stack' => 'Short Stack',
			'Sigmar One' => 'Sigmar One',
			'Six Caps' => 'Six Caps',
			'Slackey' => 'Slackey',
			'Smokum' => 'Smokum',
			'Smythe' => 'Smythe',
			'Sniglet:800' => 'Sniglet',
			'Snippet' => 'Snippet',
			'Sorts Mill Goudy' => 'Sorts Mill Goudy',
			'Special Elite' => 'Special Elite',
			'Spinnaker' => 'Spinnaker',
			'Stardos Stencil' => 'Stardos Stencil',
			'Sue Ellen Francisco' => 'Sue Ellen Francisco',
			'Sunshiney' => 'Sunshiney',
			'Swanky and Moo Moo' => 'Swanky and Moo Moo',
			'Syncopate' => 'Syncopate',
			'Tangerine' => 'Tangerine',
			'Tenor Sans' => ' Tenor Sans',
			'Terminal Dosis Light' => 'Terminal Dosis Light',
			'Tinos' => 'Tinos',
			'Tulpen One' => 'Tulpen One',
			'Ubuntu' => 'Ubuntu',
			'Ultra' => 'Ultra',
      'UnifrakturCook:bold' => 'UnifrakturCook',
			'UnifrakturMaguntia' => 'UnifrakturMaguntia',
      'Unkempt' => 'Unkempt',
			'Unna' => 'Unna',
			'Varela' => 'Varela',
			'Varela Round' => 'Varela Round',
			'Vibur' => 'Vibur',
			'Vidaloka' => 'Vidaloka',
			'Volkhov' => 'Volkhov',
			'Vollkorn' => 'Vollkorn',
			'Voltaire' => 'Voltaire',
			'VT323' => 'VT323',
			'Waiting for the Sunrise' => 'Waiting for the Sunrise',
			'Wallpoet' => 'Wallpoet',
			'Walter Turncoat' => 'Walter Turncoat',
			'Wire One' => 'Wire One',
			'Yanone Kaffeesatz' => 'Yanone Kaffeesatz',
			'Yellowtail' => 'Yellowtail',
			'Yeseva One' => 'Yeseva One',
			'Zeyada' => 'Zeyada');
      
$timeturner_options = array (

array( "name" => $timeturner_themename ." Options",
	"type" => "title"),

array( "type" => "open"),

// Start Tabs
array( "name" => "Start Tabs",
		"type" => "tabs-open",
		"icon" => "layout"),

	// Home
	array( "name" => "Welcome",
			"id" => "tab_menu_0",
			"type" => "tab",
			"icon" => "layout",
			"class" => " selected first"),
	
	// General Settings
	array( "name" => "General Settings",
			"id" => "tab_menu_1",
			"type" => "tab",
			"icon" => "layout",
			"class" => ""),
      
  // Homepage Settings
	array( "name" => "Homepage Settings",
			"id" => "tab_menu_2",
			"type" => "tab",
			"icon" => "layout",
			"class" => ""),
		
	// Colors
	array( "name" => "Colors",
			"id" => "tab_menu_3",
			"type" => "tab",
			"icon" => "layout",
			"class" => ""),
      
	// Fonts
	array( "name" => "Fonts",
			"id" => "tab_menu_4",
			"type" => "tab",
			"icon" => "layout",
			"class" => ""),
	
	// Social Networking Tab
	array( "name" => "Social Networking",
			"id" => "tab_menu_5",
			"type" => "tab",
			"icon" => "layout",
			"class" => ""),
	
	// Other settings Tab
	array( "name" => "Other Settings",
			"type" => "tab",
			"id" => "tab_menu_6",
			"class" => ""),
      
  // Get Premium Tab
	array( "name" => "GET PREMIUM VERSION",
			"type" => "tab",
			"id" => "tab_menu_7",
			"class" => ""),
	

// General setting Tab
array( "name" => "Close Tabs",
		"type" => "tabs-close",
		"icon" => "layout"),


array( "name" => "Start Container",
		"type" => "container-open",
		"icon" => "layout"),

// Home Container 0
array( "name" => "tab_content_0",
		"type" => "tabcontent-open",
		"display" => "block",
		"icon" => "layout"),

	// Home
	array( "name" => "Welcome to TimeTurner!",
		"type" => "heading",
		"icon" => "layout"),
	
	array("name" => "First of all, I would like to thank you for choosing TimeTurner! I firmly believe that you will be satisfied with the product. In case of any problems or doubts you can use the <a href='http://www.tomastoman.cz/support' target='_blank'>TimeTurner Official Support</a> (in English, German or Czech).",
		"type" => "infotext"),
	
		array( "name" => "About TimeTurner",
		"type" => "heading",
		"icon" => "layout"),
	
	array("name" => "TimeTurner is an easy customizable WordPress blog and portfolio theme. It is a fully responsive theme that allows for easy viewing on any device. If you like retro style, TimeTurner is your kind of environment!",
		"type" => "infotext"),

array( "name" => "tab_content_0",
		"type" => "tabcontent-close",
		"icon" => "layout"),
// Close Home

// General setting Tab Container 1
array( "name" => "tab_content_1",
		"type" => "tabcontent-open",
		"display" => "none",
		"icon" => "layout"),

	// General settings
	array( "name" => "General Settings",
		"type" => "heading",
		"icon" => "layout"),		

	array( "name" => "Color Scheme",
		"desc" => "Select one of the preconfigured Color Schemes. You can create your own color scheme under the tab Color.",
		"id" => $timeturner_shortname."_css",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Green (default)',
							'b' => 'Blue',
							'c' => 'Gray'),
		"type" => "select"),
    
	array( "name" => "Background Pattern",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_background_pattern",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Pattern 1 (default)',
							'b' => 'Pattern 2',
							'c' => 'Pattern 3',
							'd' => 'Pattern 4',
              'e' => 'Pattern 5',
              'f' => 'Pattern 6',
              'g' => 'None'),
		"type" => "select-social"),
    
  array( "name" => "Display Sidebar",
		"desc" => "Set the main right sidebar to be visible or not.",
		"id" => $timeturner_shortname."_display_sidebar",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),
    
	array( "name" => "Favicon URL",
		"desc" => "Upload your own favicon image (16x16px) or directly input its URL. You can create your own favicon using <a title='Online Favicon Generator' href='http://www.favicon.cc/' target='_blank'>Favicon generator</a>.",
		"id" => $timeturner_shortname."_favicon_url",
		"type" => "upload-favicon",
		"std" => ""),	
    
	// MENU
	array( "name" => "Header Menu options",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Menu Item offset",
		"desc" => "Select which Menu Item (1 = first Item from left, 2 = second Item, etc.) should get the left indent to avoid overlapping with the logo.",
		"id" => $timeturner_shortname."_select_menu_item",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => '',
              'b' => '1',
              'c' => '2',
              'd' => '3',
              'e' => '4',
              'f' => '5',
              'g' => '6',
              'h' => '7',
              'i' => '8',
              'j' => '9',
              'k' => '10'),
		"type" => "select"),
    
	array( "name" => "Offset value (px)",
		"desc" => "Insert here the value of the left indent for Menu Item selected in the previous drop-down menu. The value is in pixels, but in the field please write ONLY NUMBERS (without symbol 'px')!",
		"id" => $timeturner_shortname."_item_offset",
		"type" => "text",
		"std" => "0"),   	

	// HEADER
	array( "name" => "Header options",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Logo",
		"desc" => "Set the Header Logo to be visible or not.",
		"id" => $timeturner_shortname."_display_header_logo",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
	array( "name" => "Logo URL",
		"desc" => "Upload your own logo in .png format or directly input its URL. Recommended height of your logo is 100 px, maximal width is 180 px.",
		"id" => $timeturner_shortname."_logo_url",
		"type" => "upload-logo",
		"std" => ""),
    
  array( "name" => "Display Site Description",
		"desc" => "Set whether to display Site Description in header or not (applies only to the sub-pages and posts, not to the index page).",
		"id" => $timeturner_shortname."_display_site_description",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Hide',
              'b' => 'Display'),
		"type" => "select"),
  
  
  // POSTS
	array( "name" => "Post options",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Featured Image on single posts",
		"desc" => "Set the Featured Image to be visible or not on the single posts.",
		"id" => $timeturner_shortname."_display_image_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Display Date on posts",
		"desc" => "Set the Date to be visible or not on the single posts.",
		"id" => $timeturner_shortname."_display_date_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),
	
	array( "name" => "Display Author on posts",
		"desc" => "Set the Author name to be visible or not on the single posts.",
		"id" => $timeturner_shortname."_display_author_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Display Categories on posts",
		"desc" => "Set the Categories to be visible or not on the single posts.",
		"id" => $timeturner_shortname."_display_categories_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),
    
	array( "name" => "Next/Previous Post Navigation",
		"desc" => "This feature gives the possibility to easy navigate between the posts in chronological order.",
		"id" => $timeturner_shortname."_next_preview_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),

// PAGES
	array( "name" => "Page options",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Featured Image on pages",
		"desc" => "Set the Featured Image to be visible or not on the pages.",
		"id" => $timeturner_shortname."_display_image_page",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),

array( "name" => "tab_content_1",
		"type" => "tabcontent-close",
		"icon" => "layout"),
// Close General settings


// Open Homepage settings
array( "name" => "tab_content_2",
		"type" => "tabcontent-open",
		"display" => "none",
		"icon" => "layout"),
    
	// Homepage Header    
  array( "name" => "Homepage Header",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Header Image/Slideshow Box",
		"desc" => "Set the Homepage Slideshow to be visible or not. After you create a slideshow in <a href='edit.php?post_type=cycloneslider' target='_blank'>Cyclone Slider</a> menu, go to the <a href='widgets.php' target='_blank'>Widgets</a> and drag Cyclone Slider Widget into the 'Home page slideshow' panel.",
		"id" => $timeturner_shortname."_display_homepage_slideshow",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Display Site Description",
		"desc" => "Set whether to display Site Description in homepage header or not.",
		"id" => $timeturner_shortname."_display_site_description_homepage",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Homepage Motto",
	"desc" => "Fill here the text which displays below the slideshow on index page. Leave this field empty if you don't want to display the motto.",
		"id" => $timeturner_shortname."_index_motto",
		"type" => "text",
		"std" => ""),
    
	// About Section    
  array( "name" => "About Section",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display About Section",
		"desc" => "Set the About Section with custom boxes to be visible or not.",
		"id" => $timeturner_shortname."_display_about_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "About Section Headline",
	"desc" => "Fill here your custom headline of About Section.",
		"id" => $timeturner_shortname."_about_headline",
		"type" => "text",
		"std" => "Something about us"),
    
	// Portfolio Section    
  array( "name" => "Portfolio Section",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Portfolio Section",
		"desc" => "Set the Portfolio Section to be visible or not.",
		"id" => $timeturner_shortname."_display_portfolio_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Portfolio Section Headline",
	"desc" => "Fill here your custom headline of Portfolio Section.",
		"id" => $timeturner_shortname."_portfolio_headline",
		"type" => "text",
		"std" => "Portfolio"),
    
	array( "name" => "Portfolio Category",
		"desc" => "Select the category of posts which you want to display in Portfolio Section as Portfolio Items. For all posts in the Portfolio must be set the featured image.",
		"id" => $timeturner_shortname."_portfolio_category",
		"categoryids" => $catids,
		"categorynames" => $catnames,
		"std" => "0",
		"type" => "select-category"),
    
  array( "name" => "Number of displayed Portfolio Items",
	"desc" => "Insert here the number of latest Portfolio Items to be displayed. By default 6 posts. Set '-1' for displaying all of your Portfolio Items.",
		"id" => $timeturner_shortname."_portfolio_items",
		"type" => "text",
		"std" => "6"),
    
	// Blog Section    
  array( "name" => "Blog Section",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Blog Section",
		"desc" => "Set the Blog Section to be visible or not.",
		"id" => $timeturner_shortname."_display_blog_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Blog Section Headline",
	"desc" => "Fill here your custom headline of Blog Section.",
		"id" => $timeturner_shortname."_blog_headline",
		"type" => "text",
		"std" => "Latest blog posts"),
    
  array( "name" => "Display homepage blog sidebar",
		"desc" => "Set the right sidebar in 'Blog Area' on index page to be visible or not.",
		"id" => $timeturner_shortname."_display_blog_sidebar",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),

array( "name" => "tab_content_2",
		"type" => "tabcontent-close",
		"icon" => "layout"),
// Close Homepage settings


// Colors Tab Container
array( "name" => "tab_content_3",
		"type" => "tabcontent-open",
		"display" => "none",
		"icon" => "layout"),
    
	// Content areas background colors    
  array( "name" => "Content areas background colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Header Menu Panel background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_menu_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Header background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_header_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Main Content background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_content_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_footer_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage About Section background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_homepage_about_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Portfolio Section background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_homepage_portfolio_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Blog Section background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_homepage_blog_background_color",
		"type" => "color",
		"std" => "#"),
    
  // Header objects colors    
  array( "name" => "Header objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Logo Panel background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_logo_panel_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Logo background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_logo_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Logo border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_logo_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Drop-down Submenu background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_submenu_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Drop-down Submenu Items hover color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_submenu_hover_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Drop-down Submenu border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_submenu_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Description Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_description_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Description Box inner-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_description_border_inner_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Description Box outer-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_description_border_outer_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Slideshow background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_slideshow_background_color",
		"type" => "color",
		"std" => "#"),
    
  // Main Content objects colors    
  array( "name" => "Main Content objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Headline Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_content_headline_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box inner-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_content_headline_border_inner_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box outer-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_content_headline_border_outer_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Featured Image background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_featured_image_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Featured Image border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_featured_image_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Searchform background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_searchform_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Searchform border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_searchform_border_color",
		"type" => "color",
		"std" => "#"),
    
  // Homepage About Section objects colors    
  array( "name" => "Homepage About Section objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Headline Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_about_headline_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box inner-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_about_headline_border_inner_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box outer-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_about_headline_border_outer_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "About Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_about_box_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "About Box borders color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_about_box_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Read More Button background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_button_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Read More Button border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_button_border_color",
		"type" => "color",
		"std" => "#"),
    
  // Homepage Portfolio Section objects colors    
  array( "name" => "Homepage Portfolio Section objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Headline Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_portfolio_headline_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box inner-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_portfolio_headline_border_inner_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box outer-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_portfolio_headline_border_outer_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Portfolio Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_portfolio_box_background_color",
		"type" => "color",
		"std" => "#"),
    
  // Homepage Blog Section objects colors    
  array( "name" => "Homepage Blog Section objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Headline Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_blog_headline_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box inner-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_blog_headline_border_inner_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Headline Box outer-border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_blog_headline_border_outer_color",
		"type" => "color",
		"std" => "#"),

	// Text colors    
  array( "name" => "Text colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Body Font color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_body_color",
		"type" => "color",
		"std" => "#"),
  
  array( "name" => "Site Title color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_site_title_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Site Description color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_site_description_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Motto color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_motto_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Page/Post Main Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_main_headlines_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Page/Post Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_headlines_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entry Headline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_post_entry_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sidebar Widget Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_sidebar_widget_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Widget Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_footer_widget_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Text color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_footer_text_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Main Content Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_content_links_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sidebar Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_sidebar_links_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_footer_links_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Header Menu Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_header_menu_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Header Menu Links hover color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_header_menu_hover_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Active Header Menu Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_active_header_menu_color",
		"type" => "color",
		"std" => "#"),	
	
	array( "name" => "tab_content_3",
		"type" => "tabcontent-close",
		"icon" => "layout"),
// Close Color settings

// Open Fonts
array( "name" => "tab_content_4",
		"type" => "tabcontent-open",
		"display" => "none",
		"icon" => "layout"),

	array( "name" => "Fonts",
		"type" => "heading",
		"icon" => "layout"),

	array( "name"=>"Body font",
		"desc" => "Select the main body font.",
		"id" => $timeturner_shortname."_body_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),


	array( "name"=>"Site Title font",
		"desc" => "Select a font for your Site Title in header.",
		"id" => $timeturner_shortname."_headings_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),	

	array( "name" => "Site Description font",
		"desc" => "Select a font for your Site Description in header.",
		"id" => $timeturner_shortname."_description_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),
    
	array( "name" => "Homepage Motto font",
		"desc" => "Select a font for your Homepage Motto in header.",
		"id" => $timeturner_shortname."_motto_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),
    
  array( "name" => "Page/Post Headlines font",
		"desc" => "Select a font for page/post headlines (h1 - h6).",
		"id" => $timeturner_shortname."_headline_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),
    
  array( "name" => "Post Entry Headline font",
		"desc" => "Select a font for Post Entry Headlines which display on index/archive/search pages.",
		"id" => $timeturner_shortname."_postentry_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),
    
  array( "name" => "Sidebar/Footer Widget Headlines font",
		"desc" => "Select a font for Sidebar/Footer Widget Headlines.",
		"id" => $timeturner_shortname."_sidebar_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),
    
	array( "name" => "Header Menu font",
		"desc" => "Select a font for your Header Menu.",
		"id" => $timeturner_shortname."_menu_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $timeturner_fonts,
		"type" => "select"),	

array( "name" => "tab_content_4",
		"type" => "tabcontent-close",
		"icon" => "layout"),
// Close fonts

// Open Social Networking
array( "name" => "tab_content_5",
		"type" => "tabcontent-open",
		"display" => "none",
		"icon" => "layout"),

	array( "name" => "Social Networking",
		"type" => "heading",
		"icon" => "layout"),
	
	array( "name" => "Share Buttons on pages",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_share_buttons_page",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select-social"),
	
	array( "name" => "Share Buttons on posts",
		"desc" => "This feature is available only in Premium version.",
		"id" => $timeturner_shortname."_share_buttons_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select-social"),


array( "name" => "tab_content_5",
		"type" => "tabcontent-close",
		"icon" => "layout"),
// Close Social Networking


// Open Other settings
array( "name" => "tab_content_6",
		"type" => "tabcontent-open",
		"display" => "none",
		"icon" => "layout"),

	array( "name" => "Other Settings",
		"type" => "heading",
		"icon" => "layout"),
		

array( "type" => "infotext",
		"name" => "OPTIONS: <a href='widgets.php'>Widgets</a> | <a href='nav-menus.php'>Menus</a> | <a href='edit.php?post_type=cycloneslider'>Slideshow</a>| <a href='themes.php?page=custom-header'>Header Image</a> | <a href='themes.php?page=custom-background'>Main Background</a>"),
    
  array( "name" => "Custom CSS",
		"desc" => "Fill here your own cascading style sheet information (CSS).<br />Example: #content p {font-size: 15px;} #sidebar p {font-size: 14px;}",
		"id" => $timeturner_shortname."_own_css",
		"type" => "textarea",
		"std" => ""),

array( "name" => "tab_content_6",
		"type" => "tabcontent-close",
		"icon" => "layout"),
// Close Other settings

// Open Get Premium
array( "name" => "tab_content_7",
		"type" => "tabcontent-open",
		"display" => "none",
		"icon" => "layout"),

	array( "name" => "Get TimeTurner Premium Version",
		"type" => "heading",
		"icon" => "layout"),
		
  array( "type" => "infotext",
		"name" => "If you want to buy TimeTurner Premium Version, you can do so on <a href='http://www.tomastoman.cz/downloads/timeturner/' target='_blank'>Developer Official Website</a>."),
    
  array( "type" => "infotext",
		"name" => "<strong>What the TimeTurner Premium Version offers in addition?</strong><br />
    - 10 pre-defined color schemes altogether<br />
    - Select between 6 background patterns<br />
    - Unlimited ability to create custom color schemes<br />
    - Social networking Custom widget<br />
    - Twitter Following Custom widget<br />
    - Facebook Like Box Custom widget<br />
    - Integrated Facebook/Twitter/Google +1 sharing buttons on posts/pages<br />
    - Integrated automatic Sitemap generator with advanced options<br />
    - Shortcodes for adding tables and images anywhere you like<br />
    - Shortcodes for displaying a listing of posts anywhere you like<br />
    - Shortcodes for displaying Google Maps anywhere you like"),
    
  array( "name" => "tab_content_7",
		"type" => "tabcontent-close",
		"icon" => "layout"),
    
// Close Get Premium

array("name" => "Close Container",
		"type" => "container-close",
		"icon" => "layout"),

array( "type" => "close") 
); 


add_action('admin_head', 'timeturner_admin_css');

function timeturner_admin_css() { ?>
     
	<script language="JavaScript">
		jQuery.noConflict();
		jQuery(document).ready(function($) {
	
		$(".tabs .tab[id^=tab_menu]").click(function() {
			var curMenu=$(this);
			$(".tabs .tab[id^=tab_menu]").removeClass("selected");
			curMenu.addClass("selected");
	
			var index=curMenu.attr("id").split("tab_menu_")[1];
			$(".curvedContainer .tabcontent").css("display","none");
			$(".curvedContainer #tab_content_"+index).css("display","block");
		});
	});
	</script>

<?php }
function timeturner_add_admin() {
	global $timeturner_options; global $timeturner_themename; global $timeturner_shortname;
	if ( isset ( $_GET['page'] ) && ( $_GET['page'] == basename(__FILE__) ) ) {
		if ( isset ($_REQUEST['action']) && ( 'save' == $_REQUEST['action'] ) ){
			foreach ( $timeturner_options as $value ) {
				if ( array_key_exists('id', $value) ) {
					if ( isset( $_REQUEST[ $value['id'] ] ) ) {
						update_option( $value['id'], $_REQUEST[ $value['id'] ]  );
					}
					else {
						delete_option( $value['id'] );
					}
				}
			}
			header("Location: themes.php?page=".basename(__FILE__)."&saved=true");
		}else if ( isset ($_REQUEST['action']) && ( 'reset' == $_REQUEST['action'] ) ) {
			foreach ($timeturner_options as $value) {
				if ( array_key_exists('id', $value) ) {
					delete_option( $value['id'] );
				}
			}
			header("Location: themes.php?page=".basename(__FILE__)."&reset=true");
		}
	}
	add_theme_page($timeturner_themename." Options", 'Theme Options', 'edit_theme_options', 'fw-options.php', 'timeturner_admin', '', '1');
}



function timeturner_admin() {
	global $timeturner_themename, $timeturner_shortname, $timeturner_options, $timeturner_themever, $fwver, $timeturner_manualurl; 
	if (isset($_REQUEST["saved"]) && !empty($_REQUEST["saved"])) echo '<div id="message" class="updated fade"><p><strong>'.$timeturner_themename.' settings saved.</strong></p></div>';
	if (isset($_REQUEST["reset"]) && !empty($_REQUEST["reset"])) echo '<div id="message" class="error fade"><p><strong>'.$timeturner_themename.' '.__( 'settings reset.', 'timeturner' ).'</strong></p></div>';
  wp_enqueue_style('framework-style', get_template_directory_uri() . '/functions/be/css.css');
?>

	<div id="wrap_fm"><!-- [ Header ]-->
		<div class="header_fm">
			<div class="logo_fm">Theme Options</div>
			<div class="frame_vers_fm">
				<div class="theme_version_fm"><?php echo $timeturner_themename;?> <strong><?php echo $timeturner_themever;?></strong></div>
				<div class="clear"></div>
			</div>
		</div>

		<!-- [ Top Menu ]-->
		<div class="top_menu_fm">
			<a title="Theme Documentation" target="_blank"class="doc_fm" href="<?php echo $timeturner_manualurl; ?>">Documentation</a><a title="Theme Support" target="_blank" class="support_fm" href="http://www.tomastoman.cz/support">Support</a><a title="TimeTurner Premium Version" target="_blank" class="premium_fm" href="http://www.tomastoman.cz/downloads/timeturner/">Get Premium Version</a>
		</div>


	<form method="post">
	<?php 
	foreach ($timeturner_options as $value) {
	switch ( $value['type'] ) {
	case "open":
	?> 
	<?php break; case "title": ?> 

	<!-- [ Body ]-->
	<div id="wrap_body_fm">
	<div class="tabscontainer">


	<?php break; case "close": ?> 

	<!-- start form -->
	<div class="col_100">
		<div class="col_50">
			<input id="submit" class="button-primary" name="save" type="submit" value="Save all changes" /> <input type="hidden" name="action" value="save" />
			</form>
		</div>
	 	<div class="col_50">
		 	<form method="post">
				<input class="reset" name="reset" type="submit" value="Reset to default settings" />
				<input type="hidden" name="action" value="reset" />
			</form>
		</div>	
		<div class="clear"></div>
	</div>
	<!-- end form -->
</div></div>



<?php break;case 'text': ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	<div class="input_fm"><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id'] )); } else { echo $value['std']; } ?>" /></div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>
  
<?php break;case 'upload-favicon': ?>
<?php wp_enqueue_media();
wp_enqueue_script('my-admin-js-favicon', get_template_directory_uri() . '/js/custom-uploader-favicon.js', array('jquery')); ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
  <input class="upload_image" type="text" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id'] )); } else { echo $value['std']; } ?>" /> 
  <input class="upload_image_button button" type="button" value="Upload Image" />
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>
  
<?php break;case 'upload-logo': ?>
<?php wp_enqueue_media();
wp_enqueue_script('my-admin-js-logo', get_template_directory_uri() . '/js/custom-uploader-logo.js', array('jquery')); ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
  <input class="upload_logo" type="text" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id'] )); } else { echo $value['std']; } ?>" /> 
  <input class="upload_logo_button button" type="button" value="Upload Image" />
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>
  
<?php break;case 'color': ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	<div class="input_fm"><input class="color {hash:true,caps:false,adjust:false,pickerClosable:true}" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="text" value="<?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id'] )); } else { echo $value['std']; } ?>" disabled readonly /></div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>

<?php break; case 'textarea':?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	<div class="input_fm"><textarea name="<?php echo $value['id']; ?>" style="height: 100px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_option( $value['id'] ) != "") { echo stripslashes(get_option( $value['id'] )); } else { echo $value['std']; } ?></textarea></div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>

<?php break; case 'select': ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	<div class="input_fm"><select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?>
	<option <?php if ( get_option( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
	<?php } ?>
	</select></div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>
  
<?php break; case 'select-social': ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	<div class="input_fm"><select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" disabled><?php foreach ($value['options'] as $option) { ?>
	<option <?php if ( get_option( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
	<?php } ?>
	</select></div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>

<?php break; case 'select-category': ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	<div class="input_fm">
	
	<select name="<?php echo $value['id']; ?>"><option value="0">- not selected -</option><?php foreach ($value['categoryids'] as $key => $val) { ?><option value="<?php echo"$val";?>"<?php if ( get_option( $value['id'] ) == $val) { echo ' selected="selected"'; } ?>><?php echo $value['categorynames'][$key]; ?></option><?php } ?></select>
	
</select>
	
	</div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>

	<?php break; case "checkbox": ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	<div class="input_fm"><?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
	<input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> /></div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>
	
	<?php break; case "heading":?>
	<h1><?php echo $value['name']; ?></h1>
	
	<?php break; case "subheader":?>
	<h2><?php echo $value['name']; ?></h2>
	
<?php break; case "infotext":?>
	<div class="infotext"><?php echo $value['name']; ?></div>
	
		
	<?php break; case "tabs-open":?>	
	<div class="tabs">
	
	<?php break; case "tabs-close":?>	
	</div>	
	
	<?php break; case "tab":?>	
	<div class="tab<?php echo $value['class']; ?>" id="<?php echo $value['id']; ?>">
	<div class="link"><?php echo $value['name']; ?></div>
	<div class="arrow"></div>
	</div>
 	
 	<?php break; case "container-open":?>	
	<div class="curvedContainer">
 	
 	<?php break; case "container-close":?>	
	</div>	
 	
	<?php break; case "tabcontent-open":?>	
	<div class="tabcontent" id="<?php echo $value['name']; ?>" style="display:<?php echo $value['display']; ?>" >
	
	<?php break; case "tabcontent-close":?>	
	</div>
	
 	
<?php break;

}
}
?>

<?php
}

add_action('admin_menu', 'timeturner_add_admin');
?>