Example #1
0
 function sb_settings_help()
 {
     $this->name = __('Need Help?', 'startbox');
     $this->slug = 'sb_settings_help';
     $this->location = 'secondary';
     $this->priority = 'high';
     parent::__construct();
 }
Example #2
0
 function sb_seo_settings()
 {
     $this->name = __('Basic SEO Settings', 'startbox');
     $this->slug = 'sb_settings_seo';
     $this->location = 'secondary';
     $this->priority = 'core';
     $this->options = array('seo_intro' => array('type' => 'intro', 'label' => '', 'desc' => __('These are only rudimentary options that will disappear as soon as you activate an SEO plugin. I highly recommend you use the <a href="http://wordpress.org/extend/plugins/wordpress-seo/" target="_blank">WordPress SEO Plugin</a> instead of these.', 'startbox')), 'seo_description' => array('type' => 'textarea', 'label' => __('Site Description', 'startbox'), 'default' => get_bloginfo('description'), 'desc' => __('Try to keep this brief.', 'startbox')), 'seo_keywords' => array('type' => 'text', 'label' => __('Site-wide Keywords', 'startbox'), 'size' => 'medium', 'desc' => __('Comma separated (e.g. WordPress, themes, etc)', 'startbox')));
     parent::__construct();
 }
Example #3
0
 public function sb_pushup_settings()
 {
     $this->name = __('Save the Web', 'startbox');
     $this->slug = 'sb_pushup_settings';
     $this->location = 'secondary';
     $this->priority = 'low';
     $this->options = array('intro' => array('type' => 'intro', 'desc' => sprintf(__('Help save the internet by letting users of older browsers know that it\'s time for an upgrade. %sSee an example &raquo;%s', 'startbox'), '<a href="http://pushuptheweb.com/" title="Push Up The Web" target="_blank">', '</a>')), 'enable_pushup' => array('type' => 'checkbox', 'label' => __('Save the web!', 'startbox'), 'default' => 'true'));
     parent::__construct();
 }
Example #4
0
 function sb_header_settings()
 {
     $this->name = __('Branding', 'startbox');
     $this->slug = 'sb_header_settings';
     $this->description = __('Control various aspects of the header area of your site, including logo, site description, favicon and navigation. The logo options allow you to specify a text-based logo to use instead of an image.', 'startbox');
     $this->location = 'primary';
     $this->priority = 'high';
     $this->options = array('logo' => array('type' => 'logo', 'desc' => __('Upload an image or specify some text to use for your logo.', 'startbox')), 'div1' => array('type' => 'divider'), 'tagline' => array('type' => 'checkbox', 'label' => __('Display Site Tagline', 'startbox'), 'desc' => sprintf(__('You can set your site Tagline in %1$sSettings > General%2$s.', 'startbox'), '<a href="options-general.php">', '</a>')), 'div2' => array('type' => 'divider'), 'favicon' => array('type' => 'upload', 'label' => __('Favicon', 'startbox'), 'desc' => __('The favicon is a small logo/icon that displays alongside your URL in most browsers.', 'startbox'), 'default' => '/wp-content/themes/startbox/images/favicon.png'));
     parent::__construct();
 }
 function sb_feedburner_settings()
 {
     $this->name = __('Feedburner Settings', 'startbox');
     $this->slug = 'sb_feedburner_settings';
     $this->description = __('Replace your site\'s default feed URLs with ones from feedburner (or another feed service).', 'startbox');
     $this->location = 'secondary';
     $this->priority = 'core';
     $this->options = array('feedburner_feed_url' => array('type' => 'text', 'label' => sprintf(__('Enter your %s feed URL below', 'startbox'), '<a href="http://feedburner.google.com" target="_blank">Feedburner</a>'), 'size' => 'medium'), 'feedburner_comments_url' => array('type' => 'text', 'label' => __('Enter your Feedburner Comments URL', 'startbox'), 'size' => 'medium'));
     parent::__construct();
 }
Example #6
0
 function sb_footer_settings()
 {
     $this->name = __('Footer Settings', 'startbox');
     $this->slug = 'sb_footer_settings';
     $this->description = __('Select what text (if any) you would like to appear in the footer area of your site. The textbox allows use of full HTML and Shortcodes.', 'startbox');
     $this->location = 'primary';
     $this->priority = 'core';
     $this->options = array('site_name' => array('type' => 'text', 'label' => __('Name to use for Copyright', 'startbox'), 'default' => get_bloginfo('name'), 'size' => 'medium', 'align' => 'right'), 'site_url' => array('type' => 'text', 'label' => __('Web Address to use for Copyright', 'startbox'), 'desc' => __('Include http://. Leave blank for no link.', 'startbox'), 'default' => home_url(), 'size' => 'medium', 'align' => 'right'), 'copyright_year' => array('type' => 'text', 'label' => __('Original Copyright Year', 'startbox'), 'default' => '2010', 'desc' => __('If prior to this year, theme will automatically display [original year] - [current year].', 'startbox'), 'size' => 'small', 'align' => 'right'), 'enable_copyright' => array('type' => 'checkbox', 'label' => __('Enable Copyright', 'startbox'), 'default' => 'true'), 'enable_designer_credit' => array('type' => 'checkbox', 'label' => __('Enable Designer Credit', 'startbox'), 'default' => 'true'), 'enable_wp_credit' => array('type' => 'checkbox', 'label' => __('Enable WordPress Credit', 'startbox'), 'default' => 'true'), 'enable_sb_credit' => array('type' => 'checkbox', 'label' => __('Enable StartBox Credit', 'startbox'), 'default' => 'true'), 'enable_admin' => array('type' => 'checkbox', 'label' => __('Enable Admin Links', 'startbox'), 'default' => 'true'), 'enable_rtt' => array('type' => 'checkbox', 'label' => __('Enable Return to Top link', 'startbox'), 'default' => 'true'), 'footer_text' => array('type' => 'textarea', 'sanitize' => array('allowed_html' => array('a' => array('href' => array(), 'title' => array()), 'br' => array(), 'em' => array(), 'strong' => array(), 'div' => array(), 'span' => array(), 'ul' => array(), 'ol' => array(), 'li' => array())), 'label' => __('Enter any additional footer text below:', 'startbox'), 'desc' => __('Full HTML and Shortcodes are allowed.', 'startbox')));
     parent::__construct();
 }
 function sb_content_settings()
 {
     $this->name = __('Content Settings', 'startbox');
     $this->slug = 'sb_content_settings';
     $this->description = __('Take full control over the content areas of your site. Select your page layout, thumbnail sizes, post navigation options and post meta information.', 'startbox');
     $this->location = 'primary';
     $this->priority = 'core';
     $this->options = array('home_layout' => array('type' => 'layout', 'label' => __('Homepage Layout', 'startbox'), 'desc' => __('Select content and sidebar alignment. Choose from any of the available layouts.', 'startbox'), 'options' => sb_supported_layouts('sb-layouts-home'), 'default' => 'two-col-right', 'align' => 'right', 'size' => 'medium'), 'layout' => array('type' => 'layout', 'label' => __('Interior Page Layout', 'startbox'), 'desc' => __('Select content and sidebar alignment. This can be changed on each page/post individually.', 'startbox'), 'options' => sb_supported_layouts('sb-layouts'), 'default' => 'two-col-right', 'align' => 'right', 'size' => 'medium'), 'post_content_heading' => array('type' => 'intro', 'label' => __('Post Content', 'startbox')), 'home_post_content' => array('type' => 'select', 'label' => __('Post Content on Homepage', 'startbox'), 'options' => array('excerpt' => __('Excerpt', 'startbox'), 'full' => __('Full Post', 'startbox')), 'default' => 'excerpt', 'align' => 'right', 'size' => 'medium'), 'archive_post_content' => array('type' => 'select', 'label' => __('Post Content in Archives', 'startbox'), 'options' => array('excerpt' => __('Excerpt', 'startbox'), 'full' => __('Full Post', 'startbox')), 'default' => 'excerpt', 'align' => 'right', 'size' => 'medium'), 'more_text' => array('type' => 'text', 'label' => __('Read More text', 'startbox'), 'default' => __('Read &amp; Discuss &raquo;', 'startbox'), 'size' => 'medium', 'align' => 'right'), 'author_bio' => array('type' => 'select', 'label' => __('Display Author Bio on Single posts', 'startbox'), 'options' => array('disabled' => __('Disabled', 'startbox'), 'before' => __('Show Before Post Content', 'startbox'), 'after' => __('Show After Post Content', 'startbox')), 'align' => 'right', 'desc' => __('Author bio only displays if author provides a description in their profile.', 'startbox'), 'default' => 'true', 'size' => 'medium'), 'content_div_1' => array('type' => 'divider'), 'post_meta_heading' => array('type' => 'intro', 'label' => __('Post Meta', 'startbox'), 'desc' => __('Control the meta information displayed on each post. You can use any <a href="http://docs.wpstartbox.com/shortcodes" target="_blank">shortcodes</a> you like, including: [author], [categories], [comments], [date], [time], [tags] and [edit].', 'startbox')), 'post_header_meta' => array('type' => 'text', 'label' => __('Post Header Meta', 'startbox'), 'default' => __('Published in [categories] on [date] [edit]', 'startbox'), 'size' => 'large', 'align' => 'right'), 'post_footer_meta' => array('type' => 'text', 'label' => __('Post Footer Meta', 'startbox'), 'default' => '[tags] [comments]', 'size' => 'large', 'align' => 'right'), 'content_div_2' => array('type' => 'divider'), 'post_thumbnail_heading' => array('type' => 'intro', 'label' => __('Post Thumbnails', 'startbox')), 'enable_post_thumbnails' => array('type' => 'checkbox', 'label' => __('Enable Post Thumbnails', 'startbox'), 'default' => true, 'align' => 'left'), 'post_thumbnail_rss' => array('type' => 'checkbox', 'label' => __('Include Post Thumbnails in RSS feed', 'startbox'), 'default' => true, 'align' => 'left'), 'post_thumbnail_use_attachments' => array('type' => 'checkbox', 'label' => __('Use any attached image if no Featured Image specified', 'startbox'), 'default' => true, 'align' => 'left'), 'post_thumbnail_hide_nophoto' => array('type' => 'checkbox', 'label' => __('Hide thumbnails if no preview available', 'startbox'), 'default' => false, 'align' => 'left'), 'post_thumbnail_default_image' => array('type' => 'upload', 'label' => __('Default Thumbnail', 'startbox'), 'default' => IMAGES_URL . '/nophoto.jpg'), 'post_thumbnail_width' => array('type' => 'text', 'label' => __('Thumbnail Width', 'startbox'), 'after' => ' px', 'align' => 'right', 'size' => 'small', 'default' => '200'), 'post_thumbnail_height' => array('type' => 'text', 'label' => __('Thumbnail Height', 'startbox'), 'after' => ' px', 'align' => 'right', 'size' => 'small', 'default' => '200'), 'post_thumbnail_align' => array('type' => 'select', 'label' => 'Image Crop Alignment', 'options' => array('tl' => 'Top Left', 'tc' => 'Top Center', 'tr' => 'Top Right', 'l' => 'Middle Left', 'c' => 'Center', 'r' => 'Middle Right', 'bl' => 'Bottom Left', 'bc' => 'Bottom Center', 'br' => 'Bottom Right'), 'default' => 'tc', 'align' => 'right'), 'content_div_3' => array('type' => 'divider'), 'post_navigation_heading' => array('type' => 'intro', 'label' => __('Post Navigation', 'startbox'), 'desc' => __('Specify how navigation for prev/next posts should appear.')), 'archive_navigation' => array('type' => 'select', 'label' => __('Blog & Archives Navigation', 'startbox'), 'options' => array('none' => __('Disabled', 'startbox'), 'above' => __('Show Above Posts', 'startbox'), 'below' => __('Show Below Posts', 'startbox'), 'both' => __('Show Above & Below Posts', 'startbox')), 'default' => 'below', 'align' => 'right', 'size' => 'medium'), 'post_navigation' => array('type' => 'select', 'label' => __('Single Post Navigation', 'startbox'), 'options' => array('none' => __('Disabled', 'startbox'), 'above' => __('Show Above Posts', 'startbox'), 'below' => __('Show Below Posts', 'startbox'), 'both' => __('Show Above & Below Posts', 'startbox')), 'default' => 'below', 'align' => 'right', 'size' => 'medium'));
     parent::__construct();
 }
 function sb_upgrade_settings()
 {
     $this->name = __('Version Information', 'startbox');
     $this->slug = 'sb_upgrade_settings';
     $this->description = __('Enable automatic upgrades by checking one box and providing your StartBox license key.', 'startbox');
     $this->location = 'secondary';
     $this->priority = 'high';
     $this->options = array('sb_version_info' => array('type' => 'intro', 'desc' => sprintf(__('StartBox Version: %s', 'startbox'), get_option('startbox_version'))), 'enable_updates' => array('type' => 'checkbox', 'label' => __('Enable Automatic Updates', 'startbox'), 'default' => true), 'sb_license' => array('type' => 'text', 'label' => 'StartBox License', 'desc' => __('Enter your license to enable automatic updates.', 'startbox')));
     parent::__construct();
 }
 function sb_analytics_settings()
 {
     $this->name = __('Google Analytics', 'startbox');
     $this->slug = 'sb_analytics_settings';
     $this->description = __('Paste in your tracking codes for your preferred site statistics software (like Google Analytics).', 'startbox');
     $this->location = 'secondary';
     $this->priority = 'core';
     $this->options = array('analytics' => array('type' => 'textarea', 'label' => sprintf(__('Enter your %s code below:'), '<a href="http://google.com/analytics" target="_blank">analytics</a>'), 'sanitize' => false));
     parent::__construct();
 }
 function sb_navigation_settings()
 {
     $this->name = __('Navigation Settings', 'startbox');
     $this->slug = 'sb_navigation_settings';
     $this->description = __('Take full control of your navigation. Select which menu to display, where to display it, and whether or not to include a "Home" link.', 'startbox');
     $this->location = 'primary';
     $this->priority = 'high';
     $this->options = array('primary_nav' => array('type' => 'navigation', 'label' => __('Primary Navigation', 'startbox'), 'default' => 'pages', 'align' => 'left', 'home_default' => true, 'position_default' => 'sb_after_header', 'extras' => true), 'div' => array('type' => 'divider'), 'secondary_nav' => array('type' => 'navigation', 'label' => __('Secondary Navigation', 'startbox'), 'default' => 'none', 'home_default' => false, 'position_default' => 'sb_before', 'extras' => true), 'div2' => array('type' => 'divider'), 'footer_nav' => array('type' => 'navigation', 'label' => __('Footer Navigation', 'startbox'), 'default' => 'disabled', 'home_default' => false, 'position' => apply_filters('sb_footer_nav_position', array('sb_between_content_and_footer' => __('Before Footer Wrap', 'startbox'), 'sb_before_footer' => __('Before Footer Widgets', 'startbox'), 'sb_footer' => __('After Footer Widgets', 'startbox'), 'sb_footer_left' => __('Footer Left (above copyright)', 'startbox'), 'sb_footer_right' => __('Footer Right (above admin links)', 'startbox'), 'sb_after_footer' => __('Bottom of Page', 'startbox')))));
     parent::__construct();
 }