Exemplo n.º 1
0
/**
 * Setup theme settings.
 * 
 * @since vantage 1.0
 */
function vantage_theme_settings()
{
    siteorigin_settings_add_section('logo', __('Logo', 'vantage'));
    siteorigin_settings_add_section('layout', __('Layout', 'vantage'));
    siteorigin_settings_add_section('home', __('Home', 'vantage'));
    siteorigin_settings_add_section('navigation', __('Navigation', 'vantage'));
    siteorigin_settings_add_section('blog', __('Blog', 'vantage'));
    siteorigin_settings_add_section('social', __('Social', 'vantage'));
    siteorigin_settings_add_section('general', __('General', 'vantage'));
    /**
     * Logo Settings
     */
    siteorigin_settings_add_field('logo', 'image', 'media', __('Logo Image', 'vantage'), array('choose' => __('Choose Image', 'vantage'), 'update' => __('Set Logo', 'vantage'), 'description' => __('Your own custom logo.', 'vantage')));
    siteorigin_settings_add_teaser('logo', 'image_retina', __('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'), 'teaser-image' => get_template_directory_uri() . '/upgrade/teasers/retina-logo.png'));
    siteorigin_settings_add_field('logo', 'header_text', 'text', __('Header Text', 'vantage'), array('description' => __('Text that appears to the right of your logo.', 'vantage')));
    /**
     * Layout Settings
     */
    siteorigin_settings_add_field('layout', 'responsive', 'checkbox', __('Responsive Layout', 'vantage'), array('description' => __('Scale your layout for small screen devices.', 'vantage')));
    siteorigin_settings_add_field('layout', 'fitvids', 'checkbox', __('Enable FitVids.js', 'vantage'), array('description' => __('Include FitVids.js fluid embedded video layouts.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('layout', 'masthead', 'select', __('Masthead Layout', 'vantage'), array('options' => siteorigin_settings_template_part_names('parts/masthead', 'Part Name'), 'description' => __("Change which header area layout you're using.", 'vantage')));
    siteorigin_settings_add_field('layout', 'menu', 'select', __('Masthead Menu', 'vantage'), array('options' => siteorigin_settings_template_part_names('parts/menu', 'Part Name'), 'description' => __("Choose how the masthead menu is displayed.", 'vantage')));
    siteorigin_settings_add_field('layout', 'footer', 'select', __('Footer Layout', 'vantage'), array('options' => siteorigin_settings_template_part_names('parts/footer', 'Part Name'), 'description' => __("Change which footer area layout you're using.", 'vantage')));
    /**
     * Navigation settings
     */
    siteorigin_settings_add_teaser('navigation', 'responsive_menu', __('Responsive Menu', 'vantage'), array('description' => __('Use a special responsive menu for small screen devices.', 'vantage'), 'teaser-image' => get_template_directory_uri() . '/upgrade/teasers/mobile-nav.png'));
    siteorigin_settings_add_teaser('navigation', 'responsive_menu_text', __('Responsive Menu Text', 'vantage'), array('description' => __('The button used for the responsive menu.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('navigation', 'menu_search', 'checkbox', __('Search in Menu', 'vantage'), array('description' => __('Display a search in the main menu.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('navigation', 'post_nav', 'checkbox', __('Post Navigation', 'vantage'), array('description' => __('Display next/previous post navigation.', 'vantage')));
    siteorigin_settings_add_field('navigation', 'home_icon', 'checkbox', __('Home Page Icon', 'vantage'), array('description' => __('Display home icon for home page menu links.', 'vantage')));
    siteorigin_settings_add_field('navigation', 'mobile_navigation', 'checkbox', __('Mobile Navigation', 'vantage'), array('description' => __('Enables Sticky Menu and Scroll To Top for mobile devices.', 'vantage')));
    /**
     * Home Page
     */
    siteorigin_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/')));
    siteorigin_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
     */
    siteorigin_settings_add_field('blog', 'archive_layout', 'select', __('Blog Archive Layout', 'vantage'), array('options' => vantage_blog_layout_options(), 'description' => __('Show the post author in blog archive pages.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('blog', 'post_author', 'checkbox', __('Post Author', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post author in blog archive pages.', 'vantage')));
    siteorigin_settings_add_field('blog', 'post_date', 'checkbox', __('Post Date', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post date.', 'vantage')));
    siteorigin_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')));
    siteorigin_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.', 'vantage')));
    /**
     * Social Settings
     */
    siteorigin_settings_add_teaser('social', 'ajax_comments', __('Ajax Comments', 'vantage'), array('description' => __('Keep your conversations flowing with ajax comments.', 'vantage')));
    siteorigin_settings_add_teaser('social', 'share_post', __('Post Sharing', 'vantage'), array('description' => __('Show icons to share your posts on Facebook, Twitter and Google+.', 'vantage'), 'teaser-image' => get_template_directory_uri() . '/upgrade/teasers/share.png'));
    siteorigin_settings_add_teaser('social', 'twitter', __('Twitter Handle', 'vantage'), array('description' => __('This handle will be recommended after a user shares one of your posts.', 'vantage'), 'teaser-image' => get_template_directory_uri() . '/upgrade/teasers/share-rec.png'));
    /**
     * General Settings
     */
    siteorigin_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')));
}
Exemplo n.º 2
0
/**
 * Initialize the settings.
 */
function ultra_settings_init()
{
    siteorigin_settings_add_section('header', __('Header', 'ultra'));
    siteorigin_settings_add_section('navigation', __('Navigation', 'ultra'));
    siteorigin_settings_add_section('layout', __('Layout', 'ultra'));
    siteorigin_settings_add_section('home', __('Home', 'ultra'));
    siteorigin_settings_add_section('pages', __('Pages', 'ultra'));
    siteorigin_settings_add_section('blog', __('Blog', 'ultra'));
    siteorigin_settings_add_section('comments', __('Comments', 'ultra'));
    siteorigin_settings_add_section('footer', __('Footer', 'ultra'));
    siteorigin_settings_add_section('text', __('Site Text', 'ultra'));
    // Header
    siteorigin_settings_add_field('header', 'logo', 'media', __('Logo', 'ultra'), array('description' => __('Your own custom logo.', 'ultra')));
    siteorigin_settings_add_field('header', 'tagline', 'checkbox', __('Tagline', 'ultra'), array('description' => __('Display the website tagline.', 'ultra')));
    siteorigin_settings_add_field('header', 'top_bar', 'checkbox', __('Top Bar', 'ultra'), array('description' => __('Display the top bar.', 'ultra')));
    siteorigin_settings_add_field('header', 'sticky', 'checkbox', __('Sticky Header', 'ultra'), array('description' => __('Sticks the header to the top of the screen as the user scrolls down.', 'ultra')));
    siteorigin_settings_add_field('header', 'opacity', 'text', __('Sticky Header Opacity', 'ultra'), array('description' => __('Set the header background opacity once it turns sticky. 0.1 (lowest) - 1 (highest).', 'ultra')));
    siteorigin_settings_add_field('header', 'scale', 'checkbox', __('Sticky Header Scaling', 'ultra'), array('description' => __('Scale the header down as it becomes sticky.', 'ultra')));
    // Navigation
    siteorigin_settings_add_field('navigation', 'menu_search', 'checkbox', __('Menu Search', 'ultra'), array('description' => __('Display a search icon in the main menu.', 'ultra')));
    siteorigin_settings_add_field('navigation', 'responsive_menu', 'checkbox', __('Responsive Menu', 'ultra'), array('description' => __('Use a special responsive menu for small screen devices.', 'ultra')));
    siteorigin_settings_add_field('navigation', 'responsive_menu_collapse', 'number', __('Responsive Menu Collapse', 'ultra'), array('description' => __('The pixel resolution when the primary menu collapses into a responsive menu.', 'ultra')));
    siteorigin_settings_add_field('navigation', 'breadcrumb_trail', 'checkbox', __('Breadcrumb Trail', 'ultra'), array('description' => __('Display a breadcrumb trail below the menu. De-activate this setting if using Yoast Breadcrumbs or Breadcrumb NavXT.', 'ultra')));
    siteorigin_settings_add_field('navigation', 'post_nav', 'checkbox', __('Post Navigation', 'ultra'), array('description' => __('Display next/previous post navigation.', 'ultra')));
    siteorigin_settings_add_field('navigation', 'scroll_top', 'checkbox', __('Scroll to Top', 'ultra'), array('description' => __('Display the scroll to top button.', 'ultra')));
    // Layout
    siteorigin_settings_add_field('layout', 'responsive', 'checkbox', __('Responsive Layout', 'ultra'), array('description' => __('Adapt the site layout for mobile devices.', 'ultra')));
    siteorigin_settings_add_field('layout', 'fitvids', 'checkbox', __('Enable FitVids.js', 'ultra'), array('description' => __('Include FitVids.js for fluid width video embeds.', 'ultra')));
    // Home
    siteorigin_settings_add_field('home', 'slider', 'select', __('Home Slider', 'ultra'), 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 easily build beautiful responsive sliders - <a href="%s" target="_blank">read more</a>.', 'ultra'), 'https://getdpd.com/cart/hoplink/15318?referrer=1ag7po4k2uas40wowgw', siteorigin_metaslider_install_link(), 'http://ultrathemes.com/documentation/')));
    siteorigin_settings_add_field('home', 'slider_stretch', 'checkbox', __('Stretch Slider', 'ultra'), array('label' => __('Stretch Slider', 'ultra'), 'description' => __('Stretch the home page slider to full screen width.', 'ultra')));
    siteorigin_settings_add_field('home', 'header_overlaps', 'checkbox', __('Header Overlaps Slider', 'ultra'), array('description' => __('Should the header overlap the home page slider?', 'ultra')));
    // Pages
    siteorigin_settings_add_field('pages', 'featured_image', 'checkbox', __('Featured Image', 'ultra'), array('description' => __('Display the featured image on pages.', 'ultra')));
    // Blog
    siteorigin_settings_add_field('blog', 'page_title', 'text', __('Blog Page Title', 'ultra'), array('description' => __('The page title of the blog page.', 'ultra')));
    siteorigin_settings_add_field('blog', 'archive_featured_image', 'checkbox', __('Archive Featured Image', 'ultra'), array('description' => __('Display the featured image on the blog archive pages.', 'ultra')));
    siteorigin_settings_add_field('blog', 'archive_content', 'select', __('Archive Post Content', 'ultra'), array('options' => array('full' => __('Full Post Content', 'ultra'), 'excerpt' => __('Post Excerpt', 'ultra')), 'description' => __('Choose how to display your post content on blog and archive pages. Select Full Post Content if using the "more" quicktag.', 'ultra')));
    siteorigin_settings_add_field('blog', 'read_more', 'text', __('Read More Text', 'ultra'), array('description' => __('The link text displayed when posts are split using the "more" quicktag.', 'ultra'), 'conditional' => array('show' => array('blog_archive_content' => 'full'), 'hide' => 'else')));
    siteorigin_settings_add_field('blog', 'excerpt_length', 'number', __('Post Excerpt Length', 'ultra'), array('description' => __('If no manual post excerpt is added one will be generated. How many words should it be?', 'ultra'), 'conditional' => array('show' => array('blog_archive_content' => 'excerpt'), 'hide' => 'else')));
    siteorigin_settings_add_field('blog', 'post_featured_image', 'checkbox', __('Post Featured Image', 'ultra'), array('description' => __('Display the featured image on the single post page.', 'ultra')));
    siteorigin_settings_add_field('blog', 'post_date', 'checkbox', __('Post Date', 'ultra'), array('description' => __('Display the post date.', 'ultra')));
    siteorigin_settings_add_field('blog', 'post_author', 'checkbox', __('Post Author', 'ultra'), array('description' => __('Display the post author.', 'ultra')));
    siteorigin_settings_add_field('blog', 'post_comment_count', 'checkbox', __('Post Comment Count', 'ultra'), array('description' => __('Display the post comment count.', 'ultra')));
    siteorigin_settings_add_field('blog', 'post_cats', 'checkbox', __('Post Categories', 'ultra'), array('description' => __('Display the post categories.', 'ultra')));
    siteorigin_settings_add_field('blog', 'post_tags', 'checkbox', __('Post Tags', 'ultra'), array('description' => __('Display the post tags.', 'ultra')));
    siteorigin_settings_add_field('blog', 'edit_link', 'checkbox', __('Edit Link', 'ultra'), array('description' => __('Display an Edit link below post content. Visible if a user is logged in and allowed to edit the content. Also applies to Pages.', 'ultra')));
    // Comments
    siteorigin_settings_add_field('comments', 'allowed_tags', 'checkbox', __('Comment Form Allowed Tags', 'ultra'), array('description' => __('Display the explanatory text below the comment form that lets users know which HTML tags may be used.', 'ultra')));
    // Footer
    siteorigin_settings_add_field('footer', 'copyright_text', 'text', __('Copyright Text', 'ultra'), array('description' => __('{site-title}, {copyright} and {year} can be used to display your website title, a copyright symbol and the current year.', 'ultra')));
    // Site Text
    siteorigin_settings_add_field('text', 'phone', 'text', __('Phone Number', 'ultra'), array('description' => __('A phone number displayed in the top bar. Use international dialing format to enable click to call.', 'ultra')));
    siteorigin_settings_add_field('text', 'email', 'text', __('Email Address', 'ultra'), array('description' => __('An email address to be displayed in the top bar', 'ultra')));
    siteorigin_settings_add_field('text', 'comments_closed', 'text', __('Comments Closed', 'ultra'), array('description' => __('The text visitors see at the bottom of posts when comments are closed.', 'ultra')));
    siteorigin_settings_add_field('text', 'no_results_heading', 'text', __('No Search Results Heading', 'ultra'), array('description' => __('The search page heading visitors see when no results are found.', 'ultra')));
    siteorigin_settings_add_field('text', 'no_results_copy', 'text', __('No Search Results Text', 'ultra'), array('description' => __('The search page text visitors see when no results are found.', 'ultra')));
    siteorigin_settings_add_field('text', '404_heading', 'text', __('404 Error Page Heading', 'ultra'), array('description' => __('The heading visitors see when no page is found.', 'ultra')));
    siteorigin_settings_add_field('text', '404_copy', 'text', __('404 Error Page Text', 'ultra'), array('description' => __('The text visitors see no page is found.', 'ultra')));
}
Exemplo n.º 3
0
function pitch_settings_admin_init()
{
    // All the sections
    siteorigin_settings_add_section('general', __('General', 'pitch'));
    siteorigin_settings_add_section('front_page', __('Front Page', 'pitch'));
    siteorigin_settings_add_section('slider', __('Slider', 'pitch'));
    siteorigin_settings_add_section('project', __('Projects', 'pitch'));
    siteorigin_settings_add_section('type', __('Post Types', 'pitch'));
    siteorigin_settings_add_section('text', __('Site Text', 'pitch'));
    // General Settings Fields
    siteorigin_settings_add_field('general', 'demo_mode', 'checkbox', __('Demo Mode', 'pitch'), array('description' => __("You should disable this after you've installed Pitch.", 'pitch')));
    siteorigin_settings_add_field('general', 'search_input', 'checkbox', __('Search Input', 'pitch'), array('description' => __("Show the search field at the top of your site.", 'pitch')));
    siteorigin_settings_add_field('general', 'menu_extras', 'checkbox', __('Menu Extras', 'pitch'), array('description' => __("Display blog, home and project links in the menus.", 'pitch')));
    siteorigin_settings_add_field('general', 'topbar_menu', 'checkbox', __('Display Top Bar Menu', 'pitch'), array('description' => __("Display the menu bar along the top of Pitch.", 'pitch')));
    siteorigin_settings_add_field('general', 'scale_main_menu', 'checkbox', __('Scale Main Menu', 'pitch'), array('description' => __("Scale menu items so they spread across the whole width of the menu.", 'pitch')));
    siteorigin_settings_add_teaser('general', 'attribution', __('Attribution Link', 'pitch'), array('description' => __('Hide or display the attribution link in the footer.', 'pitch')));
    // Front Page Settings Fields
    siteorigin_settings_add_field('front_page', 'portfolio_home', 'checkbox', __('Portfolio Home Page', 'pitch'), array('description' => __('Disabling this will convert your home page into a blog.', 'pitch')));
    siteorigin_settings_add_field('front_page', 'cta_text', 'text', __('Call To Action Text', 'pitch'), array('description' => __('Call to action text on your home page.', 'pitch')));
    siteorigin_settings_add_field('front_page', 'cta_button_text', 'text', __('Call To Action Button Text', 'pitch'));
    siteorigin_settings_add_field('front_page', 'cta_button_url', 'text', __('Call To Action Button URL', 'pitch'));
    siteorigin_settings_add_field('front_page', 'home_blog', 'checkbox', __('Display Blog on Home Page', 'pitch'), array('description' => __('Displays blog entries on your home page.', 'pitch')));
    // Home page titles
    siteorigin_settings_add_field('front_page', 'home_title_latest_projects', 'text', __('Title: Latest Projects', 'pitch'), array('description' => __('Title of the projects block.', 'pitch')));
    siteorigin_settings_add_field('front_page', 'home_title_blog', 'text', __('Title: Blog', 'pitch'), array('description' => __('Title of the blog block.', 'pitch')));
    siteorigin_settings_add_field('front_page', 'home_title_clients', 'text', __('Title: Clients', 'pitch'), array('description' => __('Title of the clients block.', 'pitch')));
    // Slider Settings
    siteorigin_settings_add_field('slider', 'speed', 'text', __('Slider Speed', 'pitch'), array('description' => __('Number of milliseconds Pitch shows each slide.', 'pitch')));
    siteorigin_settings_add_field('slider', 'animation_speed', 'text', __('Slider Transition Animation Speed', 'pitch'), array('description' => __('Number of milliseconds each slide transition takes.', 'pitch')));
    siteorigin_settings_add_field('slider', 'max_slides', 'text', __('Maximum Slides', 'pitch'), array('description' => __('The maximum number of slides to display on the home page slider.', 'pitch')));
    siteorigin_settings_add_field('slider', 'effect', 'select', __('Transition Effect', 'pitch'), array('description' => __('The maximum number of slides to display on the home page slider.', 'pitch'), 'options' => array('random' => __('Random', 'pitch'), 'sliceDown' => __('Slice Down', 'pitch'), 'sliceDownLeft' => __('Slice Down Left', 'pitch'), 'sliceUp' => __('Slice Up', 'pitch'), 'sliceUpLeft' => __('Slice Up Left', 'pitch'), 'sliceUpDown' => __('Slice Up Down', 'pitch'), 'sliceUpDownLeft' => __('Slice Up Down Left', 'pitch'), 'fold' => __('Fold', 'pitch'), 'fade' => __('Fade', 'pitch'), 'slideInRight' => __('Slide In Right', 'pitch'), 'slideInLeft' => __('Slide In Left', 'pitch'), 'boxRandom' => __('Box Random', 'pitch'), 'boxRain' => __('Box Rain', 'pitch'), 'boxRainReverse' => __('Box Rain Reverse', 'pitch'), 'boxRainGrow' => __('Box Rain Grow', 'pitch'), 'boxRainGrowReverse' => __('Box Rain Grow Reverse', 'pitch'))));
    siteorigin_settings_add_field('slider', 'height', 'text', __('Slider Height', 'pitch'), array('description' => __('The height of the home page slider in pixels. You need to regenerate thumbnails if you change this.', 'pitch')));
    // The Project settings
    siteorigin_settings_add_field('project', 'tags', 'checkbox', __('Project Tags', 'pitch'), array('description' => __("Use project skill tags.", 'pitch')));
    siteorigin_settings_add_field('project', 'archive_title', 'text', __('Projects Archive Title', 'pitch'), array('description' => __("Use project skill tags.", 'pitch')));
    siteorigin_settings_add_field('project', 'view_text', 'text', __('View Project Text', 'pitch'), array('description' => __('The text displayed to view a project.', 'pitch')));
    siteorigin_settings_add_field('project', 'url_slug', 'text', __('Project Slug', 'pitch'), array('description' => __("The slug used in a project's URL.", 'pitch')));
    // Enabled/Disabled Project Types
    siteorigin_settings_add_field('type', 'project', 'checkbox', __('Projects', 'pitch'), array('description' => __("Enable or disable Projects.", 'pitch')));
    siteorigin_settings_add_field('type', 'feature', 'checkbox', __('Features', 'pitch'), array('description' => __("Enable or disable Features.", 'pitch')));
    siteorigin_settings_add_field('type', 'client', 'checkbox', __('Clients', 'pitch'), array('description' => __("Enable or disable Clients.", 'pitch')));
    siteorigin_settings_add_field('type', 'slide', 'checkbox', __('Slides', 'pitch'), array('description' => __("Enable or disable Slides.", 'pitch')));
    // Site Text
    siteorigin_settings_add_field('text', 'footer_text', 'text', __('Footer Text', 'pitch'));
    siteorigin_settings_add_field('text', 'search_placeholder', 'text', __('Search Placeholder', 'pitch'));
    siteorigin_settings_add_field('text', 'comments_closed', 'text', __('Comments Closed', 'pitch'));
    siteorigin_settings_add_field('text', 'not_found', 'text', __('Page Not Found', 'pitch'));
}
Exemplo n.º 4
0
/**
 * Setup theme settings.
 * 
 * @since clearly 1.0
 */
function clearly_theme_settings()
{
    siteorigin_settings_add_section('general', __('General', 'clearly'));
    siteorigin_settings_add_section('home', __('Home Page', 'clearly'));
    /**
     * General Settings
     */
    siteorigin_settings_add_field('general', 'logo', 'media', __('Logo', 'clearly'), array('description' => __('Choose a logo to display instead of your site title and icon.', 'clearly'), 'choose' => __('Choose Image', 'clearly'), 'update' => __('Set Logo', 'clearly')));
    siteorigin_settings_add_field('general', 'logo_icon_display', 'checkbox', __('Dislay Logo Icon', 'clearly'), array('description' => __('Display the logo icon (defaults to blue power button).', 'clearly')));
    siteorigin_settings_add_field('general', 'logo_icon', 'media', __('Logo Icon', 'clearly'), array('description' => __('An icon to display next to site title.', 'clearly'), 'choose' => __('Choose Image', 'clearly'), 'update' => __('Set Logo Icon', 'clearly')));
    // siteorigin_settings_add_field('general', '', '');
    /**
     * Home Page
     */
    siteorigin_settings_add_field('home', 'slider_enabled', 'checkbox', __('Display Home Page Slider', 'clearly'));
    siteorigin_settings_add_field('home', 'slider', 'gallery', __('Home Slider Images', 'clearly'));
}
Exemplo n.º 5
0
/**
 * Setup theme settings.
 * 
 * @since so-current 1.0
 */
function so_current_theme_settings()
{
    siteorigin_settings_add_section('general', __('General', 'so-current'));
    siteorigin_settings_add_section('home', __('Home Page', 'so-current'));
    /**
     * General Settings
     */
    siteorigin_settings_add_field('general', 'logo', 'media', __('Logo', 'so-current'), array('choose' => __('Choose Image', 'so-current'), 'update' => __('Set Logo', 'so-current')));
    /**
     * Home Page
     */
    siteorigin_settings_add_field('home', 'message', 'checkbox', __('Display Home Page Message', 'so-current'));
    siteorigin_settings_add_field('home', 'message_title', 'text', __('Message Title', 'so-current'));
    siteorigin_settings_add_field('home', 'message_text', 'text', __('Message Text', 'so-current'));
    siteorigin_settings_add_field('home', 'message_button', 'text', __('Button Text', 'so-current'));
    siteorigin_settings_add_field('home', 'message_url', 'text', __('Button URL', 'so-current'));
    siteorigin_settings_add_field('home', 'message_image', 'media', __('Image', 'so-current'));
    siteorigin_settings_add_field('home', 'message_frame', 'select', __('Image', 'so-current'), array('options' => array('tablet' => __('Tablet - [222 x 295 px image]', 'so-current'), 'phone' => __('Mobile Phone 1 - [151 x 265 px image]', 'so-current'), 'phone2' => __('Mobile Phone 2 - [163 x 288 px image]', 'so-current'))));
}
Exemplo n.º 6
0
/**
 * Setup theme settings.
 * 
 * @since estate 1.0
 */
function estate_theme_settings()
{
    siteorigin_settings_add_section('general', __('General', 'estate'));
    siteorigin_settings_add_section('banner', __('Home Banner', 'estate'));
    siteorigin_settings_add_section('layout', __('Layout', 'estate'));
    siteorigin_settings_add_section('text', __('Site Text', 'estate'));
    /**
     * General Settings
     */
    siteorigin_settings_add_field('general', 'logo', 'media', __('Logo', 'estate'), array('choose' => __('Choose Image', 'estate'), 'update' => __('Set Logo', 'estate')));
    siteorigin_settings_add_teaser('general', 'logo_retina', __('Retina Logo', 'estate'), array('choose' => __('Choose Image', 'estate'), 'update' => __('Set Logo', 'estate'), 'description' => __('A double sized version of your logo for retina displays. Must be used in addition to standard logo.', 'estate')));
    siteorigin_settings_add_field('general', 'site_description', 'checkbox', __('Site Description', 'estate'), array('description' => __('Display your site description under your logo.', 'estate')));
    siteorigin_settings_add_field('general', 'menu_search', 'checkbox', __('Menu Search', 'estate'), array('description' => __('Display a search input in the main menu.', 'estate')));
    siteorigin_settings_add_teaser('general', 'footer_attribution', __('Footer Attribution', 'estate'), array('description' => __('Remove the SiteOrigin attribution text from your footer.', 'estate')));
    siteorigin_settings_add_teaser('general', 'ajax_comments', __('Ajax Comments', 'estate'), array('description' => __('Comments are updated without reloading the page.', 'estate')));
    /**
     * Home Page
     */
    $options = array('' => __('None', 'estate'), 'title_banner' => __('Title Banner with Image', 'estate'), 'title_banner_noimage' => __('Title Banner without Image', 'estate'));
    if (class_exists('MetaSliderPlugin')) {
        $sliders = get_posts(array('post_type' => 'ml-slider'));
        foreach ($sliders as $slider) {
            $options['meta:' . $slider->ID] = __('Slider: ', 'estate') . $slider->post_title;
        }
    }
    siteorigin_settings_add_field('banner', 'type', 'select', __('Home Page Banner', 'estate'), array('options' => $options, 'description' => sprintf(__('This theme supports <a href="%s" target="_blank">Meta Slider</a>. <a href="%s">Install it</a> for free to create responsive, animated sliders - <a href="%s" target="_blank">More Info</a>', 'estate'), 'http://sorig.in/metaslider', siteorigin_plugin_activation_install_url('ml-slider', __('Meta Slider', 'estate'), 'http://sorig.in/ml-slider'), 'http://siteorigin.com/estate-documentation/sliders/')));
    siteorigin_settings_add_field('banner', 'image', 'media', __('Background Image', 'estate'));
    siteorigin_settings_add_field('banner', 'color', 'color', __('Background Color', 'estate'));
    siteorigin_settings_add_field('banner', 'title', 'text', __('Banner Title', 'estate'));
    siteorigin_settings_add_field('banner', 'subtitle', 'text', __('Banner Subtitle', 'estate'));
    siteorigin_settings_add_field('banner', 'button', 'text', __('Banner Button', 'estate'));
    siteorigin_settings_add_field('banner', 'button_url', 'text', __('Banner Button URL', 'estate'));
    /**
     * Layout
     */
    siteorigin_settings_add_teaser('layout', 'responsive', __('Responsive Layout', 'estate'), array('description' => __('Use a layout that adapts to mobile devices.', 'estate')));
    siteorigin_settings_add_teaser('layout', 'responsive_menu', __('Responsive Menu', 'estate'), array('description' => __('A single button nested menu is displayed for mobile devices.', 'estate')));
    siteorigin_settings_add_field('text', 'footer_text', 'text', __('Footer Text', 'estate'), array('description' => __('The footer text, ideal for copyright information', 'estate')));
}
Exemplo n.º 7
0
/**
 * Add the order number setting.
 *
 * @action admin_init
 */
function siteorigin_theme_update_settings()
{
    siteorigin_settings_add_section('premium', __('Premium', 'vantage'));
    siteorigin_settings_add_field('premium', 'order_number', 'text', __('Order Number', 'vantage'), array('description' => __('Enter the order number we sent you by email', 'vantage')));
}
Exemplo n.º 8
0
/**
 * Setup theme settings.
 * 
 * @since vantage 1.0
 */
function vantage_theme_settings()
{
    siteorigin_settings_add_section('logo', __('Logo', 'vantage'));
    siteorigin_settings_add_section('layout', __('Layout', 'vantage'));
    siteorigin_settings_add_section('home', __('Home', 'vantage'));
    siteorigin_settings_add_section('navigation', __('Navigation', 'vantage'));
    siteorigin_settings_add_section('blog', __('Blog', 'vantage'));
    siteorigin_settings_add_section('social', __('Social', 'vantage'));
    siteorigin_settings_add_section('general', __('General', 'vantage'));
    /**
     * Logo Settings
     */
    siteorigin_settings_add_field('logo', 'image', 'media', __('Logo Image', 'vantage'), array('choose' => __('Choose Image', 'vantage'), 'update' => __('Set Logo', 'vantage'), 'description' => __('Your own custom logo.', 'vantage')));
    siteorigin_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')));
    siteorigin_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'), 'conditional' => array('show' => array('layout_masthead' => 'logo-in-menu'), 'hide' => 'else')));
    //	siteorigin_settings_add_teaser('logo', 'image_retina', __('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'),
    //		'teaser-image' => get_template_directory_uri().'/upgrade/teasers/retina-logo.png',
    //	) );
    siteorigin_settings_add_field('logo', 'header_text', 'text', __('Header Text', 'vantage'), array('description' => __('Text that appears to the right of your logo.', 'vantage')));
    //
    //	siteorigin_settings_add_field('logo', 'sub_menu', 'select', __('Sub Menu', 'vantage'), array(
    //		'options' => array(
    //			'boxed' => __('Boxed', 'vantage'),
    //			'full' => __('Full Width', 'vantage'),
    //		),
    //		'description' => __('Change the width of the bounding box.', 'vantage')
    //	) );
    /**
     * Layout Settings
     */
    siteorigin_settings_add_field('layout', 'responsive', 'checkbox', __('Responsive Layout', 'vantage'), array('description' => __('Scale your layout for small screen devices.', 'vantage')));
    siteorigin_settings_add_field('layout', 'fitvids', 'checkbox', __('Enable FitVids.js', 'vantage'), array('description' => __('Include FitVids.js fluid embedded video layouts.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('layout', 'masthead', 'select', __('Masthead Layout', 'vantage'), array('options' => siteorigin_settings_template_part_names('parts/masthead', 'Part Name'), 'description' => __("Change which header area layout you're using.", 'vantage')));
    siteorigin_settings_add_field('layout', 'menu', 'select', __('Masthead Menu', 'vantage'), array('options' => siteorigin_settings_template_part_names('parts/menu', 'Part Name'), 'description' => __("Choose how the masthead menu is displayed.", 'vantage')));
    siteorigin_settings_add_field('layout', 'footer', 'select', __('Footer Layout', 'vantage'), array('options' => siteorigin_settings_template_part_names('parts/footer', 'Part Name'), 'description' => __("Change which footer area layout you're using.", 'vantage')));
    siteorigin_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
     */
    siteorigin_settings_add_field('navigation', 'responsive_menu', 'checkbox', __('Responsive Menu', 'vantage'), array('description' => __('Use a special responsive menu for small screen devices.', 'vantage')));
    //	siteorigin_settings_add_teaser('navigation', 'responsive_menu', __('Responsive Menu', 'vantage'), array(
    //		'description' => __('Use a special responsive menu for small screen devices.', 'vantage'),
    //		'teaser-image' => get_template_directory_uri().'/upgrade/teasers/mobile-nav.png',
    //	));
    siteorigin_settings_add_teaser('navigation', 'responsive_menu_text', __('Responsive Menu Text', 'vantage'), array('description' => __('The button used for the responsive menu.', 'vantage')));
    siteorigin_settings_add_teaser('navigation', 'responsive_menu_search', __('Responsive Menu Search', 'vantage'), array('description' => __('Enable search in the responsive menu.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('navigation', 'menu_search', 'checkbox', __('Search in Menu', 'vantage'), array('description' => __('Display a search in the main menu.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('navigation', 'post_nav', 'checkbox', __('Post Navigation', 'vantage'), array('description' => __('Display next/previous post navigation.', 'vantage')));
    siteorigin_settings_add_field('navigation', 'home_icon', 'checkbox', __('Home Page Icon', 'vantage'), array('description' => __('Display home icon for home page menu links.', 'vantage')));
    //	siteorigin_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')) {
        siteorigin_settings_add_field('navigation', 'yoast_breadcrumbs', 'checkbox', __('Yoast Breadcrumbs', 'vantage'), array('description' => __('Display Yoast SEO breadcrumbs if you have it installed.', 'vantage')));
    }
    /**
     * Home Page
     */
    siteorigin_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/')));
    siteorigin_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
     */
    siteorigin_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')));
    siteorigin_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'), 'conditional' => array('show' => array('blog_archive_layout' => 'blog'), 'hide' => 'else')));
    siteorigin_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')));
    siteorigin_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')));
    siteorigin_settings_add_field('blog', 'post_metadata', 'checkbox', __('Post Metadata', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post metadata under the post title.', 'vantage')));
    siteorigin_settings_add_field('blog', 'post_date', 'checkbox', __('Post Date', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post date under the post title.', 'vantage')));
    siteorigin_settings_add_field('blog', 'post_author', 'checkbox', __('Post Author', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post author under the post title.', 'vantage')));
    siteorigin_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')));
    siteorigin_settings_add_field('blog', 'post_categories', 'checkbox', __('Post Categories', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post categories below the single post.', 'vantage')));
    siteorigin_settings_add_field('blog', 'post_tags', 'checkbox', __('Post Tags', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show the post tags below the single post.', 'vantage')));
    siteorigin_settings_add_field('blog', 'author_box', 'checkbox', __('Author Box', 'vantage'), array('label' => __('Display', 'vantage'), 'description' => __('Show an author box below each blog post.', 'vantage')));
    siteorigin_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.', 'vantage')));
    /**
     * Social Settings
     */
    siteorigin_settings_add_teaser('social', 'ajax_comments', __('Ajax Comments', 'vantage'), array('description' => __('Keep your conversations flowing with ajax comments.', 'vantage')));
    siteorigin_settings_add_teaser('social', 'share_post', __('Post Sharing', 'vantage'), array('description' => __('Show icons to share your posts on Facebook, Twitter and Google+.', 'vantage'), 'teaser-image' => get_template_directory_uri() . '/upgrade/teasers/share.png'));
    siteorigin_settings_add_teaser('social', 'twitter', __('Twitter Handle', 'vantage'), array('description' => __('This handle will be recommended after a user shares one of your posts.', 'vantage'), 'teaser-image' => get_template_directory_uri() . '/upgrade/teasers/share-rec.png'));
    /**
     * General Settings
     */
    siteorigin_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')));
    siteorigin_settings_add_teaser('general', 'adaptive_images', __('Mobile Adaptive Images', 'vantage'), array('description' => __('Rescale images to the most appropriate size for mobile devices.', 'vantage')));
    siteorigin_settings_add_field('general', 'js_enqueue_footer', 'checkbox', __('Enqueue JavaScript in Footer', 'vantage'), array('description' => __('Enqueue JavaScript files in the footer, if possible.', 'vantage')));
}
Exemplo n.º 9
0
function focus_theme_settings()
{
    siteorigin_settings_add_section('general', __('General', 'focus'));
    siteorigin_settings_add_section('slider', __('Slider', 'focus'));
    siteorigin_settings_add_section('video', __('Video', 'focus'));
    siteorigin_settings_add_section('layout', __('Layout', 'focus'));
    siteorigin_settings_add_section('text', __('Text', 'focus'));
    siteorigin_settings_add_section('menu', __('Main Menu', 'focus'));
    siteorigin_settings_add_section('cta', __('Call To Action', 'focus'));
    siteorigin_settings_add_section('comments', __('Comments', 'focus'));
    /**
     * General Settings
     */
    siteorigin_settings_add_field('general', 'logo', 'media', __('Logo', 'focus'), array('choose' => __('Choose Logo Image', 'focus'), 'update' => __('Set Logo', 'focus')));
    siteorigin_settings_add_field('general', 'logo_scale', 'checkbox', __('Scale Logo', 'focus'), array('description' => __('If used, scale the logo to fit the menu bar', 'focus')));
    siteorigin_settings_add_field('general', 'display_author', 'checkbox', __('Display Post Author', 'focus'), array('description' => __('Displays post author information on a post page.', 'focus')));
    siteorigin_settings_add_field('general', 'posts_nav', 'checkbox', __('Display Post Navigation', 'focus'), array('description' => __('Display next and previous post links on post single pages.', 'focus')));
    siteorigin_settings_add_teaser('general', 'ajax_comments', __('Ajax Comments', 'focus'), array('description' => __('Lets your users post comments without interrupting video play.', 'focus')));
    siteorigin_settings_add_teaser('general', 'siteorigin_credits', __('Display Credit Link', 'focus'), array('description' => __('Display "Theme by SiteOrigin" in your footer.', 'focus')));
    /**
     * Home Page Slider
     */
    siteorigin_settings_add_field('slider', 'post_count', 'number', __('Post Count', 'focus'), array('description' => __('The number of posts to display.', 'focus')));
    siteorigin_settings_add_teaser('slider', 'post_cat', __('Post Category', 'focus'), array('description' => __('Which category to fetch the video posts from.', 'focus')));
    siteorigin_settings_add_teaser('slider', 'post_orderby', __('Posts Order', 'focus'), array('description' => __('The order in which to display the posts.', 'focus')));
    /**
     * Video Player
     */
    siteorigin_settings_add_field('video', 'by_text', 'text', __('Video By Text', 'focus'), array('description' => __('Change the text "video by" on single post pages.', 'focus')));
    siteorigin_settings_add_teaser('video', 'autoplay', __('Autoplay Videos', 'focus'), array('description' => __('Videos start playing as soon as the video page is loaded.', 'focus')));
    siteorigin_settings_add_teaser('video', 'hide_related', __('Hide Related Videos', 'focus'), array('description' => __('Hides related videos after a YouTube or Vimeo Plus video finishes.', 'focus')));
    siteorigin_settings_add_teaser('video', 'default_hd', __('Play Videos in HD', 'focus'), array('description' => __("Unfortunately setting video quality has been depreciated by YouTube. You can set HD video settings on Vimeo itself.", 'focus')));
    siteorigin_settings_add_teaser('video', 'play_button', __('Play Button', 'focus'), array('description' => __('Add a custom play button to self hosted video.', 'focus')));
    siteorigin_settings_add_teaser('video', 'premium_access', __('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')));
    /**
     * Page Layout
     */
    siteorigin_settings_add_teaser('layout', 'responsive', __('Responsive Layout', 'focus'), array('description' => __('Make your site responsive.', 'focus')));
    /**
     * Site Text
     */
    siteorigin_settings_add_field('text', 'no_results', 'text', __('No Search Results', 'focus'), array('description' => __('Text displayed on your no search results pages.', 'focus')));
    siteorigin_settings_add_field('text', 'not_found', 'text', __('Page Not Found', 'focus'), array('description' => __('Text displayed on your 404 pages.', 'focus')));
    siteorigin_settings_add_field('text', 'footer_copyright', 'text', __('Footer Copyright', 'focus'), array('description' => __('Text in your site footer.', 'focus')));
    siteorigin_settings_add_field('text', 'latest_posts', 'text', __('Latest Posts Headline', 'focus'));
    /**
     * Main Menu
     */
    siteorigin_settings_add_field('menu', 'home', 'checkbox', __('Home Link', 'focus'), array('description' => __('Add a home link to your menu bar.', 'focus')));
    siteorigin_settings_add_teaser('menu', 'search', __('Search', 'focus'), array('description' => __('Adds a small search box in your menu bar.', 'focus'), 'teaser-image' => get_template_directory_uri() . '/upgrade/features/search-bar.jpg'));
    /**
     * Footer CTA
     */
    siteorigin_settings_add_field('cta', 'text', 'text', __('CTA Text', 'focus'));
    siteorigin_settings_add_field('cta', 'button_text', 'text', __('CTA Button Text', 'focus'));
    siteorigin_settings_add_field('cta', 'button_url', 'text', __('CTA Button URL', 'focus'));
    siteorigin_settings_add_teaser('cta', 'hide', __('Hide CTA', 'focus'), array('description' => __('Comma separated list of capabilities from which to hide the CTA.', 'focus')));
    /**
     * Comments
     */
    siteorigin_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')));
    siteorigin_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')));
}
Exemplo n.º 10
0
/**
 * Add the order number setting.
 *
 * @action admin_init
 */
function siteorigin_theme_update_settings()
{
    siteorigin_settings_add_section('premium', __('Premium', 'ultra'));
    siteorigin_settings_add_field('premium', 'order_number', 'text', __('Order Number', 'ultra'), array('description' => __('Enter the Ultra Premium order number sent to you via email.', 'ultra')));
}