<?php



/*



 * 



 * Require the framework class before doing anything else, so we can use the defined urls and dirs



 * Also if running on windows you may have url problems, which can be fixed by defining the framework url first



 *



 */



//define('NHP_OPTIONS_URL', site_url('path the options folder'));



if(!class_exists('NHP_Options')){



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



}







/*



 * 



 * Custom function for filtering the sections array given by theme, good for child themes to override or add to the sections.



 * Simply include this function in the child themes functions.php file.



 *



 * NOTE: the defined constansts for urls, and dir will NOT be available at this point in a child theme, so you must use



 * get_template_directory_uri() if you want to use any of the built in icons



 *



 */



function add_another_section($sections){



	



	//$sections = array();



	$sections[] = array(



				'title' => __('A Section added by hook', 'nhp-opts'),



				'desc' => __('<p class="description">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.</p>', '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(){



$args = array();







//Set it to dev mode to view the class settings/info in the form - default is false



$args['dev_mode'] = false;







//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'] = __('<p></p>', 'nhp-opts');







//Setup custom links in the footer for share icons







//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'] = 'social_press';







//Custom menu icon



//$args['menu_icon'] = '';







//Custom menu title for options page - default is "Options"



$args['menu_title'] = __('Theme Options', 'nhp-opts');







//Custom Page Title for options page - default is "Options"



$args['page_title'] = __('WP Social Press Theme Options', 'nhp-opts');







//Custom page slug for options page (wp-admin/themes.php?page=***) - default is "nhp_theme_options"



$args['page_slug'] = 'nhp_theme_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;







//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' => __('<p>This is the tab content, HTML is allowed.</p>', 'nhp-opts')



							);



$args['help_tabs'][] = array(



							'id' => 'nhp-opts-2',



							'title' => __('Theme Information 2', 'nhp-opts'),



							'content' => __('<p>This is the tab content, HTML is allowed.</p>', 'nhp-opts')



							);







//Set the Help Sidebar for the options page - no sidebar by default										



$args['help_sidebar'] = __('<p>This is the sidebar content, HTML is allowed.</p>', 'nhp-opts');















$sections = array();







				



$sections[] = array(



				'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_107_text_resize.png',



				'title' => __('General Settings', 'nhp-opts'),



				'desc' => __('<p class="description">In this section you can change some general settings.</p>', 'nhp-opts'),



				'fields' => array(



				



					array(



						'id' => '14',



						'type' => 'select',



						'title' => __('Select Logo Type', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array('1' => 'Image','2' => 'Text'),//Must provide key => value pairs for select options



						'std' => '2'



						),



						



					array(



						'id' => '19',



						'type' => 'upload',



						'title' => __('Upload logo', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



					array(



						'id' => '219', //must be unique



						'type' => 'text', 



						'title' => __('Logo', 'nhp-opts'),



						'sub_desc' => __('Logo', 'nhp-opts'),



						'desc' => __('Enter Logo text (can add html for emphasis if desired) h1, b etc...', 'nhp-opts'),

 

					



						),



						



			



						array(



						'id' => '555', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Home Page Banner Text', 'nhp-opts'),



						'sub_desc' => __('Banner Info', 'nhp-opts'),



						'desc' => __('Enter banner text (can add html for emphasis if desired) h1, b etc...', 'nhp-opts'),



						),



						



						



						



						



						array(



						'id' => '556', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Footer Text', 'nhp-opts'),



						'sub_desc' => __('Copyright Info', 'nhp-opts'),



						'desc' => __('Enter copyright text', 'nhp-opts'),



						),

						

						

						

						array(



						'id' => '505050', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Email address', 'nhp-opts'),



						'sub_desc' => __('Contact form', 'nhp-opts'),



						'desc' => __('Enter your destination email address for the contact form', 'nhp-opts'),



						),



					



					)



				);

				

				



$sections[] = array(



				'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_150_check.png',



				'title' => __('Social Links', 'nhp-opts'),











				'desc' => __('<p class="description">In this section you can insert your social network links.</p>', 'nhp-opts'),



				'fields' => array(



					array(



						'id' => '340', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Pinterest', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						array(



						'id' => '333', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Facebook', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '334', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Twitter', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '335', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Linked In', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '336', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Digg', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '337', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Stumble Upon', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '338', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Sound cloud', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '339', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Myspace', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



												



						array(



						'id' => '341', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Google plus', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '342', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('You tube', 'nhp-opts'),



						'sub_desc' => __('Social Link', 'nhp-opts'),



						'desc' => __('Enter Url', 'nhp-opts'),



						),



					



																							



					)



				);



				



				



				



				



				



$sections[] = array(



				'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_107_text_resize.png',



				'title' => __('Sales Page', 'nhp-opts'),



				'desc' => __('<p class="description">This section is for sales page.</p>', 'nhp-opts'),



				'fields' => array(



				



					array(



						'id' => '803', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Sales Page Banner Heading', 'nhp-opts'),



						'sub_desc' => __('Banner Heading', 'nhp-opts'),



						'desc' => __('Enter text', 'nhp-opts'),



						),



						



					array(



						'id' => '1803', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Sales Page Banner text', 'nhp-opts'),



						'sub_desc' => __('Banner text', 'nhp-opts'),



						'desc' => __('Enter text', 'nhp-opts'),



						),



						



						array(



						'id' => '802',



						'type' => 'upload',



						'title' => __('Sales Page Image', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



						



						array(



						'id' => '801', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Sales Page Save Offer', 'nhp-opts'),



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('Enter text', 'nhp-opts'),



						),



						



						array(



						'id' => '804', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Sales Page Deal Price', 'nhp-opts'),



						'sub_desc' => __(' Info', 'nhp-opts'),



						'desc' => __('Enter text', 'nhp-opts'),



						),



						



						array(



						'id' => '1804', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Sales Page Deal Mid Text', 'nhp-opts'),



						'sub_desc' => __(' Info', 'nhp-opts'),



						'desc' => __('Enter text', 'nhp-opts'),



						),



						



						array(



						'id' => '1805', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Sales Page Deal Date', 'nhp-opts'),



						'sub_desc' => __(' Info', 'nhp-opts'),



						'desc' => __('Enter text', 'nhp-opts'),



						),



				



				array(



						'id' => '23',



						'type' => 'info',



						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description"> PRODUCT 1 </p>', 'nhp-opts')



						),



				



					



						



						array(



						'id' => '1112', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer mid', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1113', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer left', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1114', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer right', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1115',



						'type' => 'upload',



						'title' => __('Upload image', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



						array(



						'id' => '1116', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Heading', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						







						array(



						'id' => '1117', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Description', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1118', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Buy now link', 'nhp-opts'),



						



						'desc' => __('Enter url', 'nhp-opts'),



						),



						



						array(



						'id' => '23',



						'type' => 'info',



						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description"> PRODUCT 2 </p>', 'nhp-opts')



						),



						



						array(



						'id' => '1122', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer mid', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1123', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer left', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1124', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer right', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1125',



						'type' => 'upload',



						'title' => __('Upload image', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



						array(



						'id' => '1126', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Heading', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						







						array(



						'id' => '1127', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Description', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1128', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Buy now link', 'nhp-opts'),



						



						'desc' => __('Enter url', 'nhp-opts'),



						),



						



						array(



						'id' => '23',



						'type' => 'info',



						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description"> PRODUCT 3 </p>', 'nhp-opts')



						),						



						



						array(



						'id' => '1132', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer mid', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1133', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer left', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1134', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer right', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1135',



						'type' => 'upload',



						'title' => __('Upload image', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



						array(



						'id' => '1136', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Heading', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						







						array(



						'id' => '1137', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Description', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1138', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Buy now link', 'nhp-opts'),



						



						'desc' => __('Enter url', 'nhp-opts'),



						),



						



						



						array(



						'id' => '23',



						'type' => 'info',



						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description"> PRODUCT 4 </p>', 'nhp-opts')



						),



				



					array(



						'id' => '1142', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer mid', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1143', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer left', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1144', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer right', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1145',



						'type' => 'upload',



						'title' => __('Upload image', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



						array(



						'id' => '1146', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Heading', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						







						array(



						'id' => '1147', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Description', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1148', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Buy now link', 'nhp-opts'),



						



						'desc' => __('Enter url', 'nhp-opts'),



						),



						



						array(



						'id' => '23',



						'type' => 'info',



						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description"> PRODUCT 5 </p>', 'nhp-opts')



						),



						



						array(



						'id' => '1152', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer mid', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1153', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer left', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1154', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer right', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1155',



						'type' => 'upload',



						'title' => __('Upload image', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



						array(



						'id' => '1156', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Heading', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						







						array(



						'id' => '1157', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Description', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1158', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Buy now link', 'nhp-opts'),



						



						'desc' => __('Enter url', 'nhp-opts'),



						),



						



						array(



						'id' => '23',



						'type' => 'info',



						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description"> PRODUCT 6 </p>', 'nhp-opts')



						),						



						



						array(



						'id' => '1162', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer mid', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1163', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer left', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1164', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Offer right', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1165',



						'type' => 'upload',



						'title' => __('Upload image', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts')



						),



						



						array(



						'id' => '1166', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Heading', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						







						array(



						'id' => '1167', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Description', 'nhp-opts'),



						



						'desc' => __('Enter here', 'nhp-opts'),



						),



						



						array(



						'id' => '1168', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Buy now link', 'nhp-opts'),



						



						'desc' => __('Enter url', 'nhp-opts'),



						),



					



					)



				);				



			



				



$sections[] = array(



				'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_157_show_lines.png',



				'title' => __('Colors', 'nhp-opts'),



				'desc' => __('<p class="description">In this section you can select your color scheme.</p>', 'nhp-opts'),



				'fields' => array(



				



					







						



					array(



						'id' => '18',



						'type' => 'radio_img',



						'title' => __('Color Scheme', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array(



										'1' => array('title' => 'Blue', 'img' =>  '../wp-content/themes/WP-Social-Press/images/blue11.png'),



										'2' => array('title' => 'Maroon', 'img' => '../wp-content/themes/WP-Social-Press/images/brown11.png'),



										'3' => array('title' => 'Gray', 'img' => '../wp-content/themes/WP-Social-Press/images/gray11.png'),



										'4' => array('title' => 'Green', 'img' => '../wp-content/themes/WP-Social-Press/images/green11.png'),



										'5' => array('title' => 'Orange', 'img' => '../wp-content/themes/WP-Social-Press/images/orange11.png'),



										'6' => array('title' => 'Pink', 'img' => '../wp-content/themes/WP-Social-Press/images/pink11.png'),



										'7' => array('title' => 'Red', 'img' => '../wp-content/themes/WP-Social-Press/images/red11.png'),



										'8' => array('title' => 'Voilet', 'img' => '../wp-content/themes/WP-Social-Press/images/voilet11.png'),



										'9' => array('title' => 'Black', 'img' => '../wp-content/themes/WP-Social-Press/images/black11.png'),



										'10' => array('title' => 'Brown', 'img' => '../wp-content/themes/WP-Social-Press/images/brown22.png')



										



											),//Must provide key => value(array:title|img) pairs for radio options



						'std' => '2'



						),



						



				



									



					)



				);



				



$sections[] = array(



				'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_157_show_lines.png',



				'title' => __('Popup', 'nhp-opts'),



				'desc' => __('<p class="description">In this section you can edit your popup settings.</p>', 'nhp-opts'),



				'fields' => array(



				



					



					array(



						'id' => '669',



						'type' => 'select',



						'title' => __('Mode', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array('1' => 'Enable','2' => 'Disable'),//Must provide key => value pairs for select options



						'std' => '2'



						),



						



						



					array(



						'id' => '679',



						'type' => 'pages_multi_select',



						'title' => __('Select page on which you want to enable popup', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'args' => array('number' => '15')//uses get_pages



						),



				



						



						



						array(



						'id' => '569', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Popup Width', 'nhp-opts'),



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('px', 'nhp-opts'),



						),



						



						array(



						'id' => '469', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Popup Height', 'nhp-opts'),



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('px', 'nhp-opts'),



						),







						array(



						'id' => '489', //must be unique



						'type' => 'text', //builtin fields include:



						'title' => __('Popup Timer', 'nhp-opts'),



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('seconds', 'nhp-opts'),



						),

						

						

						array(



						'id' => '000011',



						'type' => 'select',



						'title' => __('Content Type', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array('1' => 'Custom html','2' => 'Default Subscription form'),//Must provide key => value pairs for select options



						'std' => '2'



						),



						



						array(



						'id' => '369',



						'type' => 'editor',



						'title' => __('Custom Html for popup goes here', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'std' => 'OOOOOOhhhh, rich editing.'



						),

						

						

						array(

						'id' => '000012', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Form Action', 'nhp-opts'),

						'sub_desc' => __('Default subscription form', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(



						'id' => '000013',



						'type' => 'select',



						'title' => __('Form Method', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array('1' => 'get','2' => 'post'),//Must provide key => value pairs for select options



						'std' => '2'



						),

						

						

						array(

						'id' => '000014', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Field 1 Name', 'nhp-opts'),

						'sub_desc' => __('email', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '000015', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Field 1 Id', 'nhp-opts'),

						'sub_desc' => __('email id', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						

						array(

						'id' => '000016', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Submit Button Title', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						

						array(

						'id' => '000017', //must be unique

						'type' => 'textarea', //builtin fields include:

						'title' => __('Hidden Fields / Other Fields', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '000030', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Special Offer Link', 'nhp-opts'),

						'sub_desc' => __('http format', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '000031', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('No Thanks Link', 'nhp-opts'),

						'sub_desc' => __('http format', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						

						

						



												



					)



				);



				



				

$sections[] = array(



				'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_157_show_lines.png',



				'title' => __('Date', 'nhp-opts'),



				'desc' => __('<p class="description">In this section you can edit your blog posts date settings.</p>', 'nhp-opts'),



				'fields' => array(



				



					



					array(



						'id' => '6669',



						'type' => 'select',



						'title' => __('Mode', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array('1' => 'Default','2' => 'Text','3' => 'Disable'),//Must provide key => value pairs for select options



						'std' => '3'



						),

						

						

						



										



					)



				);

				

 $sections[] = array(



				'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_157_show_lines.png',



				'title' => __('Landing Page', 'nhp-opts'),



				'desc' => __('<p class="description">In this section you can edit your Landing Page Settings.</p>', 'nhp-opts'),



				'fields' => array(



				



					



					array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Banner</p>', 'nhp-opts'),

				),

				

				array(

						'id' => '5540', //must be unique

						'type' => 'color',

						'title' => __('Banner Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '5541', //must be unique

						'type' => 'color',

						'title' => __('Content Background Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

				

				array(

						'id' => '4420', //must be unique

						'type' => 'text',

						'title' => __('Title', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5542', //must be unique

						'type' => 'color',

						'title' => __('Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),



						array(

						'id' => '4421', //must be unique

						'type' => 'text',

						'title' => __('Title right', 'nhp-opts'),

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5543', //must be unique

						'type' => 'color',

						'title' => __('Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '4422', //must be unique

						'type' => 'text',

						'title' => __('Title right', 'nhp-opts'),

						'sub_desc' => __('2', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5544', //must be unique

						'type' => 'color',

						'title' => __('Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '44222', //must be unique

						'type' => 'textarea',

						'title' => __('Video', 'nhp-opts'),

						'sub_desc' => __('Size (480x305)', 'nhp-opts'),

						'desc' => __('Enter code', 'nhp-opts'),

						),

						

						array(

						'id' => '5545', //must be unique

						'type' => 'color',

						'title' => __('Main Heading Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '5546', //must be unique

						'type' => 'color',

						'title' => __('Paragraph Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),





						array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Email Form </p>', 'nhp-opts'),

						),

			

						array(

						'id' => '94421', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Form Action', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(



						'id' => '94430',



						'type' => 'select',



						'title' => __('Form Method', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array('1' => 'get','2' => 'post'),//Must provide key => value pairs for select options



						'std' => '2'



						),

						

						

						array(

						'id' => '94422', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Form Id', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '94423', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Form Name', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						

						array(

						'id' => '94424', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Field 1 Name', 'nhp-opts'),

						'sub_desc' => __('case sensitive', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '94425', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Field 1 Id', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '94426', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Field 2 Name', 'nhp-opts'),

						'sub_desc' => __('case sensitive', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '94427', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Field 2 Id', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						

						array(

						'id' => '94428', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Submit Button Title', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						

						array(

						'id' => '94429', //must be unique

						'type' => 'textarea', //builtin fields include:

						'title' => __('Hidden Fields / Other Fields', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '944421', //must be unique

						'type' => 'textarea', //builtin fields include:

						'title' => __('Help', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('How to use autoresponder codes', 'nhp-opts'),

						), 

						

						

						array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Testimonial</p>', 'nhp-opts'),

						),

				

						array(



						'id' => '666669',



						'type' => 'select',



						'title' => __('Mode', 'nhp-opts'), 



						'sub_desc' => __('', 'nhp-opts'),



						'desc' => __('', 'nhp-opts'),



						'options' => array('1' => 'Enable','2' => 'Disable'),//Must provide key => value pairs for select options



						'std' => '3'



						),

						

					







					        array(

						'id' => '4423', //must be unique

						'type' => 'upload',

						'title' => __('Image', 'nhp-opts'),

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),



						array(

						'id' => '4424', //must be unique

						'type' => 'text',

						'title' => __('Title ', 'nhp-opts'),

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5547', //must be unique

						'type' => 'color',

						'title' => __('Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '4425', //must be unique

						'type' => 'text',

						'title' => __('Writer', 'nhp-opts'),

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5548', //must be unique

						'type' => 'color',

						'title' => __('Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '4432', //must be unique

						'type' => 'upload',

						'title' => __('Image', 'nhp-opts'),

						'sub_desc' => __('2', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),



						array(

						'id' => '4433', //must be unique

						'type' => 'text',

						'title' => __('Title ', 'nhp-opts'),

						'sub_desc' => __('2', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '4434', //must be unique

						'type' => 'text',

						'title' => __('Writer', 'nhp-opts'),

						'sub_desc' => __('2', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5549', //must be unique

						'type' => 'color',

						'title' => __('Feature Title Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '5550', //must be unique

						'type' => 'color',

						'title' => __('Feature Paragraph Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

												





						array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Content 1</p>', 'nhp-opts'),

						),

				

					

					array(

						'id' => '4426',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						

					array(

						'id' => '4427',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('2', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),



						array(

						'id' => '4428',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('3', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						

						array(

						'id' => '4429',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('4', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						

						array(

						'id' => '4430',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('5', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						

						array(

						'id' => '4431',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('6', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						

						array(

						'id' => '5552', //must be unique

						'type' => 'color',

						'title' => __('Content Box Sub-title Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '5551', //must be unique

						'type' => 'color',

						'title' => __('Content Box Paragraph Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),





						array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Content 2</p>', 'nhp-opts'),

						),

						

						array(

						'id' => '4455',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						



						array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Content 3</p>', 'nhp-opts'),

						),

			

				

					

					array(

						'id' => '4435',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						

					

						

						

						array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Content 4</p>', 'nhp-opts'),

						),

				

				

					



					array(

						'id' => '4436',

						'type' => 'editor',

						'title' => __('Content box', 'nhp-opts'), 

						'sub_desc' => __('1', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						

						),

						

						array(

						'id' => '4437',

						'type' => 'text',

						'title' => __('Add to cart link', 'nhp-opts'), 

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5553', //must be unique

						'type' => 'color',

						'title' => __('Heading Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '5554', //must be unique

						'type' => 'color',

						'title' => __('List Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

				array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Miscellaneous content</p>', 'nhp-opts'),

						),

				

					array(

						'id' => '4438',

						'type' => 'upload',

						'title' => __('Upload image', 'nhp-opts'), 

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts')

						),

						

						array(

						'id' => '4439', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Title', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						),

						

						array(

						'id' => '5555', //must be unique

						'type' => 'color',

						'title' => __('Title Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						array(

						'id' => '4440', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Description', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '5556', //must be unique

						'type' => 'color',

						'title' => __('Description Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),



						array(

						'id' => '23',

						'type' => 'info',

						'desc' => __('<p style="font:19px Verdana, Geneva, sans-serif; font-weight:bold; padding:0 0 0 18px;"="description">Footer</p>', 'nhp-opts'),

						),

			

			

					

						

					array(

						'id' => '4441',

						'type' => 'text',

						'title' => __('Description', 'nhp-opts'), 

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('', 'nhp-opts')

						),

						

						

						

						array(

						'id' => '4442', //must be unique

						'type' => 'text', //builtin fields include:

						'title' => __('Footer Text', 'nhp-opts'),

						'sub_desc' => __('Copyright Info', 'nhp-opts'),

						'desc' => __('', 'nhp-opts'),

						), 

						

						array(

						'id' => '5557', //must be unique

						'type' => 'color',

						'title' => __('Description Color', 'nhp-opts'),

						'sub_desc' => __('', 'nhp-opts'),

						'desc' => __('Enter color code', 'nhp-opts'),

						),

						

						

						

						

						

						

						

						

						



										



					)



				);

				



				



				



	$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 = get_theme_data(trailingslashit(get_stylesheet_directory()).'style.css');



		$theme_uri = $theme_data['URI'];



		$description = $theme_data['Description'];



		$author = $theme_data['Author'];



		$version = $theme_data['Version'];



		$tags = $theme_data['Tags'];



	}	







	$theme_info = '<div class="nhp-opts-section-desc">';



	$theme_info .= '<p class="nhp-opts-theme-data description theme-uri">'.__('<strong>Theme URL:</strong> ', 'nhp-opts').'<a href="'.$theme_uri.'" target="_blank">'.$theme_uri.'</a></p>';



	$theme_info .= '<p class="nhp-opts-theme-data description theme-author">'.__('<strong>Author:</strong> ', 'nhp-opts').$author.'</p>';



	$theme_info .= '<p class="nhp-opts-theme-data description theme-version">'.__('<strong>Version:</strong> ', 'nhp-opts').$version.'</p>';



	$theme_info .= '<p class="nhp-opts-theme-data description theme-description">'.$description.'</p>';



	$theme_info .= '<p class="nhp-opts-theme-data description theme-tags">'.__('<strong>Tags:</strong> ', 'nhp-opts').implode(', ', $tags).'</p>';



	$theme_info .= '</div>';















	$tabs['theme_info'] = array(



					'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_195_circle_info.png',



					'title' => __('Theme Information', 'nhp-opts'),



					'content' => $theme_info



					);



	



	if(file_exists(trailingslashit(get_stylesheet_directory()).'README.html')){



		$tabs['theme_docs'] = array(



						'icon' => NHP_OPTIONS_URL.'img/glyphicons/glyphicons_071_book.png',



						'title' => __('Documentation', 'nhp-opts'),



						'content' => nl2br(file_get_contents(trailingslashit(get_stylesheet_directory()).'README.html'))



						);



	}//if







	global $NHP_Options;



	$NHP_Options = new NHP_Options($sections, $args, $tabs);







}//function



add_action('init', 'setup_framework_options', 0);







/*



 * 



 * Custom function for the callback referenced above



 *



 */



function my_custom_field($field, $value){



	print_r($field);



	print_r($value);







}//function







/*



 * 



 * Custom function for the callback validation referenced above



 *



 */



function validate_callback_function($field, $value, $existing_value){



	



	$error = false;



	$value =  'just testing';



	/*



	do your validation



	



	if(something){



		$value = $value;



	}elseif(somthing else){



		$error = true;



		$value = $existing_value;



		$field['msg'] = 'your custom error message';



	}



	*/



	



	$return['value'] = $value;



	if($error == true){



		$return['error'] = $field;



	}



	return $return;



	



}//function



?>