<?php
/**
 * Framework options.
 * @package MeadowHill
 * @since MeadowHill 1.0.0
*/   
$meadowhill_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');
      
$meadowhill_options = array (

array( "name" => $meadowhill_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" => ""),
	
	// 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 MeadowHill!",
		"type" => "heading",
		"icon" => "layout"),
	
	array("name" => "First of all, I would like to thank you for choosing MeadowHill! 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'>MeadowHill Official Support</a> (in English, German or Czech).",
		"type" => "infotext"),
	
		array( "name" => "About MeadowHill",
		"type" => "heading",
		"icon" => "layout"),
	
	array("name" => "MeadowHill is an easy customizable WordPress blog and portfolio theme. It is a fully responsive theme that allows for easy viewing on any device. Let's explore how the MeadowHill looks like in the autumn garb!",
		"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" => $meadowhill_shortname."_css",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Burning Autumn (default)',
							'b' => 'Autumn Forest',
							'c' => 'Autumn Sunlight',
              'd' => 'Blue',),
		"type" => "select"),
    
  array( "name" => "Display Sidebar",
		"desc" => "Set the main right sidebar to be visible or not.",
		"id" => $meadowhill_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" => $meadowhill_shortname."_favicon_url",
		"type" => "upload-favicon",
		"std" => ""),   	

	// HEADER
	array( "name" => "Header Options",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Logo/Site Title in header",
		"desc" => "Set whether to display a logo or the Site Title in header box.",
		"id" => $meadowhill_shortname."_header_title_format",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Site Title',
              'b' => 'Logo'),
		"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 70 px.",
		"id" => $meadowhill_shortname."_logo_url",
		"type" => "upload-logo",
		"std" => ""),
    
  array( "name" => "Page Title width",
		"desc" => "Set the width of page title box or logo box (percentages due to the page width).",
		"id" => $meadowhill_shortname."_page_title_width",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => '50%',
							'b' => '0%',
              'c' => '10%',
              'd' => '20%',
              'e' => '30%',
              'f' => '40%',
              'g' => '60%',
              'h' => '70%',
              'i' => '80%',
              'j' => '90%',
              'k' => '100%'),
		"type" => "select"),
    
  array( "name" => "Header Menu width",
		"desc" => "Set the width of header menu (percentages due to the page width).",
		"id" => $meadowhill_shortname."_header_menu_width",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => '50%',
							'b' => '0%',
              'c' => '10%',
              'd' => '20%',
              'e' => '30%',
              'f' => '40%',
              'g' => '60%',
              'h' => '70%',
              'i' => '80%',
              'j' => '90%',
              'k' => '100%'),
		"type" => "select"),
    
  array( "name" => "Header Menu format",
		"desc" => "Set whether to display the header navigation by default or as a drop-down list.",
		"id" => $meadowhill_shortname."_header_menu_format",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Default',
              'b' => 'Drop-down'),
		"type" => "select"),
    
	array( "name" => "Background Image",
		"type" => "subheader",),
    
  array( "type" => "paragraph",
		"name" => "Go to the <a href='themes.php?page=custom-header'>Header</a> options and upload/set here your own header background image which will replace the default background image."),
    
	array( "name" => "Background Image height",
		"desc" => "Set the height of Header Background Image (applies only to the sub-pages and posts, not to the index page). The value is in pixels, but in the field please write ONLY NUMBERS (without symbol 'px')!",
		"id" => $meadowhill_shortname."_header_image_height",
		"type" => "text",
		"std" => "400"),
    
	array( "name" => "Background Pattern",
		"desc" => "Select one of the Background Patterns to overlap the background image.",
		"id" => $meadowhill_shortname."_header_background_pattern",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Pattern 1 (default)',
              'b' => 'None',),
		"type" => "select"),
    
	array( "name" => "Background Pattern Opacity",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_header_background_pattern_opacity",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => '100',
							'b' => '90',
							'c' => '80',
							'd' => '70',
              'e' => '60',
              'f' => '50',
              'g' => '40',
              'h' => '30',
              'i' => '20',
              'j' => '10',),
		"type" => "select-social"),
    
    
	// FOOTER
	array( "name" => "Footer Options",
		"type" => "heading",
		"icon" => "layout"),
    
	array( "name" => "Background Pattern",
		"desc" => "Select one of the Background Patterns for Footer background.",
		"id" => $meadowhill_shortname."_footer_background_pattern",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Pattern 1 (default)',
              'b' => 'None',),
		"type" => "select"),
    
	array( "name" => "Background Pattern Opacity",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_background_pattern_opacity",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => '20',
							'b' => '100',
							'c' => '90',
							'd' => '80',
              'e' => '70',
              'f' => '60',
              'g' => '50',
              'h' => '40',
              'i' => '30',
              'j' => '10',),
		"type" => "select-social"),
  
  
  // 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" => $meadowhill_shortname."_display_image_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Display Meta Box on single posts",
		"desc" => "Set the Meta Box (with publish date, author, category and tags) to be visible or not on the single posts.",
		"id" => $meadowhill_shortname."_display_meta_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" => $meadowhill_shortname."_next_preview_post",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
							'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Display Related Posts on single posts",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_display_related_posts",
		"std" => "#",
		"type" => "color"),
    
  array( "name" => "Number of Related Posts",
	"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_related_posts_number",
		"std" => "#",
		"type" => "color"),

// 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" => $meadowhill_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"),
    
	array( "name" => "Homepage Settings",
		"type" => "heading",
		"icon" => "layout"),

  array( "type" => "infotext",
		"name" => "There are 3 options for displaying your homepage. You can set them in <a href='options-reading.php'>Settings > Reading</a> panel.<br />
    <ol>
    <li><em>Your latest posts</em></li>
    <li><em>A static page</em></li>
    <li><em>A static page with About, Portfolio, Informational, Image and Blog Sections</em><br />-> create a new Page and title it 'Home' or an appropriate name. DO NOT add content. Leave it blank. Any content here will be ignored. Select 'Homepage' Template for this page instead of 'Default Template'. Then in Settings > Reading set 'Front page displays' to 'A static page'. In the drop down menu for Front Page select the page you have created in this step.</li>
    </ol>
    <strong>About, Portfolio, Informational and Image Sections settings apply only for option number 3.</strong>"),
    
	// Homepage Header    
  array( "name" => "Homepage Header",
		"type" => "heading",
		"icon" => "layout"),
    
	array( "name" => "Homepage Background Image URL",
		"desc" => "Upload your own Header Background Image or directly input its URL. Recommended width of your image is 2000 px.",
		"id" => $meadowhill_shortname."_homepage_header_image_url",
		"type" => "upload-homepage-header",
		"std" => ""),
    
	array( "name" => "Homepage Background Pattern",
		"desc" => "Select one of the Background Patterns to overlap the background image.",
		"id" => $meadowhill_shortname."_homepage_header_background_pattern",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Pattern 1 (default)',
              'b' => 'None',),
		"type" => "select"),
    
	array( "name" => "Homepage Background Pattern Opacity",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_homepage_header_background_pattern_opacity",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => '100',
							'b' => '90',
							'c' => '80',
							'd' => '70',
              'e' => '60',
              'f' => '50',
              'g' => '40',
              'h' => '30',
              'i' => '20',
              'j' => '10',),
		"type" => "select-social"),
    
  array( "name" => "Display Site Description",
		"desc" => "Set whether to display Site Description in homepage header or not.",
		"id" => $meadowhill_shortname."_display_site_description_homepage",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Display Read More Button",
		"desc" => "Set whether to display READ MORE button in homepage header or not.",
		"id" => $meadowhill_shortname."_display_read_more_homepage",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Read More Button link",
	"desc" => "Fill here the URL address where the Read More link will be directed.",
		"id" => $meadowhill_shortname."_read_more_link",
		"type" => "text",
		"std" => "#wrapper-blog"),
    
	array( "name" => "Position of Site Description",
		"desc" => "Select the offset of Site Description from the bottom of the browser window. The value is in pixels, but in the field please write ONLY NUMBERS (without symbol 'px')!",
		"id" => $meadowhill_shortname."_site_description_position",
		"std" => "20",
		"type" => "text"),
    
    
	// About Section    
  array( "name" => "About Section",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display About Section",
		"desc" => "Set the About Section to be visible or not. For editing it, please go to the <a href='widgets.php'>Widgets</a> panel and insert as many Text widgets as you want into 'About Section on homepage' widget area.",
		"id" => $meadowhill_shortname."_display_about_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
	// 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" => $meadowhill_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" => $meadowhill_shortname."_portfolio_headline",
		"type" => "text",
		"std" => "PORTFOLIO SECTION"),
    
	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" => $meadowhill_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" => $meadowhill_shortname."_portfolio_items",
		"type" => "text",
		"std" => "6"),
    
	// Informational Section    
  array( "name" => "Informational Section",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Informational Section",
		"desc" => "Set the Informational Section to be visible or not. For editing it, please go to the <a href='widgets.php'>Widgets</a> panel and insert as many Text widgets as you want into 'Informational Section on homepage' widget area.",
		"id" => $meadowhill_shortname."_display_informational_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
	// Image Section    
  array( "name" => "Image Section",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Display Image Section",
		"desc" => "Set the Image Section to be visible or not.",
		"id" => $meadowhill_shortname."_display_image_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
	array( "name" => "Height of Image Section",
		"desc" => "Set the height of Image Section. The value is in pixels, but in the field please write ONLY NUMBERS (without symbol 'px')!",
		"id" => $meadowhill_shortname."_image_section_height",
		"type" => "text",
		"std" => "370"),
    
	array( "name" => "Background Image URL",
		"desc" => "Upload your own Background Image or directly input its URL. Recommended width of your image is 2000 px.",
		"id" => $meadowhill_shortname."_image_section_image_url",
		"type" => "upload-homepage-image",
		"std" => ""),
    
	array( "name" => "Background Pattern",
		"desc" => "Select one of the Background Patterns to overlap the background image.",
		"id" => $meadowhill_shortname."_image_section_background_pattern",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Pattern 1 (default)',
              'b' => 'None',),
		"type" => "select"),
    
	array( "name" => "Background Pattern Opacity",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_image_section_background_pattern_opacity",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => '100',
							'b' => '90',
							'c' => '80',
							'd' => '70',
              'e' => '60',
              'f' => '50',
              'g' => '40',
              'h' => '30',
              'i' => '20',
              'j' => '10',),
		"type" => "select-social"),
    
  array( "name" => "Display Image Section text",
		"desc" => "Set whether to display the text in Image Section or not.",
		"id" => $meadowhill_shortname."_display_text_image_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Image Section text",
	"desc" => "Fill here a text you want to display in Image Section.",
		"id" => $meadowhill_shortname."_image_section_text",
		"type" => "text",
		"std" => ""),
    
  array( "name" => "Display Read More Button",
		"desc" => "Set whether to display READ MORE button in Image Section or not.",
		"id" => $meadowhill_shortname."_display_read_more_image_section",
		"std" => "",
		"class" => "hidden",
		"options" => array(	'a' => 'Display',
              'b' => 'Hide'),
		"type" => "select"),
    
  array( "name" => "Read More Button link",
	"desc" => "Fill here the URL address where the Read More link in Image Section will be directed.",
		"id" => $meadowhill_shortname."_read_more_image_section_link",
		"type" => "text",
		"std" => "#nogo"),
    
	array( "name" => "Position of Image Section text",
		"desc" => "Set the offset of the Text information box from the top of the Image Section. The value is in pixels, but in the field please write ONLY NUMBERS (without symbol 'px')!",
		"id" => $meadowhill_shortname."_image_section_text_position",
		"std" => "125",
		"type" => "text"),
    
	// 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" => $meadowhill_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" => $meadowhill_shortname."_blog_headline",
		"type" => "text",
		"std" => "BLOG SECTION"),
    
  array( "name" => "Number of displayed Latest Posts",
	  "desc" => "Insert here the number of latest posts to be displayed. By default 5 posts. Set '-1' for displaying all of your posts.",
		"id" => $meadowhill_shortname."_blog_items",
		"type" => "text",
		"std" => "5"),

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" => $meadowhill_shortname."_menu_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Main Content background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_content_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer border-top color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Notices background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_notices_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage About Section background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_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" => $meadowhill_shortname."_homepage_portfolio_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Informational Section background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_homepage_informational_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Blog Section background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_homepage_blog_background_color",
		"type" => "color",
		"std" => "#"),
    
  // Header objects colors    
  array( "name" => "Header objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Drop-down Submenu background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_submenu_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Drop-down Submenu border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_submenu_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Drop-down Submenu Items hover color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_submenu_hover_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Drop-down Submenu Items border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_submenu_item_border_color",
		"type" => "color",
		"std" => "#"),
    
  // Main Content objects colors    
  array( "name" => "Main Content objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Meta Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_meta_box_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Meta Box Separators color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_meta_box_separator_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Comments border-top color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_comments_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Authors Comments background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_author_comments_background_color",
		"type" => "color",
		"std" => "#"),
    
  // Homepage Portfolio Section objects colors    
  array( "name" => "Homepage Portfolio Section objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Portfolio Items border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_portfolio_items_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Portfolio Items hover border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_portfolio_items_hover_border_color",
		"type" => "color",
		"std" => "#"),
    
  // Blog Section - Post Entries objects colors    
  array( "name" => "Blog Section - Post Entries objects colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Post Entries background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entries_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entries border-top color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entries_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entries Meta Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entries_meta_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entries Meta Box Separators color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entries_separator_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entries Read More button background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entries_read_more_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entries Read More button hover color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entries_read_more_hover_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sticky Post background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_sticky_post_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sticky Post Meta Box background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_sticky_post_meta_background_color",
		"type" => "color",
		"std" => "#"),
    
  // Form Elements colors    
  array( "name" => "Form elements colors",
		"type" => "heading",
		"icon" => "layout"),
    
  array( "name" => "Searchform background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_searchform_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Searchform border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_searchform_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Form Fields background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_form_fields_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Form Fields border color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_form_fields_border_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Buttons background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_form_buttons_background_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Buttons hover color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_form_buttons_hover_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Table Headers background color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_table_headers_background_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" => $meadowhill_shortname."_body_color",
		"type" => "color",
		"std" => "#"),
  
  array( "name" => "Site Title color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_site_title_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Site Description color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_site_description_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Read More Button text color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_read_more_text_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage About Section Headline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_about_headline_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Portfolio Section Headline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_portfolio_headline_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Portfolio Section Items text color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_portfolio_links_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Informational Section Headline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_informational_headline_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Blog Section Headline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_blog_headline_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Homepage Image Section text color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_image_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Page/Post Main Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_main_headlines_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Page/Post Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_headlines_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entry Headline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entry_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Post Entry Headline hover color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_post_entry_hover_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sidebar Widget Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_sidebar_widget_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sidebar Widget Headlines underline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_sidebar_widget_underline_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sidebar Text color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_sidebar_text_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Widget Headlines color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_widget_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Widget Headlines underline color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_widget_underline_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Text color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_text_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Main Content Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_content_links_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Sidebar Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_sidebar_links_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Footer Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_footer_links_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Header Menu Links color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_shortname."_header_menu_color",
		"type" => "color",
		"std" => "#"),
    
  array( "name" => "Header Menu Links hover color",
		"desc" => "This feature is available only in Premium version.",
		"id" => $meadowhill_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" => $meadowhill_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" => $meadowhill_shortname."_body_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $meadowhill_fonts,
		"type" => "select"),


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

	array( "name" => "Site Description font",
		"desc" => "Select a font for your Site Description in header.",
		"id" => $meadowhill_shortname."_description_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $meadowhill_fonts,
		"type" => "select"),
    
	array( "name" => "Homepage Image Section text font",
		"desc" => "Select a font for your Homepage Image Section text.",
		"id" => $meadowhill_shortname."_image_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $meadowhill_fonts,
		"type" => "select"),
    
  array( "name" => "Page/Post Headlines font",
		"desc" => "Select a font for page/post headlines (h1 - h6).",
		"id" => $meadowhill_shortname."_headline_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $meadowhill_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" => $meadowhill_shortname."_postentry_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $meadowhill_fonts,
		"type" => "select"),
    
  array( "name" => "Sidebar/Footer Widget Headlines font",
		"desc" => "Select a font for Sidebar/Footer Widget Headlines.",
		"id" => $meadowhill_shortname."_sidebar_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $meadowhill_fonts,
		"type" => "select"),
    
	array( "name" => "Header Menu font",
		"desc" => "Select a font for your Header Menu.",
		"id" => $meadowhill_shortname."_menu_google_fonts",
		"std" => "",
		"class" => "hidden",
		"options" => $meadowhill_fonts,
		"type" => "select"),	

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


// 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='themes.php?page=custom-header'>Main Header Image</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" => $meadowhill_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 MeadowHill Premium Version",
		"type" => "heading",
		"icon" => "layout"),
		
  array( "type" => "infotext",
		"name" => "If you want to buy MeadowHill Premium Version, you can do so on <a href='http://www.tomastoman.cz/downloads/meadowhill/' target='_blank'>Developer's Official Website</a>."),
    
  array( "type" => "infotext",
		"name" => "<strong>What the MeadowHill Premium Version offers in addition?</strong><br />
    - 8 pre-defined color schemes altogether<br />
    - Select between 4 overlapping patterns for background images (45degrees hatching, heavy-dotted, light-dotted and dashed-line)<br />
    - Transparency/opacity settings of overlapping patterns for background images<br />
    - Unlimited ability to create custom Color schemes<br />
    - Possibility to set different Header Images for individual pages<br />
    - Select between Scroll or Fixed attachment of the Header Bar<br />
    - Select between Scroll or Fixed attachment of the Image Section<br />
    - Select between Content/Excerpt displaying on archive pages<br />
    - Font-size settings<br />
    - Social networking Custom widget<br />
    - Facebook Like Box Custom widget<br />
    - Twitter Following 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 specific listing of posts anywhere you like<br />
    - Shortcode for displaying Google Maps anywhere you like<br />
    - Related Posts list on single posts"),
    
  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', 'meadowhill_admin_css');

function meadowhill_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 meadowhill_add_admin() {
	global $meadowhill_options; global $meadowhill_themename; global $meadowhill_shortname;
	if ( isset ( $_GET['page'] ) && ( $_GET['page'] == basename(__FILE__) ) ) {
		if ( isset ($_REQUEST['action']) && ( 'save' == $_REQUEST['action'] ) ){
			foreach ( $meadowhill_options as $value ) {
				if ( array_key_exists('id', $value) ) {
					if ( isset( $_REQUEST[ $value['id'] ] ) ) {
            $meadowhill_options_array = array( 'meadowhill_homepage_header_image_url' => esc_url_raw($_REQUEST[ 'meadowhill_homepage_header_image_url' ]),
              'meadowhill_css' => sanitize_text_field($_REQUEST[ 'meadowhill_css' ]),
              'meadowhill_favicon_url' => esc_url_raw($_REQUEST[ 'meadowhill_favicon_url' ]),
              'meadowhill_logo_url' => esc_url_raw($_REQUEST[ 'meadowhill_logo_url' ]),
              'meadowhill_header_image_height' => sanitize_text_field($_REQUEST[ 'meadowhill_header_image_height' ]),
              'meadowhill_read_more_link' => esc_url_raw($_REQUEST[ 'meadowhill_read_more_link' ]),
              'meadowhill_site_description_position' => sanitize_text_field($_REQUEST[ 'meadowhill_site_description_position' ]),
              'meadowhill_portfolio_headline' => sanitize_text_field($_REQUEST[ 'meadowhill_portfolio_headline' ]),
              'meadowhill_portfolio_items' => sanitize_text_field($_REQUEST[ 'meadowhill_portfolio_items' ]),
              'meadowhill_image_section_height' => sanitize_text_field($_REQUEST[ 'meadowhill_image_section_height' ]),
              'meadowhill_image_section_image_url' => esc_url_raw($_REQUEST[ 'meadowhill_image_section_image_url' ]),
              'meadowhill_image_section_text' => sanitize_text_field($_REQUEST[ 'meadowhill_image_section_text' ]),
              'meadowhill_read_more_image_section_link' => esc_url_raw($_REQUEST[ 'meadowhill_read_more_image_section_link' ]),
              'meadowhill_image_section_text_position' => sanitize_text_field($_REQUEST[ 'meadowhill_image_section_text_position' ]),
              'meadowhill_blog_headline' => sanitize_text_field($_REQUEST[ 'meadowhill_blog_headline' ]),
              'meadowhill_blog_items' => sanitize_text_field($_REQUEST[ 'meadowhill_blog_items' ]),
              'meadowhill_own_css' => sanitize_text_field($_REQUEST[ 'meadowhill_own_css' ]),
              'meadowhill_display_sidebar' => sanitize_text_field($_REQUEST[ 'meadowhill_display_sidebar' ]),
              'meadowhill_header_title_format' => sanitize_text_field($_REQUEST[ 'meadowhill_header_title_format' ]),
              'meadowhill_page_title_width' => sanitize_text_field($_REQUEST[ 'meadowhill_page_title_width' ]),
              'meadowhill_header_menu_width' => sanitize_text_field($_REQUEST[ 'meadowhill_header_menu_width' ]),
              'meadowhill_header_menu_format' => sanitize_text_field($_REQUEST[ 'meadowhill_header_menu_format' ]),
              'meadowhill_header_background_pattern' => sanitize_text_field($_REQUEST[ 'meadowhill_header_background_pattern' ]),
              'meadowhill_footer_background_pattern' => sanitize_text_field($_REQUEST[ 'meadowhill_footer_background_pattern' ]),
              'meadowhill_display_image_post' => sanitize_text_field($_REQUEST[ 'meadowhill_display_image_post' ]),
              'meadowhill_display_meta_post' => sanitize_text_field($_REQUEST[ 'meadowhill_display_meta_post' ]),
              'meadowhill_next_preview_post' => sanitize_text_field($_REQUEST[ 'meadowhill_next_preview_post' ]),
              'meadowhill_display_image_page' => sanitize_text_field($_REQUEST[ 'meadowhill_display_image_page' ]),
              'meadowhill_homepage_header_background_pattern' => sanitize_text_field($_REQUEST[ 'meadowhill_homepage_header_background_pattern' ]),
              'meadowhill_display_site_description_homepage' => sanitize_text_field($_REQUEST[ 'meadowhill_display_site_description_homepage' ]),
              'meadowhill_display_read_more_homepage' => sanitize_text_field($_REQUEST[ 'meadowhill_display_read_more_homepage' ]),
              'meadowhill_display_about_section' => sanitize_text_field($_REQUEST[ 'meadowhill_display_about_section' ]),
              'meadowhill_display_portfolio_section' => sanitize_text_field($_REQUEST[ 'meadowhill_display_portfolio_section' ]),
              'meadowhill_display_informational_section' => sanitize_text_field($_REQUEST[ 'meadowhill_display_informational_section' ]),
              'meadowhill_display_image_section' => sanitize_text_field($_REQUEST[ 'meadowhill_display_image_section' ]),
              'meadowhill_image_section_background_pattern' => sanitize_text_field($_REQUEST[ 'meadowhill_image_section_background_pattern' ]),
              'meadowhill_display_text_image_section' => sanitize_text_field($_REQUEST[ 'meadowhill_display_text_image_section' ]),
              'meadowhill_display_read_more_image_section' => sanitize_text_field($_REQUEST[ 'meadowhill_display_read_more_image_section' ]),
              'meadowhill_display_blog_section' => sanitize_text_field($_REQUEST[ 'meadowhill_display_blog_section' ]),
              'meadowhill_body_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_body_google_fonts' ]),
              'meadowhill_headings_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_headings_google_fonts' ]),
              'meadowhill_description_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_description_google_fonts' ]),
              'meadowhill_image_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_image_google_fonts' ]),
              'meadowhill_headline_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_headline_google_fonts' ]),
              'meadowhill_postentry_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_postentry_google_fonts' ]),
              'meadowhill_sidebar_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_sidebar_google_fonts' ]),
              'meadowhill_menu_google_fonts' => sanitize_text_field($_REQUEST[ 'meadowhill_menu_google_fonts' ]),
              'meadowhill_portfolio_category' => sanitize_text_field($_REQUEST[ 'meadowhill_portfolio_category' ]) );
						update_option( 'meadowhill_options', $meadowhill_options_array  );
					}
					else {
						delete_option( 'meadowhill_options' );
					}
				}
			}
			header("Location: themes.php?page=".basename(__FILE__)."&saved=true");
		}else if ( isset ($_REQUEST['action']) && ( 'reset' == $_REQUEST['action'] ) ) {
			foreach ($meadowhill_options as $value) {
				if ( array_key_exists('id', $value) ) {
					delete_option( 'meadowhill_options' );
				}
			}
			header("Location: themes.php?page=".basename(__FILE__)."&reset=true");
		}
	}
	add_theme_page($meadowhill_themename." Options", 'Theme Options', 'edit_theme_options', 'fw-options.php', 'meadowhill_admin', '', '1');
}

$meadowhill_options_db = get_option ('meadowhill_options');



function meadowhill_admin() {
	global $meadowhill_themename, $meadowhill_shortname, $meadowhill_options, $meadowhill_themever, $fwver, $meadowhill_manualurl; 
	if (isset($_REQUEST["saved"]) && !empty($_REQUEST["saved"])) echo '<div id="message" class="updated fade"><p><strong>'.$meadowhill_themename.' settings saved.</strong></p></div>';
	if (isset($_REQUEST["reset"]) && !empty($_REQUEST["reset"])) echo '<div id="message" class="error fade"><p><strong>'.$meadowhill_themename.' '.__( 'settings reset.', 'meadowhill' ).'</strong></p></div>';
  wp_enqueue_style('meadowhill-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 $meadowhill_themename;?> <strong><?php echo $meadowhill_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 $meadowhill_manualurl; ?>">Documentation</a><a title="Theme Support" target="_blank" class="support_fm" href="http://www.tomastoman.cz/support">Support</a><a title="MeadowHill Premium Version" target="_blank" class="premium_fm" href="http://www.tomastoman.cz/downloads/meadowhill/">Get Premium Version</a>
		</div>


	<form method="post">
	<?php 
	foreach ($meadowhill_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': ?>
<?php global $meadowhill_options_db; ?>
	<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 ( $meadowhill_options_db[$value['id']] != "") { echo stripslashes($meadowhill_options_db[$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('meadowhill-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 ( $meadowhill_options_db[$value['id']] != "") { echo stripslashes($meadowhill_options_db[$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_script('meadowhill-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 ( $meadowhill_options_db[$value['id']] != "") { echo stripslashes($meadowhill_options_db[$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 'upload-homepage-header': ?>
<?php wp_enqueue_script('meadowhill-my-admin-js-homepage-header', get_template_directory_uri() . '/js/custom-uploader-homepage-header.js', array('jquery')); ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
  <input class="upload_homepage_header" type="text" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php if ( $meadowhill_options_db[$value['id']] != "") { echo stripslashes($meadowhill_options_db[$value['id']]); } else { echo $value['std']; } ?>" /> 
  <input class="upload_homepage_header_button button" type="button" value="Upload Image" />
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>
  
<?php break;case 'upload-homepage-image': ?>
<?php wp_enqueue_script('meadowhill-my-admin-js-homepage-image', get_template_directory_uri() . '/js/custom-uploader-homepage-image.js', array('jquery')); ?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
  <input class="upload_homepage_image" type="text" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php if ( $meadowhill_options_db[$value['id']] != "") { echo stripslashes($meadowhill_options_db[$value['id']]); } else { echo $value['std']; } ?>" /> 
  <input class="upload_homepage_image_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':?>
<?php global $meadowhill_options_db; ?>
	<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 ( $meadowhill_options_db[$value['id']] != "") { echo stripslashes($meadowhill_options_db[$value['id']]); } else { echo $value['std']; } ?></textarea></div>
	<div class="desc_fm"><small><?php echo $value['desc']; ?></small></div>

<?php break; case 'select': ?>
<?php global $meadowhill_options_db; ?>
	<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 ($meadowhill_options_db[$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': ?>
<?php global $meadowhill_options_db; ?>
	<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 ( $meadowhill_options_db[$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":?>
	<div class="name_fm"><?php echo $value['name']; ?></div>
	
  <?php break; case "infotext":?>
	<div class="infotext"><?php echo $value['name']; ?></div>
  
  <?php break; case "paragraph":?>
	<div class="desc_fm"><small><?php echo $value['name']; ?></small></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', 'meadowhill_add_admin');
?>