diff -r 000000000000 -r d970ebf37754 wp/wp-content/themes/themeforest-2964855-scrn-responsive-single-page-portfolio/SCRN/teoPanel/nhp-options.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-content/themes/themeforest-2964855-scrn-responsive-single-page-portfolio/SCRN/teoPanel/nhp-options.php Wed Nov 06 03:21:17 2013 +0000 @@ -0,0 +1,2107 @@ + __('A Section added by hook', 'nhp-opts'), + + 'desc' => __('
This is a section created by adding a filter to the sections array, great to allow child themes, to add/remove sections from the options.
', 'nhp-opts'), + + //all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones. + + //You dont have to though, leave it blank for default. + + 'icon' => trailingslashit(get_template_directory_uri()).'options/img/glyphicons/glyphicons_062_attach.png', + + //Lets leave this as a blank section, no options just some intro text set above. + + 'fields' => array() + + ); + + + + return $sections; + + + +}//function + +//add_filter('nhp-opts-sections-twenty_eleven', 'add_another_section'); + + + + + +/* + + * + + * Custom function for filtering the args array given by theme, good for child themes to override or add to the args array. + + * + + */ + +function change_framework_args($args){ + + + + //$args['dev_mode'] = false; + + + + return $args; + + + +}//function + +//add_filter('nhp-opts-args-twenty_eleven', 'change_framework_args'); + + + + + + + + + + + + + + + + + + + +/* + + * This is the meat of creating the optons page + + * + + * Override some of the default values, uncomment the args and change the values + + * - no $args are required, but there there to be over ridden if needed. + + * + + * + + */ + + + +function setup_framework_options(){ + + + + $google_fonts = array( + + 'Abel' => "Abel", + + 'Abril+Fatface' => "Abril Fatface", + + 'Aclonica' => "Aclonica", + + 'Actor' => "Actor", + + 'Adamina' => "Adamina", + + 'Aguafina+Script' => "Aguafina Script", + + 'Aladin' => "Aladin", + + 'Aldrich' => "Aldrich", + + 'Alice' => "Alice", + + 'Alike+Angular' => "Alike Angular", + + 'Alike' => "Alike", + + 'Allan' => "Allan", + + 'Allerta+Stencil' => "Allerta Stencil", + + 'Allerta' => "Allerta", + + 'Amaranth' => "Amaranth", + + 'Amatic+SC' => "Amatic SC", + + 'Andada' => "Andada", + + 'Andika' => "Andika", + + 'Annie+Use+Your+Telescope' => "Annie Use Your Telescope", + + 'Anonymous+Pro' => "Anonymous Pro", + + 'Antic' => "Antic", + + 'Anton' => "Anton", + + 'Arapey' => "Arapey", + + 'Architects+Daughter' => "Architects Daughter", + + 'Arimo' => "Arimo", + + 'Artifika' => "Artifika", + + 'Arvo' => "Arvo", + + 'Asset' => "Asset", + + 'Astloch' => "Astloch", + + 'Atomic+Age' => "Atomic Age", + + 'Aubrey' => "Aubrey", + + 'Bangers' => "Bangers", + + 'Bentham' => "Bentham", + + 'Bevan' => "Bevan", + + 'Bigshot+One' => "Bigshot One", + + 'Bitter' => "Bitter", + + 'Black+Ops+One' => "Black Ops One", + + 'Bowlby+One+SC' => "Bowlby One SC", + + 'Bowlby+One' => "Bowlby One", + + 'Brawler' => "Brawler", + + 'Bubblegum+Sans' => "Bubblegum Sans", + + 'Buda' => "Buda", + + 'Butcherman+Caps' => "Butcherman Caps", + + 'Cabin+Condensed' => "Cabin Condensed", + + 'Cabin+Sketch' => "Cabin Sketch", + + 'Cabin' => "Cabin", + + 'Cagliostro' => "Cagliostro", + + 'Calligraffitti' => "Calligraffitti", + + 'Candal' => "Candal", + + 'Cantarell' => "Cantarell", + + 'Cardo' => "Cardo", + + 'Carme' => "Carme", + + 'Carter+One' => "Carter One", + + 'Caudex' => "Caudex", + + 'Cedarville+Cursive' => "Cedarville Cursive", + + 'Changa+One' => "Changa One", + + 'Cherry+Cream+Soda' => "Cherry Cream Soda", + + 'Chewy' => "Chewy", + + 'Chicle' => "Chicle", + + 'Chivo' => "Chivo", + + 'Coda+Caption' => "Coda Caption", + + 'Coda' => "Coda", + + 'Comfortaa' => "Comfortaa", + + 'Coming+Soon' => "Coming Soon", + + 'Contrail+One' => "Contrail One", + + 'Convergence' => "Convergence", + + 'Cookie' => "Cookie", + + 'Copse' => "Copse", + + 'Corben' => "Corben", + + 'Cousine' => "Cousine", + + 'Coustard' => "Coustard", + + 'Covered+By+Your+Grace' => "Covered By Your Grace", + + 'Crafty+Girls' => "Crafty Girls", + + 'Creepster+Caps' => "Creepster Caps", + + '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+Swash+Caps' => "Delius Swash Caps", + + 'Delius+Unicase' => "Delius Unicase", + + 'Delius' => "Delius", + + 'Devonshire' => "Devonshire", + + 'Didact+Gothic' => "Didact Gothic", + + 'Dorsa' => "Dorsa", + + 'Dr+Sugiyama' => "Dr Sugiyama", + + 'Droid+Sans+Mono' => "Droid Sans Mono", + + 'Droid+Sans' => "Droid Sans", + + 'Droid+Serif' => "Droid Serif", + + 'EB+Garamond' => "EB Garamond", + + 'Eater+Caps' => "Eater Caps", + + 'Expletus+Sans' => "Expletus Sans", + + 'Fanwood+Text' => "Fanwood Text", + + 'Federant' => "Federant", + + 'Federo' => "Federo", + + 'Fjord+One' => "Fjord One", + + 'Fondamento' => "Fondamento", + + 'Fontdiner+Swanky' => "Fontdiner Swanky", + + 'Forum' => "Forum", + + 'Francois+One' => "Francois One", + + 'Gentium+Basic' => "Gentium Basic", + + 'Gentium+Book+Basic' => "Gentium Book Basic", + + 'Geo' => "Geo", + + 'Geostar+Fill' => "Geostar Fill", + + 'Geostar' => "Geostar", + + 'Give+You+Glory' => "Give You Glory", + + 'Gloria+Hallelujah' => "Gloria Hallelujah", + + 'Goblin+One' => "Goblin One", + + 'Gochi+Hand' => "Gochi Hand", + + 'Goudy+Bookletter+1911' => "Goudy Bookletter 1911", + + 'Gravitas+One' => "Gravitas One", + + 'Gruppo' => "Gruppo", + + 'Hammersmith+One' => "Hammersmith One", + + 'Herr+Von+Muellerhoff' => "Herr Von Muellerhoff", + + 'Holtwood+One+SC' => "Holtwood One SC", + + 'Homemade+Apple' => "Homemade Apple", + + 'IM+Fell+DW+Pica+SC' => "IM Fell DW Pica SC", + + 'IM+Fell+DW+Pica' => "IM Fell DW Pica", + + 'IM+Fell+Double+Pica+SC' => "IM Fell Double Pica SC", + + 'IM+Fell+Double+Pica' => "IM Fell Double Pica", + + 'IM+Fell+English+SC' => "IM Fell English SC", + + 'IM+Fell+English' => "IM Fell English", + + 'IM+Fell+French+Canon+SC' => "IM Fell French Canon SC", + + 'IM+Fell+French+Canon' => "IM Fell French Canon", + + 'IM+Fell+Great+Primer+SC' => "IM Fell Great Primer SC", + + 'IM+Fell+Great+Primer' => "IM Fell Great Primer", + + 'Iceland' => "Iceland", + + 'Inconsolata' => "Inconsolata", + + 'Indie+Flower' => "Indie Flower", + + 'Irish+Grover' => "Irish Grover", + + 'Istok+Web' => "Istok Web", + + 'Jockey+One' => "Jockey One", + + 'Josefin+Sans' => "Josefin Sans", + + 'Josefin+Slab' => "Josefin Slab", + + 'Judson' => "Judson", + + 'Julee' => "Julee", + + 'Jura' => "Jura", + + 'Just+Another+Hand' => "Just Another Hand", + + 'Just+Me+Again+Down+Here' => "Just Me Again Down Here", + + 'Kameron' => "Kameron", + + 'Kelly+Slab' => "Kelly Slab", + + 'Kenia' => "Kenia", + + 'Knewave' => "Knewave", + + 'Kranky' => "Kranky", + + 'Kreon' => "Kreon", + + 'Kristi' => "Kristi", + + 'La+Belle+Aurore' => "La Belle Aurore", + + 'Lancelot' => "Lancelot", + + 'Lato' => "Lato", + + 'League+Script' => "League Script", + + 'Leckerli+One' => "Leckerli One", + + 'Lekton' => "Lekton", + + 'Lemon' => "Lemon", + + 'Limelight' => "Limelight", + + 'Linden+Hill' => "Linden Hill", + + 'Lobster+Two' => "Lobster Two", + + 'Lobster' => "Lobster", + + 'Lora' => "Lora", + + 'Love+Ya+Like+A+Sister' => "Love Ya Like A Sister", + + 'Loved+by+the+King' => "Loved by the King", + + 'Luckiest+Guy' => "Luckiest Guy", + + 'Maiden+Orange' => "Maiden Orange", + + 'Mako' => "Mako", + + 'Marck+Script' => "Marck Script", + + 'Marvel' => "Marvel", + + 'Mate+SC' => "Mate SC", + + 'Mate' => "Mate", + + 'Maven+Pro' => "Maven Pro", + + 'Meddon' => "Meddon", + + 'MedievalSharp' => "MedievalSharp", + + 'Megrim' => "Megrim", + + 'Merienda+One' => "Merienda One", + + 'Merriweather' => "Merriweather", + + 'Metrophobic' => "Metrophobic", + + 'Michroma' => "Michroma", + + 'Miltonian+Tattoo' => "Miltonian Tattoo", + + 'Miltonian' => "Miltonian", + + 'Miss+Fajardose' => "Miss Fajardose", + + 'Miss+Saint+Delafield' => "Miss Saint Delafield", + + 'Modern+Antiqua' => "Modern Antiqua", + + 'Molengo' => "Molengo", + + 'Monofett' => "Monofett", + + 'Monoton' => "Monoton", + + 'Monsieur+La+Doulaise' => "Monsieur La Doulaise", + + 'Montez' => "Montez", + + 'Mountains+of+Christmas' => "Mountains of Christmas", + + 'Mr+Bedford' => "Mr Bedford", + + 'Mr+Dafoe' => "Mr Dafoe", + + 'Mr+De+Haviland' => "Mr De Haviland", + + 'Mrs+Sheppards' => "Mrs Sheppards", + + 'Muli' => "Muli", + + 'Neucha' => "Neucha", + + 'Neuton' => "Neuton", + + 'News+Cycle' => "News Cycle", + + 'Niconne' => "Niconne", + + 'Nixie+One' => "Nixie One", + + 'Nobile' => "Nobile", + + 'Nosifer+Caps' => "Nosifer Caps", + + 'Nothing+You+Could+Do' => "Nothing You Could Do", + + '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", + + 'Old+Standard+TT' => "Old Standard TT", + + 'Open+Sans+Condensed' => "Open Sans Condensed", + + 'Open+Sans' => "Open Sans", + + 'Orbitron' => "Orbitron", + + 'Oswald' => "Oswald", + + 'Over+the+Rainbow' => "Over the Rainbow", + + 'Ovo' => "Ovo", + + 'PT+Sans+Caption' => "PT Sans Caption", + + 'PT+Sans+Narrow' => "PT Sans Narrow", + + 'PT+Sans' => "PT Sans", + + 'PT+Serif+Caption' => "PT Serif Caption", + + 'PT+Serif' => "PT Serif", + + 'Pacifico' => "Pacifico", + + 'Passero+One' => "Passero One", + + 'Patrick+Hand' => "Patrick Hand", + + 'Paytone+One' => "Paytone One", + + 'Permanent+Marker' => "Permanent Marker", + + 'Petrona' => "Petrona", + + 'Philosopher' => "Philosopher", + + 'Piedra' => "Piedra", + + 'Pinyon+Script' => "Pinyon Script", + + 'Play' => "Play", + + 'Playfair+Display' => "Playfair Display", + + 'Podkova' => "Podkova", + + 'Poller+One' => "Poller One", + + 'Poly' => "Poly", + + 'Pompiere' => "Pompiere", + + 'Prata' => "Prata", + + 'Prociono' => "Prociono", + + 'Puritan' => "Puritan", + + 'Quattrocento+Sans' => "Quattrocento Sans", + + 'Quattrocento' => "Quattrocento", + + 'Questrial' => "Questrial", + + 'Quicksand' => "Quicksand", + + 'Radley' => "Radley", + + 'Raleway' => "Raleway", + + 'Rammetto+One' => "Rammetto One", + + 'Rancho' => "Rancho", + + 'Rationale' => "Rationale", + + 'Redressed' => "Redressed", + + 'Reenie+Beanie' => "Reenie Beanie", + + 'Ribeye+Marrow' => "Ribeye Marrow", + + 'Ribeye' => "Ribeye", + + 'Righteous' => "Righteous", + + 'Rochester' => "Rochester", + + 'Rock+Salt' => "Rock Salt", + + 'Rokkitt' => "Rokkitt", + + 'Rosario' => "Rosario", + + 'Ruslan+Display' => "Ruslan Display", + + 'Salsa' => "Salsa", + + 'Sancreek' => "Sancreek", + + 'Sansita+One' => "Sansita One", + + 'Satisfy' => "Satisfy", + + 'Schoolbell' => "Schoolbell", + + 'Shadows+Into+Light' => "Shadows Into Light", + + 'Shanti' => "Shanti", + + 'Short+Stack' => "Short Stack", + + 'Sigmar+One' => "Sigmar One", + + 'Signika+Negative' => "Signika Negative", + + 'Signika' => "Signika", + + 'Six+Caps' => "Six Caps", + + 'Slackey' => "Slackey", + + 'Smokum' => "Smokum", + + 'Smythe' => "Smythe", + + 'Sniglet' => "Sniglet", + + 'Snippet' => "Snippet", + + 'Sorts+Mill+Goudy' => "Sorts Mill Goudy", + + 'Source+Sans+Pro' => "Source Sans Pro", + + 'Special+Elite' => "Special Elite", + + 'Spinnaker' => "Spinnaker", + + 'Spirax' => "Spirax", + + 'Stardos+Stencil' => "Stardos Stencil", + + 'Sue+Ellen+Francisco' => "Sue Ellen Francisco", + + 'Sunshiney' => "Sunshiney", + + 'Supermercado+One' => "Supermercado One", + + 'Swanky+and+Moo+Moo' => "Swanky and Moo Moo", + + 'Syncopate' => "Syncopate", + + 'Tangerine' => "Tangerine", + + 'Tenor+Sans' => "Tenor Sans", + + 'Terminal+Dosis' => "Terminal Dosis", + + 'The+Girl+Next+Door' => "The Girl Next Door", + + 'Tienne' => "Tienne", + + 'Tinos' => "Tinos", + + 'Tulpen+One' => "Tulpen One", + + 'Ubuntu+Condensed' => "Ubuntu Condensed", + + 'Ubuntu+Mono' => "Ubuntu Mono", + + 'Ubuntu' => "Ubuntu", + + 'Ultra' => "Ultra", + + 'UnifrakturCook' => "UnifrakturCook", + + 'UnifrakturMaguntia' => "UnifrakturMaguntia", + + 'Unkempt' => "Unkempt", + + 'Unlock' => "Unlock", + + 'Unna' => "Unna", + + 'VT323' => "VT323", + + 'Varela+Round' => "Varela Round", + + 'Varela' => "Varela", + + 'Vast+Shadow' => "Vast Shadow", + + 'Vibur' => "Vibur", + + 'Vidaloka' => "Vidaloka", + + 'Volkhov' => "Volkhov", + + 'Vollkorn' => "Vollkorn", + + 'Voltaire' => "Voltaire", + + '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", + + ); + + $args = array(); + + + +//Set it to dev mode to view the class settings/info in the form - default is false + +$args['dev_mode'] = true; + + + +//google api key MUST BE DEFINED IF YOU WANT TO USE GOOGLE WEBFONTS + +//$args['google_api_key'] = '***'; + + + +//Remove the default stylesheet? make sure you enqueue another one all the page will look whack! + +//$args['stylesheet_override'] = true; + + + +//Add HTML before the form + +//$args['intro_text'] = __('Don\'t forget to save the settings!
', 'nhp-opts'); + + + +//Setup custom links in the footer for share icons + +$args['share_icons']['facebook'] = array( + + 'link' => 'http://www.facebook.com/finaldestiny16', + + 'title' => 'My facebook account', + + 'img' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_320_facebook.png' + + ); + +$args['share_icons']['themeforest'] = array( + + 'link' => 'http://themeforest.net/user/FinalDestiny', + + 'title' => 'My themeforest account', + + 'img' => NHP_OPTIONS_URL . 'img/glyphicons/glyphicons_050_link.png' + + ); + +//Choose to disable the import/export feature + +//$args['show_import_export'] = false; + + + +//Choose a custom option name for your theme options, the default is the theme name in lowercase with spaces replaced by underscores + +$args['opt_name'] = 'scrn'; + + + +$args['google_api_key'] = 'AIzaSyB0_zr4gsc6PkFl5UiHDj6ROiXtuYb7QBk'; + + + +//Custom menu icon + +//$args['menu_icon'] = ''; + + + +//Custom menu title for options page - default is "Options" + +$args['menu_title'] = __('SCRN Options', 'nhp-opts'); + + + +//Custom Page Title for options page - default is "Options" + +$args['page_title'] = __('SCRN Theme Options', 'nhp-opts'); + + + +//Custom page slug for options page (wp-admin/themes.php?page=***) - default is "nhp_theme_options" + +$args['page_slug'] = 'scrn_options'; + + + +//Custom page capability - default is set to "manage_options" + +//$args['page_cap'] = 'manage_options'; + + + +//page type - "menu" (adds a top menu section) or "submenu" (adds a submenu) - default is set to "menu" + +//$args['page_type'] = 'submenu'; + + + +//parent menu - default is set to "themes.php" (Appearance) + +//the list of available parent menus is available here: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters + +//$args['page_parent'] = 'themes.php'; + + + +//custom page location - default 100 - must be unique or will override other items + +$args['page_position'] = 27; + + + +$args['footer_credit'] = ''; + + + +//Custom page icon class (used to override the page icon next to heading) + +//$args['page_icon'] = 'icon-themes'; + + + +//Want to disable the sections showing as a submenu in the admin? uncomment this line + +//$args['allow_sub_menu'] = false; + + + +//Set ANY custom page help tabs - displayed using the new help tab API, show in order of definition + +$args['help_tabs'][] = array( + + 'id' => 'nhp-opts-1', + + 'title' => __('Theme Information 1', 'nhp-opts'), + + 'content' => __('This is the tab content, HTML is allowed.
', 'nhp-opts') + + ); + +$args['help_tabs'][] = array( + + 'id' => 'nhp-opts-2', + + 'title' => __('Theme Information 2', 'nhp-opts'), + + 'content' => __('This is the tab content, HTML is allowed.
', 'nhp-opts') + + ); + + + +//Set the Help Sidebar for the options page - no sidebar by default + +$args['help_sidebar'] = __('This is the sidebar content, HTML is allowed.
', 'nhp-opts'); + + + + + + + +$sections = array(); + + + +$sections[] = array( + + 'title' => __('General Settings', 'nhp-opts'), + + 'desc' => __('Here you can configure the general aspects of the theme.!
', 'nhp-opts'), + + //all the glyphicons are included in the options folder, so you can hook into them, or link to your own custom ones. + + //You dont have to though, leave it blank for default. + + 'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_062_attach.png', + + 'fields' => array( + + array( + + 'id' => 'favicon', + + 'type' => 'upload', + + 'title' => 'Favicon', + + 'sub_desc' => 'This is the little icon in the address bar for your website' + + ), + + array( + + 'id' => 'superadmin', + + 'type' => 'text', + + 'title' => 'Super admin username', + + 'sub_desc' => 'You can show the Theme options just for one admin user with this option! BE CAREFUL WITH THIS ONE!.', + + 'std' => '' + + ), + + array( + + 'id' => 'email', + + 'type' => 'text', + + 'title' => 'Contact form e-mail', + + 'sub_desc' => 'This is the e-mail where you\'ll receive all the messages from the contact page', + + 'std' => get_bloginfo('admin_email') + + ), + + array( + + 'id' => 'wordpress_version', + + 'type' => 'button_set', + + 'options' => array('1' => 'Yes', '0' => 'No'), + + 'title' => 'Show the wordpress version in your source code?', + + 'std' => 1 + + ), + + array( + + 'id' => 'blog_page', + + 'type' => 'pages_multi_select', + + 'title' => 'Page used for the blog page', + + 'sub_desc' => 'This will be added in the menu if you don\'t setup the menu in Appearance > Menus', + + 'args' => array(), + + 'std' => '' + + ), + + array( + + 'id' => 'topheader_text', + + 'type' => 'text', + + 'title' => 'Top header text', + + 'sub_desc' => 'This is the top header text, like Welcome on our demo.', + + 'std' => 'Hello' + + ), + + array( + + 'id' => 'topheader_smalltext', + + 'type' => 'text', + + 'title' => 'Top header small text', + + 'sub_desc' => 'This appears under the top header text above. Some little description about you here.', + + 'std' => 'Welcome to scrn' + + ), + + array( + + 'id' => 'topheader_smallertext', + + 'type' => 'text', + + 'title' => 'Top header smaller text', + + 'sub_desc' => 'This appears after the small text on the homepage, some more info about you here.', + + 'std' => 'Don\'t be too proud of this technological terror you\'ve constructed.This area controls the menu(if it\'s not setup in Appearance -> Menus and the Breadcrumbs section.
', 'nhp-opts'), + + 'fields' => array( + + array( + + 'id' => 'pages_topmenu', + + 'type' => 'pages_multi_select', + + 'title' => __('Pages to include in the top menu', 'nhp-opts'), + + 'sub_desc' => __('Choose what pages you want in the top menu.', 'nhp-opts'), + + 'args' => '', + + 'std' => '' + + ), + + array( + + 'id' => 'menu_homelink', + + 'type' => 'button_set', + + 'options' => array('1' => 'Yes', '0' => 'No'), + + 'title' => 'Show a home link in the top menu?', + + 'sub_desc' => 'This will work only if you didn\'t set a menu in Appearance -> Menus.', + + 'std' => 1 + + ) + + ) + + ); + +$sections[] = array( + + 'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_157_show_lines.png', + + 'title' => __('Integration', 'nhp-opts'), + + 'desc' => __('Use this to integrate google analytics code or to add any meta tag / html code you want.
', 'nhp-opts'), + + 'fields' => array( + + array( + + 'id' => 'integration_footer', + + 'type' => 'textarea', + + 'title' => __('Code before the </body> tag', 'nhp-opts'), + + 'sub_desc' => __('Use this one for google analytics for example.', 'nhp-opts'), + + 'std' => '' + + ), + + array( + + 'id' => 'integration_header', + + 'type' => 'textarea', + + 'title' => __('The code will be added before the </head> tag', 'nhp-opts'), + + 'sub_desc' => __('Use this one if you want to verify your site for google/bing/alexa/etc for example.', 'nhp-opts'), + + 'std' => '' + + ), + + ) + + ); + +$sections[] = array( + + 'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_107_text_resize.png', + + 'title' => __('Colorization & Fonts', 'nhp-opts'), + + 'desc' => __('This is the Description. Again HTML is allowed
', 'nhp-opts'), + + 'fields' => array( + + array( + + 'id' => 'enable_colorization', + + 'type' => 'button_set', + + 'options' => array('1' => 'Yes', '0' => 'No'), + + 'title' => 'Enable custom colorization & font changes?', + + 'sub_desc' => 'Please note that if you enable if, all the bottom settings will be used. For just some changes, use style.css.', + + 'std' => 0 + + ), + + array( + + 'id' => 'bg_image', + + 'type' => 'upload', + + 'title' => 'Background image', + + 'sub_desc' => 'Use this only if you want a custom background image, different than the default one.' + + ), + + array( + + 'id' => 'bg_color', + + 'type' => 'color', + + 'title' => 'Background color', + + 'sub_desc' => 'This will override any background image that was used previously and use just a color.' + + ), + + array( + + 'id' => 'body_font', + + 'title' => 'Font for the page titles:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the body text', + + 'std' => 'Source+Sans+Pro' + + ), + + array( + + 'id' => 'body_size', + + 'type' => 'text', + + 'title' => 'The default font size for the body text', + + 'sub_desc' => 'This is the default font-size used on the body text(use just numbers, without px)', + + 'std' => '16', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'body_color_white', + + 'title' => 'Color for the body text with white background:', + + 'type' => 'color', + + 'sub_desc' => 'The color used on the body text when the white background is used', + + 'std' => '#3D3D3D' + + ), + + array( + + 'id' => 'body_color_dark', + + 'title' => 'Color for the body text with the dark background:', + + 'type' => 'color', + + 'sub_desc' => 'The color used on the body text when the dark background is used', + + 'std' => '#F9F9F9' + + ), + + array( + + 'id' => 'top_headertext_size', + + 'type' => 'text', + + 'title' => 'Font-size for the top header text', + + 'sub_desc' => 'This is the font-size of the first big text on the homepage. Use just numeric values without px', + + 'std' => '120', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'top_headertext_color', + + 'type' => 'color', + + 'title' => 'Color for the top header text', + + 'sub_desc' => 'This is the color of the first big text on the homepage.', + + 'std' => '#FFFFFF' + + ), + + array( + + 'id' => 'top_headertext_font', + + 'title' => 'Font for the top header text:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the top header text', + + 'std' => 'Oswald' + + ), + + array( + + 'id' => 'top_smalltext_size', + + 'type' => 'text', + + 'title' => 'Font-size for the small header text', + + 'sub_desc' => 'Font-size for the small text under the big one, on the first page. Use just numeric values without px', + + 'std' => '90', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'top_smalltext_color', + + 'type' => 'color', + + 'title' => 'Color for the small header text', + + 'sub_desc' => 'This is the color of the small text in the header, under the big heading.', + + 'std' => '#FFFFFF', + + ), + + array( + + 'id' => 'top_smalltext_font', + + 'title' => 'Font for the small header text:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the small header text', + + 'std' => 'Oswald' + + ), + + array( + + 'id' => 'top_smallertext_size', + + 'type' => 'text', + + 'title' => 'Font-size for the smaller header text', + + 'sub_desc' => 'Font-size for the smaller text under the small text above, on the first page. Use just numeric values without px', + + 'std' => '40', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'top_smallertext_color', + + 'type' => 'color', + + 'title' => 'Color for the smaller header text', + + 'sub_desc' => 'This is the color of the smaller text in the header, under the small text above.', + + 'std' => '#FFFFFF', + + ), + + array( + + 'id' => 'top_smallertext_font', + + 'title' => 'Font for the small header text:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the small header text', + + 'std' => 'Oswald' + + ), + + array( + + 'id' => 'nav_color', + + 'type' => 'color', + + 'title' => 'The color for the navigation menu', + + 'sub_desc' => 'The color used on the navigation menu', + + 'std' => '#515151' + + ), + + array( + + 'id' => 'nav_hovercolor', + + 'type' => 'color', + + 'title' => 'The hover color for the navigation menu', + + 'sub_desc' => 'The hover color used on the navigation menu', + + 'std' => '#000000' + + ), + + array( + + 'id' => 'nav_size', + + 'type' => 'text', + + 'title' => 'The font-size for the navigation menu items', + + 'sub_desc' => 'The font-size used on the navigation menu items', + + 'std' => '16' + + ), + + array( + + 'id' => 'nav_font', + + 'title' => 'Font for the navigation menu items:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the navigation menu items', + + 'std' => 'Source+Sans+Pro' + + ), + + array( + + 'id' => 'pagetitle_font', + + 'title' => 'Font for the page titles:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on paragraphs', + + 'std' => 'Oswald' + + ), + + array( + + 'id' => 'pagetitle_size', + + 'type' => 'text', + + 'title' => 'The default font size for the page titles', + + 'sub_desc' => 'This is the default font-size used on the page titles(use just numbers, without px)', + + 'std' => '60', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'pagetitle_color', + + 'title' => 'Color for the page titles:', + + 'type' => 'color', + + 'sub_desc' => 'The color used on the page titles', + + 'std' => '#434343' + + ), + + array( + + 'id' => 'subheader_font', + + 'title' => 'Font for the subheader shortcode:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the subheader shortcode', + + 'std' => 'Source+Sans+Pro' + + ), + + array( + + 'id' => 'subheader_size', + + 'type' => 'text', + + 'title' => 'The default font size for the subheader shortcode', + + 'sub_desc' => 'This is the default font-size used on the subheader shortcode(use just numbers, without px)', + + 'std' => '22', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'subheader_color', + + 'title' => 'Color for the subheader shortcode:', + + 'type' => 'color', + + 'sub_desc' => 'The color used on the subheader shortcode', + + 'std' => '#515151' + + ), + + array( + + 'id' => 'h3_size', + + 'type' => 'text', + + 'title' => 'The default font size for the h3 heading', + + 'sub_desc' => 'This is the default font-size used on the h3 headings(use just numbers, without px)', + + 'std' => '30', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'h3_font', + + 'title' => 'The default font for the h3 heading:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the h3 headings', + + 'std' => 'Oswald' + + ), + + array( + + 'id' => 'h3_color', + + 'type' => 'color', + + 'title' => 'The default color for the h3 heading', + + 'sub_desc' => 'This is the default color used on the h3 headings', + + 'std' => '#434343', + + ), + + array( + + 'id' => 'h4_size', + + 'type' => 'text', + + 'title' => 'The default font size for the h4 heading', + + 'sub_desc' => 'This is the default font-size used on the h4 headings(use just numbers, without px)', + + 'std' => '18', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'h4_font', + + 'title' => 'The default font for the h4 heading:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the h4 headings', + + 'std' => 'Source+Sans+Pro' + + ), + + array( + + 'id' => 'h4_color', + + 'type' => 'color', + + 'title' => 'The default color for the h4 heading', + + 'sub_desc' => 'This is the default color used on the h4 headings', + + 'std' => '#434343', + + ), + + array( + + 'id' => 'separator_size', + + 'type' => 'text', + + 'title' => 'The default font size for the separators', + + 'sub_desc' => 'This is the default font-size used on the separators(use just numbers, without px)', + + 'std' => '30', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'separator_font', + + 'title' => 'The default font for the separators:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the separators', + + 'std' => 'Source+Sans+Pro' + + ), + + array( + + 'id' => 'separator_color', + + 'title' => 'The color for the separators', + + 'type' => 'color', + + 'std' => '#ffffff' + + ), + + array( + + 'id' => 'footer_size', + + 'type' => 'text', + + 'title' => 'The default font size for the footer text', + + 'sub_desc' => 'This is the default font-size used on the footer text(use just numbers, without px)', + + 'std' => '14', + + 'validate' => 'numeric' + + ), + + array( + + 'id' => 'footer_font', + + 'title' => 'The default font for the footer text:', + + 'type' => 'select', + + 'options' => $google_fonts, + + 'sub_desc' => 'The google font to be used on the footer text', + + 'std' => 'Source+Sans+Pro' + + ), + + array( + + 'id' => 'footer_color', + + 'title' => 'The default color for the footer text:', + + 'type' => 'color', + + 'sub_desc' => 'The color of the footer text', + + 'std' => '#858585' + + ), + + ) + + ); + + + + $tabs = array(); + + + + if (function_exists('wp_get_theme')){ + + $theme_data = wp_get_theme(); + + $theme_uri = $theme_data->get('ThemeURI'); + + $description = $theme_data->get('Description'); + + $author = $theme_data->get('Author'); + + $version = $theme_data->get('Version'); + + $tags = $theme_data->get('Tags'); + + }else{ + + $theme_data = wp_get_theme(); + + $theme_uri = $theme_data['ThemeURI']; + + $description = $theme_data['Description']; + + $author = $theme_data['Author']; + + $version = $theme_data['Version']; + + $tags = $theme_data['Tags']; + + } + + + + $theme_info = ''.__('Theme URL: ', 'nhp-opts').''.$theme_uri.'
'; + + $theme_info .= ' '; + + $theme_info .= ''.__('Version: ', 'nhp-opts').$version.'
'; + + $theme_info .= ''.$description.'
'; + + $theme_info .= ' '; + + $theme_info .= '