__('A Section added by hook', 'mythemeshop'), '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.

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

This is the HTML which can be displayed before the form, it isnt required, but more info is always better. Anything goes in terms of markup here, any HTML.

', 'mythemeshop'); //Setup custom links in the footer for share icons $args['share_icons']['twitter'] = array( 'link' => 'http://twitter.com/mythemeshopteam', 'title' => 'Follow Us on Twitter', 'img' => NHP_OPTIONS_URL.'img/glyphicons/twitter.png' ); $args['share_icons']['linked_in'] = array( 'link' => 'http://www.facebook.com/mythemeshop', 'title' => 'Like us on Facebook', 'img' => NHP_OPTIONS_URL.'img/glyphicons/facebook.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'] = 'sensational'; //Custom menu icon //$args['menu_icon'] = ''; //Custom menu title for options page - default is "Options" $args['menu_title'] = __('Theme Options', 'mythemeshop'); //Custom Page Title for options page - default is "Options" $args['page_title'] = __('Theme Options', 'mythemeshop'); //Custom page slug for options page (wp-admin/themes.php?page=***) - default is "nhp_theme_options" $args['page_slug'] = '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'] = 62; //Custom page icon class (used to override the page icon next to heading) //$args['page_icon'] = 'icon-themes'; //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' => __('Support', 'mythemeshop'), 'content' => __('

If you are facing any problem with our theme or theme option panel, head over to our Knowledge Base

', 'mythemeshop') ); $args['help_tabs'][] = array( 'id' => 'nhp-opts-3', 'title' => __('Credit', 'mythemeshop'), 'content' => __('

Options Panel created using the NHP Theme Options Framework Version 1.0.5

', 'mythemeshop') ); $args['help_tabs'][] = array( 'id' => 'nhp-opts-2', 'title' => __('Earn Money', 'mythemeshop'), 'content' => __('

Earn 60% commision on every sale by refering your friends and readers. Join our Affiliate Program.

', 'mythemeshop') ); //Set the Help Sidebar for the options page - no sidebar by default //$args['help_sidebar'] = __('

This is the sidebar content, HTML is allowed.

', 'mythemeshop'); $sections = array(); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/generalsetting.png', 'title' => __('General Settings', 'mythemeshop'), 'desc' => __('

This tab contains common setting options which will be applied to whole theme.

', 'mythemeshop'), 'fields' => array( array( 'id' => 'mts_logo', 'type' => 'upload', 'title' => __('Logo Image', 'mythemeshop'), 'sub_desc' => __('Upload your logo (Recommended size 138x35px) using the Upload Button or insert image URL.', 'mythemeshop') ), array( 'id' => 'mts_favicon', 'type' => 'upload', 'title' => __('Favicon', 'mythemeshop'), 'sub_desc' => __('Upload a 16 x 16 px image that will represent your website\'s favicon. You can refer to this link for more information on how to make it: http://www.favicon.cc/', 'mythemeshop') ), array( 'id' => 'mts_twitter_username', 'type' => 'text', 'title' => __('Twitter Username', 'mythemeshop'), 'sub_desc' => __('Enter your Username here.', 'mythemeshop'), ), array( 'id' => 'mts_feedburner', 'type' => 'text', 'title' => __('FeedBurner URL', 'mythemeshop'), 'sub_desc' => __('Enter your FeedBurner\'s URL here, ex: http://feeds.feedburner.com/mythemeshop and your main feed (http://example.com/feed) will get redirected to the FeedBurner ID entered here.)', 'mythemeshop'), 'validate' => 'url' ), array( 'id' => 'mts_header_code', 'type' => 'textarea', 'title' => __('Header Code', 'mythemeshop'), 'sub_desc' => __('Enter the code which you need to place before closing tag. (ex: Google Webmaster Tools verification, Bing Webmaster Center, BuySellAds Script, Alexa verification etc.)', 'mythemeshop') ), array( 'id' => 'mts_analytics_code', 'type' => 'textarea', 'title' => __('Footer Code', 'mythemeshop'), 'sub_desc' => __('Enter the codes which you need to place in your footer. (ex: Google Analytics, Clicky, STATCOUNTER, Woopra, Histats, etc.).', 'mythemeshop') ), array( 'id' => 'mts_copyrights', 'type' => 'textarea', 'title' => __('Copyrights Text', 'mythemeshop'), 'sub_desc' => __('You can change or remove our link from footer and use your own custom text. (Link back is always appreciated)', 'mythemeshop'), 'std' => 'Theme by MyThemeShop.' ), array( 'id' => 'mts_featured_slider', 'type' => 'button_set_hide_below', 'title' => __('Homepage Slider', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enable or Disable a homepage slider by using this check box. This slider will show 5 recent articles from the selected category.', 'mythemeshop'), 'std' => '0' ), array( 'id' => 'mts_featured_slider_cat', 'type' => 'cats_multi_select', 'title' => __('Slider Category', 'mythemeshop'), 'sub_desc' => __('Select a category from the drop-down menu, latest 4 articles from this category will be shown in slider. Use ctrl key to select more than one category.', 'mythemeshop'), 'args' => array('number' => '100') ), array( 'id' => 'mts_latest_section', 'type' => 'button_set_hide_below', 'title' => __('Category for Latest Section', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enable this option if you want to show latest posts from only selected categories in Latest Section. If this option is disabled latest posts from all categories will be shown.', 'mythemeshop'), 'std' => '0' ), array( 'id' => 'mts_latest_section_cat', 'type' => 'cats_multi_select', 'title' => __('Choose category for Latest Section', 'mythemeshop'), 'sub_desc' => __('Choose category from which you want to show latest posts. Use ctrl key to select more than one category.', 'mythemeshop'), 'args' => array('number' => '100') ), array( 'id' => 'mts_pagenavigation', 'type' => 'button_set', 'title' => __('Pagination', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enable or disable paginated navigation, which replaces the "Older Posts" and "Newer Posts" links with helpful numbered page links.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_prefetching', 'type' => 'button_set', 'title' => __('Prefetching', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enable or disable prefetching. If user is on homepage, then single page will load faster and if user is on single page, homepage will load faster in Chrome.', 'mythemeshop'), 'std' => '0' ), array( 'id' => 'mts_theme_update', 'type' => 'button_set', 'title' => __('Theme Update Notification', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button to Show or Hide Theme Update notification on dashboard. We recommend to keep this option ON, so you can see notification of latest theme updates.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_shop_products', 'type' => 'text', 'title' => __('No. of Products', 'mythemeshop'), 'sub_desc' => __('Enter the total number of products which you want to show on shop page (WooCommerce plugin must be enabled).', 'mythemeshop'), 'validate' => 'numeric', 'std' => '9', 'class' => 'small-text' ), array( 'id' => 'mts_home_headline_meta', 'type' => 'button_set', 'title' => __('HomePage Post Meta Info.', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button to Show or Hide Post Meta Info on HomePage. (Author name, Date etc.).', 'mythemeshop'), 'std' => '1' ) ) ); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/stylesetting.png', 'title' => __('Styling Options', 'mythemeshop'), 'desc' => __('

Control the visual appearance of your theme, such as colors, layout and patterns, from here.

', 'mythemeshop'), 'fields' => array( array( 'id' => 'mts_primary_color', 'type' => 'color', 'title' => __('Primary Color', 'nhp-opts'), 'sub_desc' => __('Choose the primary color for the left sidebar category background and comment submit button', 'nhp-opts'), 'std' => '#e53b2c' ), array( 'id' => 'mts_secondary_color', 'type' => 'color', 'title' => __('Secondary Color', 'nhp-opts'), 'sub_desc' => __('Choose the secondary color for links, read-more button and borders.', 'nhp-opts'), 'std' => '#41b7d8' ), array( 'id' => 'mts_layout', 'type' => 'radio_img', 'title' => __('Layout Style', 'nhp-opts'), 'sub_desc' => __('Choose from 4 different layouts for your site.', 'nhp-opts'), 'options' => array( 'scslayout' => array('img' => NHP_OPTIONS_URL.'img/layouts/ccs.png'), 'scclayout' => array('img' => NHP_OPTIONS_URL.'img/layouts/scc.png'), 'cslayout' => array('img' => NHP_OPTIONS_URL.'img/layouts/cs.png'), 'sclayout' => array('img' => NHP_OPTIONS_URL.'img/layouts/sc.png') ),//Must provide key => value(array:title|img) pairs for radio options 'std' => 'scslayout' ), array( 'id' => 'mts_bg_color', 'type' => 'color', 'title' => __('Background Color', 'nhp-opts'), 'sub_desc' => __('Pick any color using the color picker, or enter a hex color value in the input field to make it the background color for your theme. This setting is overriden if a background pattern is used.', 'nhp-opts'), 'std' => '#ffffff' ), array( 'id' => 'mts_bg_pattern', 'type' => 'radio_img', 'title' => __('Background Pattern', 'mythemeshop'), 'sub_desc' => __('Choose from any of 37 awesome background patterns for your site\'s background.', 'mythemeshop'), 'options' => array( 'nobg' => array('img' => NHP_OPTIONS_URL.'img/patterns/nobg.png'), 'pattern0' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern0.png'), 'pattern1' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern1.png'), 'pattern2' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern2.png'), 'pattern3' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern3.png'), 'pattern4' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern4.png'), 'pattern5' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern5.png'), 'pattern6' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern6.png'), 'pattern7' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern7.png'), 'pattern8' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern8.png'), 'pattern9' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern9.png'), 'pattern10' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern10.png'), 'pattern11' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern11.png'), 'pattern12' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern12.png'), 'pattern13' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern13.png'), 'pattern14' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern14.png'), 'pattern15' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern15.png'), 'pattern16' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern16.png'), 'pattern17' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern17.png'), 'pattern18' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern18.png'), 'pattern19' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern19.png'), 'pattern20' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern20.png'), 'pattern21' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern21.png'), 'pattern22' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern22.png'), 'pattern23' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern23.png'), 'pattern24' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern24.png'), 'pattern25' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern25.png'), 'pattern26' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern26.png'), 'pattern27' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern27.png'), 'pattern28' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern28.png'), 'pattern29' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern29.png'), 'pattern30' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern30.png'), 'pattern31' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern31.png'), 'pattern32' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern32.png'), 'pattern33' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern33.png'), 'pattern34' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern34.png'), 'pattern35' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern35.png'), 'pattern36' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern36.png'), 'pattern37' => array('img' => NHP_OPTIONS_URL.'img/patterns/pattern37.png') ), 'std' => 'pattern1' ), array( 'id' => 'mts_bg_pattern_upload', 'type' => 'upload', 'title' => __('Custom Background Image', 'mythemeshop'), 'sub_desc' => __('Upload your own custom background image or pattern.', 'mythemeshop') ), array( 'id' => 'mts_thumb_quality_on', 'type' => 'button_set_hide_below', 'title' => __('Control Thumbnails Quality', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enable this option if you want to control quality of Thumbnails.', 'mythemeshop'), 'std' => '0' ), array( 'id' => 'mts_thumb_quality', 'type' => 'text', 'title' => __('Thumbnails Quality', 'mythemeshop'), 'sub_desc' => __('Control thumbnail quality from here. We recommend value in between 70-90. Note: Setting will apply to only new thumbnail uploads.', 'mythemeshop'), 'validate' => 'numeric', 'std' => '90', 'class' => 'small-text' ), array( 'id' => 'mts_custom_css', 'type' => 'textarea', 'title' => __('Custom CSS', 'mythemeshop'), 'sub_desc' => __('You can enter your own custom CSS here to further customize your theme. This will override the default CSS used on your site.', 'mythemeshop') ), array( 'id' => 'mts_left_sidebar_title', 'type' => 'button_set', 'title' => __('Left Sidebar Title', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enable or disable left sidebar widget titles.', 'mythemeshop'), 'std' => '0' ), array( 'id' => 'mts_floating_leftside', 'type' => 'button_set', 'options' => array('0' => 'Off','1' => 'On'), 'title' => __('Floating Category Sidebar', 'nhp-opts'), 'sub_desc' => __('Choose between a floating or fixed left sidebar using this option.', 'nhp-opts'), 'std' => '0' ), array( 'id' => 'mts_responsive', 'type' => 'button_set', 'title' => __('Responsiveness', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('MyThemeShop themes are responsive, which means they adapt to tablet and mobile devices, ensuring that your content is always displayed beautifully no matter what device visitors are using. Enable or disable responsiveness using this option.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_lightbox', 'type' => 'button_set', 'title' => __('Lightbox', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('A lightbox is a stylized pop-up that allows your visitors to view larger versions of images without leaving the current page. You can enable or disable the lightbox here.', 'mythemeshop'), 'std' => '0' ), array( 'id' => 'mts_admin_style', 'type' => 'button_set', 'title' => __('Custom WP Dashboard Design', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enabled/disable Custom Dashboard Design, specially created for MyThemeShop users.', 'mythemeshop'), 'std' => '0' ), ) ); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/header.png', 'title' => __('Header', 'mythemeshop'), 'desc' => __('

From here, you can control the social media icons of header.

', 'mythemeshop'), 'fields' => array( array( 'id' => 'mts_floating_header', 'type' => 'button_set', 'title' => __('Floating Header', 'nhp-opts'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Choose between a floating or fixed header navigation menu using this option.', 'nhp-opts'), 'std' => '0' ), ) ); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/singlepost.png', 'title' => __('Single Posts', 'mythemeshop'), 'desc' => __('

From here, you can control the appearance and functionality of your single posts page.

', 'mythemeshop'), 'fields' => array( array( 'id' => 'mts_headline_meta', 'type' => 'button_set', 'title' => __('Post Meta Info.', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button to Show or Hide Post Meta Info Author name and Categories.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_breadcrumb', 'type' => 'button_set', 'title' => __('Breadcrumbs', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Breadcrumbs are a great way to make your site more user-friendly. You can enable them by checking this box.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_author_comment', 'type' => 'button_set', 'title' => __('Highlight Author Comment', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button to highlight author comments.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_related_posts', 'type' => 'button_set', 'title' => __('Related Posts', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button to show related posts with thumbnails below the content area in a post.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_tags', 'type' => 'button_set', 'title' => __('Tag Links', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button if you want to show a tag cloud below the related posts.', 'mythemeshop'), 'std' => '0' ), array( 'id' => 'mts_author_box', 'type' => 'button_set', 'title' => __('Author Box', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button if you want to display author information below the article.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_comment_date', 'type' => 'button_set', 'title' => __('Date in Comments', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button to show the date for comments.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_image_border', 'type' => 'button_set', 'title' => __('Image Border', 'nhp-opts'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Use this button to Enable or Disable the thick border around the images on single posts.', 'nhp-opts'), 'std' => '1' ) ) ); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/socialsetting.png', 'title' => __('Social Buttons', 'mythemeshop'), 'desc' => __('

Enable or disable social sharing buttons on single posts using these buttons.

', 'mythemeshop'), 'fields' => array( array( 'id' => 'mts_social_buttons', 'type' => 'button_set', 'title' => __('Social Media Buttons', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Check this box to show social sharing buttons before an article\'s content text.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_floating_social', 'type' => 'button_set', 'title' => __('Floating Social Buttons', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'sub_desc' => __('Enable or Disable the Floating social sharing buttons on single posts.', 'mythemeshop'), 'std' => '1' ), array( 'id' => 'mts_twitter', 'type' => 'button_set', 'title' => __('Twitter', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'std' => '1' ), array( 'id' => 'mts_gplus', 'type' => 'button_set', 'title' => __('Google Plus', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'std' => '1' ), array( 'id' => 'mts_facebook', 'type' => 'button_set', 'title' => __('Facebook Like', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'std' => '1' ), array( 'id' => 'mts_linkedin', 'type' => 'button_set', 'title' => __('LinkedIn', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'std' => '0' ), array( 'id' => 'mts_stumble', 'type' => 'button_set', 'title' => __('StumbleUpon', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'std' => '0' ), array( 'id' => 'mts_pinterest', 'type' => 'button_set', 'title' => __('Pinterest', 'mythemeshop'), 'options' => array('0' => 'Off','1' => 'On'), 'std' => '1' ), ) ); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/adsetting.png', 'title' => __('Ad Management', 'mythemeshop'), 'desc' => __('

Now, ad management is easy with our options panel. You can control everything from here, without using separate plugins.

', 'mythemeshop'), 'fields' => array( array( 'id' => 'mts_posttop_adcode', 'type' => 'textarea', 'title' => __('Below Post Title', 'mythemeshop'), 'sub_desc' => __('Paste your Adsense, BSA or other ad code here to show ads below your article title on single posts.', 'mythemeshop') ), array( 'id' => 'mts_posttop_adcode_time', 'type' => 'text', 'title' => __('Show After X Days', 'mythemeshop'), 'sub_desc' => __('Enter the number of days after which you want to show the Below Post Title Ad before it expires. Enter 0 to disable this feature.', 'mythemeshop'), 'validate' => 'numeric', 'std' => '0', 'class' => 'small-text' ), array( 'id' => 'mts_postend_adcode', 'type' => 'textarea', 'title' => __('Below Post Content', 'mythemeshop'), 'sub_desc' => __('Paste your Adsense, BSA or other ad code here to show ads below the post content on single posts.', 'mythemeshop') ), array( 'id' => 'mts_postend_adcode_time', 'type' => 'text', 'title' => __('Show After X Days', 'mythemeshop'), 'sub_desc' => __('Enter the number of days after which you want to show the Below Post Title Ad before it expires. Enter 0 to disable this feature.', 'mythemeshop'), 'validate' => 'numeric', 'std' => '0', 'class' => 'small-text' ), ) ); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/fontsetting.png', 'title' => __('Fonts', 'mythemeshop'), 'desc' => __('

You can find theme font options under the Appearance Section named Theme Typography, which will allow you to configure the typography used on your site.

', 'mythemeshop'), ); $sections[] = array( 'icon' => NHP_OPTIONS_URL.'img/glyphicons/navsetting.png', 'title' => __('Navigation', 'mythemeshop'), 'desc' => __('

Navigation settings can now be modified from the Menus Section.

', 'mythemeshop') ); $tabs = array(); 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 /*-------------------------------------------------------------------- * * Default Font Settings * --------------------------------------------------------------------*/ if(function_exists('register_typography')) { register_typography(array( 'navigation_font' => array( 'preview_text' => 'Navigation Font', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_variant' => '', 'font_size' => '16px', 'font_color' => '#494949', 'css_selectors' => '.menu li a' ), 'h1_headline' => array( 'preview_text' => 'H1 Headline', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_variant' => '', 'font_size' => '45px', 'font_color' => '#494949', 'css_selectors' => 'h1' ), 'h2_headline' => array( 'preview_text' => 'H2 Headline', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_variant' => '', 'font_size' => '24px', 'font_color' => '#494949', 'css_selectors' => 'h2' ), 'h3_headline' => array( 'preview_text' => 'H3 Headline', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_variant' => '', 'font_size' => '22px', 'font_color' => '#494949', 'css_selectors' => 'h3' ), 'h4_headline' => array( 'preview_text' => 'H4 Headline', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_variant' => '', 'font_size' => '20px', 'font_color' => '#494949', 'css_selectors' => 'h4' ), 'h5_headline' => array( 'preview_text' => 'H5 Headline', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_variant' => '', 'font_size' => '18px', 'font_color' => '#494949', 'css_selectors' => 'h5' ), 'h6_headline' => array( 'preview_text' => 'H6 Headline', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_variant' => '', 'font_size' => '16px', 'font_color' => '#494949', 'css_selectors' => 'h6' ), 'content_font' => array( 'preview_text' => 'Content Font', 'preview_color' => 'light', 'font_family' => 'Open Sans', 'font_size' => '14px', 'font_variant' => '', 'font_color' => '#333333', 'css_selectors' => 'body' ), 'left_sidebar_font' => array( 'preview_text' => 'Left Sidebar Font', 'preview_color' => 'light', 'font_family' => 'Bree Serif', 'font_size' => '14px', 'font_variant' => '', 'font_color' => '#333333', 'css_selectors' => '.left-menu a, #copyright-note' ) )); } ?>