function origami_settings_init() { $settings = SiteOrigin_Settings::single(); $settings->add_section('text', __('Text', 'origami')); $settings->add_field('text', 'copyright', 'text', __('Copyright', 'origami')); $settings->add_field('text', 'not_found', 'text', __('404 Message', 'origami')); $settings->add_field('text', 'no_results', 'text', __('No Search Results', 'origami')); $settings->add_section('display', __('Display', 'origami')); $settings->add_field('display', 'post_author', 'checkbox', __('Display Post Author', 'origami')); $settings->add_field('display', 'comment_counts', 'checkbox', __('Display Comment Count', 'origami')); $settings->add_field('display', 'use_columns', 'checkbox', __('Use Columns', 'origami')); $settings->add_field('display', 'gallery', 'checkbox', __('Use Origami Gallery', 'origami'), array('description' => __("Changes [gallery] shortcode galleries into a fancy slider.", 'origami'))); $settings->add_teaser('display', 'attribution', 'checkbox', __('Footer Attribution', 'origami'), array('description' => __("Hide/show the link to SiteOrigin in your footer.", 'origami'))); $settings->add_field('display', 'featured_image', 'checkbox', __('Display featured Image', 'origami'), array('description' => __('Featured image above posts', 'origami'))); $settings->add_field('display', 'header_search', 'checkbox', __('Header Search', 'origami'), array('description' => __('Search input in header', 'origami'))); $settings->add_field('display', 'logo_centered', 'checkbox', __('Center Logo', 'origami'), array('description' => __('Center the main logo', 'origami'))); $settings->add_field('display', 'next_prev', 'checkbox', __('Post Navigation', 'origami'), array('description' => __('Next and previous post links on single post pages.', 'origami'))); $settings->add_section('responsive', __('Responsive', 'origami')); $settings->add_field('responsive', 'enabled', 'checkbox', __('Responsive', 'origami'), array('description' => __('Should Origami use responsive mode.', 'origami'))); $settings->add_field('responsive', 'nav', 'checkbox', __('Responsive Navigation', 'origami'), array('description' => __('Gorgeous mobile navigation menu for your main menu.', 'origami'))); $settings->add_field('responsive', 'fitvids', 'checkbox', __('Use Fitvids', 'origami'), array('description' => __('Enable FitVids to automatically scale your videos.', 'origami'))); $settings->add_section('comments', __('Comments', 'origami')); $settings->add_teaser('comments', 'ajax', 'checkbox', __('Ajax Comments', 'origami'), array('description' => __("Use ajax comments system.", 'origami'))); }
/** * Initialize the settings */ function siteorigin_north_settings_init() { SiteOrigin_Settings::single()->configure(apply_filters('siteorigin_north_settings_array', array('branding' => array('title' => __('Branding', 'siteorigin-north'), 'fields' => array('logo' => array('type' => 'media', 'label' => __('Logo', 'siteorigin-north'), 'description' => __('Logo displayed in your masthead.', 'siteorigin-north')), 'site_description' => array('type' => 'checkbox', 'label' => __('Site Description', 'siteorigin-north'), 'description' => __('Show your site description below your site title or logo.', 'siteorigin-north')), 'accent' => array('type' => 'color', 'label' => __('Accent Color', 'siteorigin-north'), 'description' => __('The color used for links and various other accents.', 'siteorigin-north'), 'live' => true), 'accent_dark' => array('type' => 'color', 'label' => __('Dark Accent Color', 'siteorigin-north'), 'description' => __('A darker version of your accent color.', 'siteorigin-north'), 'live' => true))), 'structure' => array('title' => __('Page Structure', 'siteorigin-north'), 'fields' => array('sidebar_width' => array('label' => __('Sidebar Width', 'siteorigin-north'), 'type' => 'text', 'sanitize_callback' => array('SiteOrigin_Settings_Value_Sanitize', 'measurement'), 'live' => true))), 'masthead' => array('title' => __('Header', 'siteorigin-north'), 'fields' => array('layout' => array('type' => 'select', 'label' => __('Header layout', 'siteorigin-north'), 'options' => array('default' => __('Default', 'siteorigin-north'), 'centered' => __('Centered', 'siteorigin-north'))), 'text_above' => array('type' => 'text', 'label' => __('Text Above', 'siteorigin-north'), 'description' => __('Text that goes above the main header.', 'siteorigin-north')))), 'navigation' => array('title' => __('Navigation', 'siteorigin-north'), 'fields' => array('search' => array('type' => 'checkbox', 'label' => __('Menu search', 'siteorigin-north'), 'description' => __('Display search in main menu', 'siteorigin-north')), 'sticky' => array('type' => 'checkbox', 'label' => __('Sticky menu', 'siteorigin-north'), 'description' => __('Stick menu to top of screen', 'siteorigin-north')), 'sticky_scale' => array('type' => 'checkbox', 'label' => __('Sticky menu scales logo', 'siteorigin-north'), 'description' => __('Should the main logo be downscaled when scrolling', 'siteorigin-north')), 'resize_logo' => array('type' => 'checkbox', 'label' => __('Resize logo', 'siteorigin-north'), 'description' => __('Resize logo in sticky', 'siteorigin-north')), 'post' => array('type' => 'checkbox', 'label' => __('Post navigation', 'siteorigin-north'), 'description' => __('Display next and previous post navigation', 'siteorigin-north')), 'scroll_to_top' => array('type' => 'checkbox', 'label' => __('Scroll to top', 'siteorigin-north'), 'description' => __('Display a scroll to top button', 'siteorigin-north')))), 'blog' => array('title' => __('Blog', 'siteorigin-north'), 'fields' => array('featured_archive' => array('type' => 'checkbox', 'label' => __('Featured image on archive', 'siteorigin-north')), 'featured_single' => array('type' => 'checkbox', 'label' => __('Featured image on single', 'siteorigin-north')), 'display_date' => array('type' => 'checkbox', 'label' => __('Display date', 'siteorigin-north')), 'display_author' => array('type' => 'checkbox', 'label' => __('Display author', 'siteorigin-north')), 'display_comment_count' => array('type' => 'checkbox', 'label' => __('Display comment count', 'siteorigin-north')))), 'responsive' => array('title' => __('Responsive', 'siteorigin-north'), 'fields' => array('menu_text' => array('type' => 'text', 'label' => __('Responsive Menu Text', 'siteorigin-north')), 'fitvids' => array('type' => 'checkbox', 'label' => __('Use Fitvids', 'siteorigin-north')))), 'footer' => array('title' => __('Footer', 'siteorigin-north'), 'fields' => array('text' => array('type' => 'text', 'label' => __('Footer Text', 'siteorigin-north'), 'description' => __("{sitename} and {year} are your site's name and current year", 'siteorigin-north'), 'sanitize_callback' => 'wp_kses_post'), 'constrained' => array('type' => 'checkbox', 'label' => __('Constrain', 'siteorigin-north'), 'description' => __("Constrain the footer width", 'siteorigin-north'))))))); }
/** * Convert URL based images into IDs * * @param $mods * * @return mixed */ function siteorigin_north_siteorigin_setting_update_image($mods) { foreach (array('branding_logo', 'branding_retina_logo') as $key) { if (!empty($mods['theme_settings_' . $key]) && !is_numeric($mods['theme_settings_' . $key])) { $mods['theme_settings_' . $key] = SiteOrigin_Settings::get_image_id($mods['theme_settings_' . $key]); } } return $mods; }
function siteorigin_settings_add_teaser($section, $id, $name, $args = array()) { SiteOrigin_Settings::single()->add_teaser($section, $id, $name, $args); }
/** * Setup theme settings. * * @since vantage 1.0 */ function vantage_theme_settings() { $settings = SiteOrigin_Settings::single(); $settings->add_section('logo', __('Logo', 'vantage')); $settings->add_section('layout', __('Layout', 'vantage')); $settings->add_section('home', __('Home', 'vantage')); $settings->add_section('navigation', __('Navigation', 'vantage')); $settings->add_section('blog', __('Blog', 'vantage')); $settings->add_section('social', __('Social', 'vantage')); $settings->add_section('general', __('General', 'vantage')); /** * Logo Settings */ $settings->add_field('logo', 'image', 'media', __('Logo Image', 'vantage'), array('choose' => __('Choose Image', 'vantage'), 'update' => __('Set Logo', 'vantage'), 'description' => __('Your own custom logo.', 'vantage'))); $settings->add_field('logo', 'in_menu_constrain', 'checkbox', __('Constrain Logo Height', 'vantage'), array('label' => __('Yes', 'vantage'), 'description' => __('When using the "logo in menu" masthead layout, constrain the logo size to fit the menu height.', 'vantage'))); $settings->add_field('logo', 'with_text', 'checkbox', __('Display site title alongside logo', 'vantage'), array('description' => __("Only applicable if a Logo Image has been set.", 'vantage'))); $settings->add_field('logo', 'image_retina', 'media', __('Retina Logo', 'vantage'), array('choose' => __('Choose Image', 'vantage'), 'update' => __('Set Logo', 'vantage'), 'description' => __('A double sized version of your logo for retina displays. Must be used in addition to standard logo.', 'vantage'))); $settings->add_field('logo', 'header_text', 'text', __('Header Text', 'vantage'), array('description' => __('Text that appears to the right of your logo. It will be hidden if widgets are placed in the header.', 'vantage'), 'sanitize_callback' => 'wp_kses_post')); $settings->add_field('logo', 'no_widget_overlay', 'checkbox', __('No Widget Overlay', 'vantage'), array('description' => __("If enabled, header widgets won't overlap main logo image.", 'vantage'))); /** * Layout Settings */ $settings->add_field('layout', 'responsive', 'checkbox', __('Responsive Layout', 'vantage'), array('description' => __('Scale your layout for small screen devices.', 'vantage'))); $settings->add_field('layout', 'fitvids', 'checkbox', __('Enable FitVids.js', 'vantage'), array('description' => __('Include FitVids.js fluid embedded video layouts.', 'vantage'))); $settings->add_field('layout', 'bound', 'select', __('Layout Bound', 'vantage'), array('options' => array('boxed' => __('Boxed', 'vantage'), 'full' => __('Full Width', 'vantage')), 'description' => __('Change the width of the bounding box.', 'vantage'))); $settings->add_field('layout', 'masthead', 'select', __('Masthead Layout', 'vantage'), array('options' => $settings->template_part_names('parts/masthead', 'Part Name'), 'description' => __("Change which header area layout you're using.", 'vantage'))); $settings->add_field('layout', 'menu', 'select', __('Masthead Menu', 'vantage'), array('options' => $settings->template_part_names('parts/menu', 'Part Name'), 'description' => __("Choose how the masthead menu is displayed.", 'vantage'))); $settings->add_field('layout', 'footer', 'select', __('Footer Layout', 'vantage'), array('options' => $settings->template_part_names('parts/footer', 'Part Name'), 'description' => __("Change which footer area layout you're using.", 'vantage'))); $settings->add_field('layout', 'force_panels_full', 'checkbox', __('Force Page Builder Styles Full Width', 'vantage'), array('description' => __('Force Page Builder rows with styles to be full width. Only necessary for legacy reasons.', 'vantage'))); /** * Navigation settings */ $settings->add_field('navigation', 'responsive_menu', 'checkbox', __('Mobile Menu', 'vantage'), array('description' => __('Use a special mobile menu for small screen devices.', 'vantage'))); $settings->add_field('navigation', 'responsive_menu_collapse', 'number', __('Mobile Menu Collapse', 'vantage'), array('description' => __('The resolution when the menu collapses into a mobile navigation menu. Value is in pixels.', 'vantage'))); $settings->add_field('navigation', 'responsive_menu_text', 'text', __('Mobile Menu Text', 'vantage'), array('description' => __('The button used for the mobile menu.', 'vantage'))); $settings->add_field('navigation', 'responsive_menu_search', 'checkbox', __('Mobile Menu Search', 'vantage'), array('description' => __('Enable search in the mobile menu.', 'vantage'))); $settings->add_field('navigation', 'use_sticky_menu', 'checkbox', __('Sticky Menu', 'vantage'), array('description' => __('Sticks the menu to the top of the screen when a user scrolls down.', 'vantage'))); $settings->add_field('navigation', 'menu_search', 'checkbox', __('Search in Menu', 'vantage'), array('description' => __('Display a search in the main menu.', 'vantage'))); $settings->add_field('navigation', 'display_scroll_to_top', 'checkbox', __('Display Scroll To Top', 'vantage'), array('description' => __('Display a scroll-to-top button when a user scrolls down.', 'vantage'))); $settings->add_field('navigation', 'post_nav', 'checkbox', __('Post Navigation', 'vantage'), array('description' => __('Display next/previous post navigation.', 'vantage'))); $settings->add_field('navigation', 'home_icon', 'checkbox', __('Home Page Icon', 'vantage'), array('description' => __('Display home icon for home page menu links.', 'vantage'))); $settings->add_field('navigation', 'mobile_navigation', 'checkbox', __('Mobile Navigation', 'vantage'), array('description' => __('Enables Sticky Menu and Scroll To Top for mobile devices.', 'vantage'))); if (function_exists('yoast_breadcrumb') || function_exists('bcn_display')) { $settings->add_field('navigation', 'yoast_breadcrumbs', 'checkbox', __('Breadcrumbs', 'vantage'), array('description' => __('Display breadcrumbs if you have Yoast SEO or Breadcrumb NavXT installed.', 'vantage'))); } /** * Home Page */ $settings->add_field('home', 'slider', 'select', __('Home Page Slider', 'vantage'), array('options' => siteorigin_metaslider_get_options(true), 'description' => sprintf(__('This theme supports <a href="%s" target="_blank">Meta Slider</a>. <a href="%s">Install it</a> for free to create beautiful responsive sliders - <a href="%s" target="_blank">More Info</a>', 'vantage'), 'https://siteorigin.com/metaslider/', siteorigin_metaslider_install_link(), 'https://siteorigin.com/vantage-documentation/slider/'))); $settings->add_field('home', 'slider_stretch', 'checkbox', __('Stretch Home Slider', 'vantage'), array('label' => __('Stretch', 'vantage'), 'description' => __('Stretch the home page slider to the width of the screen if using the full width layout.', 'vantage'))); /** * Blog Settings */ $settings->add_field('blog', 'archive_layout', 'select', __('Blog Archive Layout', 'vantage'), array('options' => vantage_blog_layout_options(), 'description' => __('Choose the layout to be used on blog and archive pages.', 'vantage'))); $settings->add_field('blog', 'archive_content', 'select', __('Post Content', 'vantage'), array('options' => array('full' => __('Full Post', 'vantage'), 'excerpt' => __('Post Excerpt', 'vantage')), 'description' => __('Choose how to display posts on post archive when using default blog layout.', 'vantage'))); $settings->add_field('blog', 'excerpt_length', 'number', __('Excerpt Length', 'vantage'), array('description' => __('If no manual post excerpt is added one will be generated. How many words should it be? Only applicable if Post Excerpt has been selected from the Post Content setting.', 'vantage'), 'sanitize_callback' => 'absint')); $settings->add_field('blog', 'featured_image_type', 'select', __('Featured Image Type', 'vantage'), array('options' => array('large' => __('Large', 'vantage'), 'icon' => __('Small Icon', 'vantage')), 'description' => __('Size of the featured image in the blog post archives when using default blog layout.', 'vantage'))); $settings->add_field('blog', 'featured_image', 'checkbox', __('Featured Image', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the featured image on a post single page.', 'vantage'))); $settings->add_field('blog', 'post_metadata', 'checkbox', __('Post Metadata', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post metadata under the post title.', 'vantage'))); $settings->add_field('blog', 'post_date', 'checkbox', __('Post Date', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post date under the post title.', 'vantage'))); $settings->add_field('blog', 'post_author', 'checkbox', __('Post Author', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post author under the post title.', 'vantage'))); $settings->add_field('blog', 'post_comment_count', 'checkbox', __('Post Comment Count', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the number of comments under the post title.', 'vantage'))); $settings->add_field('blog', 'post_categories', 'checkbox', __('Post Categories', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post categories below the single post.', 'vantage'))); $settings->add_field('blog', 'post_tags', 'checkbox', __('Post Tags', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post tags below the single post.', 'vantage'))); $settings->add_field('blog', 'author_box', 'checkbox', __('Author Box', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show an author box below each blog post.', 'vantage'))); $settings->add_field('blog', 'comment_author', 'text', __("Post Author's Comments", 'vantage'), array('description' => __("Text displayed as a label next to the post author's comments.", 'vantage'), 'sanitize_callback' => 'wp_kses_post')); $settings->add_field('blog', 'read_more_button', 'checkbox', __('Read More Button', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show read more button when Post Excerpt is chosen.', 'vantage'))); $settings->add_field('blog', 'read_more', 'text', __('Read More Text', 'vantage'), array('description' => __('The link displayed when post content is split using the "more" quicktag or when the read more button is enabled.', 'vantage'))); $settings->add_field('blog', 'circle_column_count', 'range', __('Circle Icon Archive Column Count', 'vantage'), array('description' => __('The number of columns to display when the circle icon archive layout is set.', 'vantage'), 'min' => 2, 'max' => 6, 'step' => 1)); $settings->add_field('blog', 'grid_column_count', 'range', __('Grid Archive Column Count', 'vantage'), array('description' => __('The number of columns to display when the grid archive layout is set.', 'vantage'), 'min' => 2, 'max' => 6, 'step' => 1)); /** * Social Settings */ $settings->add_teaser('social', 'ajax_comments', 'checkbox', __('Ajax Comments', 'vantage'), array('description' => __('Keep your conversations flowing with ajax comments.', 'vantage'), 'featured' => 'theme/ajax-comments')); /** * General Settings */ $settings->add_field('general', 'site_info_text', 'text', __('Site Information Text', 'vantage'), array('description' => __("Text displayed in your footer. {site-title}, {copyright} and {year} will be replaced with your website title, a copyright symbol and the current year.", 'vantage'), 'sanitize_callback' => 'wp_kses_post')); $settings->add_teaser('general', 'attribution', 'checkbox', __('SiteOrigin Attribution', 'vantage'), array('description' => __("Add or remove a link to SiteOrigin in your footer.", 'vantage'), 'featured' => 'theme/no-attribution')); $settings->add_field('general', 'js_enqueue_footer', 'checkbox', __('Enqueue JavaScript in Footer', 'vantage'), array('description' => __('Enqueue JavaScript files in the footer, if possible.', 'vantage'))); }
function focus_theme_settings() { $settings = SiteOrigin_Settings::single(); $settings->add_section('general', __('General', 'focus')); $settings->add_section('slider', __('Slider', 'focus')); $settings->add_section('video', __('Video', 'focus')); $settings->add_section('icons', __('Icons', 'focus')); $settings->add_section('layout', __('Layout', 'focus')); $settings->add_section('text', __('Text', 'focus')); $settings->add_section('menu', __('Main Menu', 'focus')); $settings->add_section('cta', __('Call To Action', 'focus')); $settings->add_section('comments', __('Comments', 'focus')); /** * General Settings */ $settings->add_field('general', 'logo', 'media', __('Logo', 'focus'), array('choose' => __('Choose Logo Image', 'focus'), 'update' => __('Set Logo', 'focus'), 'description' => __('Logo displayed in your masthead.', 'focus'))); $settings->add_field('general', 'retina_logo', 'media', __('Retina Logo', 'focus'), array('choose' => __('Choose Retina Logo Image', 'focus'), 'update' => __('Set Logo', 'focus'), 'description' => __('A double sized logo to use on retina devices.', 'focus'))); $settings->add_field('general', 'logo_scale', 'checkbox', __('Scale Logo', 'focus'), array('description' => __('If used, scale the logo to fit the menu bar', 'focus'))); $settings->add_teaser('general', 'attribution', 'checkbox', __('SiteOrigin Attribution', 'focus'), array('description' => __('Add or remove a link to SiteOrigin in your footer.', 'focus'), 'featured' => 'theme/no-attribution')); $settings->add_field('general', 'display_author', 'checkbox', __('Display Post Author', 'focus'), array('description' => __('Displays post author information on a post page.', 'focus'))); $settings->add_field('general', 'posts_nav', 'checkbox', __('Display Post Navigation', 'focus'), array('description' => __('Display next and previous post links on at the bottom of post single pages.', 'focus'))); /** * Home Page Slider */ $settings->add_field('slider', 'homepage', 'checkbox', __('Home Page Slider', 'focus'), array('description' => __('Display a posts slider on the home page.', 'focus'))); $settings->add_field('slider', 'post_count', 'number', __('Post Count', 'focus'), array('description' => __('The number of posts to display.', 'focus'))); $category_options = array(0 => __('All', 'focus')); $cats = get_categories(); if (!empty($cats)) { foreach (get_categories() as $cat) { $category_options[$cat->term_id] = $cat->name; } } $settings->add_field('slider', 'post_cat', 'select', __('Post Category', 'focus'), array('description' => __('Which category to fetch the video posts from.', 'focus'), 'options' => $category_options)); $settings->add_field('slider', 'post_orderby', 'select', __('Posts Order', 'focus'), array('description' => __('The order in which to display the posts.', 'focus'), 'options' => array('date' => __('Date', 'focus'), 'title' => __('Title', 'focus'), 'rand' => __('Random', 'focus'), 'comment_count' => __('Comment Count', 'focus')))); /** * Video Player */ $settings->add_field('video', 'by_text', 'text', __('Video By Text', 'focus'), array('description' => __('Change the text "video by" on single post pages.', 'focus'))); $settings->add_field('video', 'autoplay', 'checkbox', __('Autoplay Videos', 'focus'), array('description' => __('Videos start playing as soon as the video page is loaded.', 'focus'))); $settings->add_field('video', 'hide_related', 'checkbox', __('Hide Related Videos', 'focus'), array('description' => __('Hides related videos after a YouTube or Vimeo Plus video finishes.', 'focus'))); $settings->add_field('video', 'play_button', 'media', __('Play Button', 'focus'), array('description' => __('Add a custom play button to self hosted video.', 'focus'))); $settings->add_field('video', 'premium_access', 'text', __('Premium Access Rights', 'focus'), array('description' => __('The access rights required to view the premium version of a video. Can be used to integrate with plugins like <a href="http://www.s2member.com/3000.html">S2Member</a>', 'focus'), 'options' => array('s2member_level4' => __('S2Member - Level 4 Members', 'focus'), 's2member_level3' => __('S2Member - Level 3 Members', 'focus'), 's2member_level2' => __('S2Member - Level 2 Members', 'focus'), 's2member_level1' => __('S2Member - Level 1 Members', 'focus'), 's2member_level0' => __('S2Member - Free Subscribers', 'focus')))); /** * Icons */ $settings->add_field('icons', 'post_navigation', 'checkbox', __('Post Navigation Arrows', 'focus'), array('description' => __('Display next and previous arrows in the post single header for easier navigation.', 'focus'))); $settings->add_field('icons', 'search', 'media', __('Masthead Search Icon', 'focus'), array('description' => __('Replace the search icon with an image.', 'focus'))); $settings->add_field('icons', 'post_previous', 'media', __('Previous Post Icon', 'focus'), array('description' => __('Replace the previous arrow icon with an image in single posts.', 'focus'))); $settings->add_field('icons', 'post_next', 'media', __('Next Post Icon', 'focus'), array('description' => __('Replace the next arrow icon with an image in single posts.', 'focus'))); /** * Page Layout */ $settings->add_field('layout', 'responsive', 'checkbox', __('Responsive Layout', 'focus'), array('description' => __('Make your site responsive.', 'focus'))); /** * Site Text */ $settings->add_field('text', 'no_results', 'text', __('No Search Results', 'focus'), array('description' => __('Text displayed on your no search results pages.', 'focus'))); $settings->add_field('text', 'not_found', 'text', __('Page Not Found', 'focus'), array('description' => __('Text displayed on your 404 pages.', 'focus'))); $settings->add_field('text', 'latest_posts', 'text', __('Latest Posts Headline', 'focus')); $settings->add_field('text', 'footer_copyright', 'text', __('Footer Copyright', 'focus'), array('description' => __('Text in your site footer.', 'focus'))); /** * Main Menu */ $settings->add_field('menu', 'home', 'checkbox', __('Home Link', 'focus'), array('description' => __('Add a home link to your menu bar. Only applicable a custom menu hasn\'t been saved to the Primary Menu location.', 'focus'))); $settings->add_field('menu', 'search', 'checkbox', __('Menu Search', 'focus'), array('description' => __('Add search box to menu bar.', 'focus'))); /** * Footer CTA */ $settings->add_field('cta', 'text', 'text', __('CTA Text', 'focus')); $settings->add_field('cta', 'button_text', 'text', __('CTA Button Text', 'focus')); $settings->add_field('cta', 'button_url', 'text', __('CTA Button URL', 'focus')); /** * Comments */ $settings->add_teaser('comments', 'ajax_comments', 'checkbox', __('Ajax Comments', 'focus'), array('description' => __('Lets your users post comments without interrupting video play.', 'focus'), 'featured' => 'theme/ajax-comments')); $settings->add_field('comments', 'page_hide', 'checkbox', __('Hide Page Comments', 'focus'), array('description' => __('Automatically hides the comments and comment form on pages.', 'focus'), 'label' => __('Hide', 'focus'))); $settings->add_field('comments', 'hide_allowed_tags', 'checkbox', __('Hide Allowed Tags', 'focus'), array('description' => __('Hides allowed tags from the comment form.', 'focus'), 'label' => __('Hide', 'focus'))); }