Exemple #1
0
function vce_load_styles()
{
    //Load fonts
    $fonts = vce_generate_font_links();
    if (!empty($fonts)) {
        foreach ($fonts as $k => $font) {
            wp_register_style('vce_font_' . $k, $font, false, THEME_VERSION, 'screen');
            wp_enqueue_style('vce_font_' . $k);
        }
    }
    //Load main css file
    wp_register_style('vce_style', THEME_URI . 'style.css', false, THEME_VERSION, 'screen, print');
    wp_enqueue_style('vce_style');
    //WooCommerce style
    if (vce_is_woocommerce_active()) {
        wp_register_style('vce-woocommerce', CSS_URI . '/vce-woocommerce.css', array('vce_style'), THEME_VERSION, 'screen, print');
        wp_enqueue_style('vce-woocommerce');
    }
    //bbPress style
    if (vce_is_bbpress_active()) {
        wp_register_style('vce-bbpress', CSS_URI . '/vce-bbpress.css', array('vce_style'), THEME_VERSION, 'screen, print');
        wp_enqueue_style('vce-bbpress');
    }
    //Enqueue font awsm icons if css is not already included via plugin
    if (!wp_style_is('mks_shortcodes_fntawsm_css', 'enqueued')) {
        wp_register_style('vce_font_awesome', CSS_URI . '/font-awesome.min.css', false, THEME_VERSION, 'screen');
        wp_enqueue_style('vce_font_awesome');
    }
    //Load responsive css
    if (vce_get_option('responsive_mode')) {
        wp_register_style('vce_responsive', CSS_URI . '/responsive.css', array('vce_style'), THEME_VERSION, 'screen');
        wp_enqueue_style('vce_responsive');
    }
    //Load RTL css
    if (vce_get_option('rtl_mode')) {
        global $vce_rtl;
        $vce_rtl = true;
        //Check if current language is excluded from RTL
        $rtl_lang_skip = explode(",", vce_get_option('rtl_lang_skip'));
        if (!empty($rtl_lang_skip)) {
            $locale = get_locale();
            if (in_array($locale, $rtl_lang_skip)) {
                $vce_rtl = false;
            }
        }
        if ($vce_rtl) {
            wp_register_style('vce_rtl', CSS_URI . '/rtl.css', array('vce_style', 'vce_responsive'), THEME_VERSION, 'screen');
            wp_enqueue_style('vce_rtl');
        }
    }
    //Append dynamic css
    $vce_dynamic_css = vce_generate_dynamic_css();
    wp_add_inline_style('vce_style', $vce_dynamic_css);
}
Exemple #2
0
Redux::setSection($opt_name, array('icon' => ' el-icon-tag', 'title' => __('Tag Templates', THEME_SLUG), 'desc' => __('Manage settings for tag templates', THEME_SLUG), 'fields' => array(array('id' => 'tag_layout', 'type' => 'image_select', 'title' => __('Tag archives layout', THEME_SLUG), 'subtitle' => __('Choose how to display your posts on tag template', THEME_SLUG), 'options' => vce_get_main_layouts(), 'default' => 'd'), array('id' => 'tag_use_sidebar', 'type' => 'image_select', 'title' => __('Sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for tag template', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'tag_sidebar', 'type' => 'select', 'title' => __('Tag standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for tag template', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('tag_use_sidebar', '!=', 'none')), array('id' => 'tag_sticky_sidebar', 'type' => 'select', 'title' => __('Tag sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for tag template', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('tag_use_sidebar', '!=', 'none')), array('id' => 'tag_pagination', 'type' => 'image_select', 'title' => __('Tag pagination', THEME_SLUG), 'subtitle' => __('Choose which pagination to use on tag template', THEME_SLUG), 'options' => vce_get_pagination_layouts(), 'default' => 'load-more'), array('id' => 'tag_ppp', 'type' => 'radio', 'title' => __('Posts per page', THEME_SLUG), 'subtitle' => __('Choose how many posts per page you want to display', THEME_SLUG), 'options' => array('inherit' => sprintf(__('Inherit from global option in <a href="%s">Settings->Reading</a>', THEME_SLUG), admin_url('options-general.php')), 'custom' => __('Custom number', THEME_SLUG)), 'default' => 'inherit'), array('id' => 'tag_ppp_num', 'type' => 'text', 'class' => 'small-text', 'title' => __('Number of post per page', THEME_SLUG), 'default' => get_option('posts_per_page'), 'required' => array('tag_ppp', '=', 'custom'), 'validate' => 'numeric'))));
/* Author */
Redux::setSection($opt_name, array('icon' => 'el-icon-user', 'title' => __('Author Templates', THEME_SLUG), 'desc' => __('Manage settings for author templates', THEME_SLUG), 'fields' => array(array('id' => 'author_layout', 'type' => 'image_select', 'title' => __('Author archives layout', THEME_SLUG), 'subtitle' => __('Choose how to display your posts on author template', THEME_SLUG), 'options' => vce_get_main_layouts(), 'default' => 'c'), array('id' => 'author_use_sidebar', 'type' => 'image_select', 'title' => __('Sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for author template', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'author_sidebar', 'type' => 'select', 'title' => __('Author standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for author template', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('author_use_sidebar', '!=', 'none')), array('id' => 'author_sticky_sidebar', 'type' => 'select', 'title' => __('Author sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for author template', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('author_use_sidebar', '!=', 'none')), array('id' => 'author_pagination', 'type' => 'image_select', 'title' => __('Author pagination', THEME_SLUG), 'subtitle' => __('Choose which pagination to use on author template', THEME_SLUG), 'options' => vce_get_pagination_layouts(), 'default' => 'load-more'), array('id' => 'author_ppp', 'type' => 'radio', 'title' => __('Posts per page', THEME_SLUG), 'subtitle' => __('Choose how many posts per page you want to display', THEME_SLUG), 'options' => array('inherit' => sprintf(__('Inherit from global option in <a href="%s">Settings->Reading</a>', THEME_SLUG), admin_url('options-general.php')), 'custom' => __('Custom number', THEME_SLUG)), 'default' => 'inherit'), array('id' => 'author_ppp_num', 'type' => 'text', 'class' => 'small-text', 'title' => __('Number of post per page', THEME_SLUG), 'default' => get_option('posts_per_page'), 'required' => array('author_ppp', '=', 'custom'), 'validate' => 'numeric'))));
/* Search */
Redux::setSection($opt_name, array('icon' => 'el-icon-search', 'title' => __('Search Template', THEME_SLUG), 'desc' => __('Manage settings for search results template', THEME_SLUG), 'fields' => array(array('id' => 'search_layout', 'type' => 'image_select', 'title' => __('Search archives layout', THEME_SLUG), 'subtitle' => __('Choose how to display your posts on search template', THEME_SLUG), 'options' => vce_get_main_layouts(), 'default' => 'd'), array('id' => 'search_use_sidebar', 'type' => 'image_select', 'title' => __('Sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for search template', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'search_sidebar', 'type' => 'select', 'title' => __('Search standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for search template', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('search_use_sidebar', '!=', 'none')), array('id' => 'search_sticky_sidebar', 'type' => 'select', 'title' => __('Search sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for search template', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('search_use_sidebar', '!=', 'none')), array('id' => 'search_pagination', 'type' => 'image_select', 'title' => __('Search pagination', THEME_SLUG), 'subtitle' => __('Choose which pagination to use on search template', THEME_SLUG), 'options' => vce_get_pagination_layouts(), 'default' => 'load-more'), array('id' => 'search_ppp', 'type' => 'radio', 'title' => __('Posts per page', THEME_SLUG), 'subtitle' => __('Choose how many posts per page you want to display', THEME_SLUG), 'options' => array('inherit' => sprintf(__('Inherit from global option in <a href="%s">Settings->Reading</a>', THEME_SLUG), admin_url('options-general.php')), 'custom' => __('Custom number', THEME_SLUG)), 'default' => 'inherit'), array('id' => 'search_ppp_num', 'type' => 'text', 'class' => 'small-text', 'title' => __('Number of post per page', THEME_SLUG), 'default' => get_option('posts_per_page'), 'required' => array('search_ppp', '=', 'custom'), 'validate' => 'numeric'))));
/* Posts page archive */
Redux::setSection($opt_name, array('icon' => 'el-icon-folder-open', 'title' => __('Posts Page Archive', THEME_SLUG), 'desc' => sprintf(__('Manage settings for posts page archive if you are using "posts page" option in <a href="%s">Settings-> Reading</a>', THEME_SLUG), admin_url('options-reading.php')), 'fields' => array(array('id' => 'posts_page_layout', 'type' => 'image_select', 'title' => __('Posts page archives layout', THEME_SLUG), 'subtitle' => __('Choose how to display your posts on posts page template', THEME_SLUG), 'options' => vce_get_main_layouts(), 'default' => 'b'), array('id' => 'posts_page_pagination', 'type' => 'image_select', 'title' => __('Posts page pagination', THEME_SLUG), 'subtitle' => __('Choose which pagination to use on posts page template', THEME_SLUG), 'options' => vce_get_pagination_layouts(), 'default' => 'load-more'), array('id' => 'posts_page_ppp', 'type' => 'radio', 'title' => __('Posts per page', THEME_SLUG), 'subtitle' => __('Choose how many posts per page you want to display', THEME_SLUG), 'options' => array('inherit' => sprintf(__('Inherit from global option in <a href="%s">Settings->Reading</a>', THEME_SLUG), admin_url('options-general.php')), 'custom' => __('Custom number', THEME_SLUG)), 'default' => 'inherit'), array('id' => 'posts_page_ppp_num', 'type' => 'text', 'class' => 'small-text', 'title' => __('Number of post per page', THEME_SLUG), 'default' => get_option('posts_per_page'), 'required' => array('posts_page_ppp', '=', 'custom'), 'validate' => 'numeric'))));
/* Archives */
Redux::setSection($opt_name, array('icon' => 'el-icon-folder-open', 'title' => __('Archive Templates', THEME_SLUG), 'desc' => __('Manage settings for other miscellaneous templates like date archives, post format archives, etc...', THEME_SLUG), 'fields' => array(array('id' => 'archive_layout', 'type' => 'image_select', 'title' => __('Archives layout', THEME_SLUG), 'subtitle' => __('Choose how to display your posts on miscellaneous archive templates', THEME_SLUG), 'options' => vce_get_main_layouts(), 'default' => 'b'), array('id' => 'archive_use_sidebar', 'type' => 'image_select', 'title' => __('Sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for archive templates', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'archive_sidebar', 'type' => 'select', 'title' => __('Archive standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for archive templates', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('archive_use_sidebar', '!=', 'none')), array('id' => 'archive_sticky_sidebar', 'type' => 'select', 'title' => __('Archive sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for archive templates', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('archive_use_sidebar', '!=', 'none')), array('id' => 'archive_pagination', 'type' => 'image_select', 'title' => __('Archive pagination', THEME_SLUG), 'subtitle' => __('Choose which pagination to use on archive templates', THEME_SLUG), 'options' => vce_get_pagination_layouts(), 'default' => 'load-more'), array('id' => 'archive_ppp', 'type' => 'radio', 'title' => __('Posts per page', THEME_SLUG), 'subtitle' => __('Choose how many posts per page you want to display', THEME_SLUG), 'options' => array('inherit' => sprintf(__('Inherit from global option in <a href="%s">Settings->Reading</a>', THEME_SLUG), admin_url('options-general.php')), 'custom' => __('Custom number', THEME_SLUG)), 'default' => 'inherit'), array('id' => 'archive_ppp_num', 'type' => 'text', 'class' => 'small-text', 'title' => __('Number of post per page', THEME_SLUG), 'default' => get_option('posts_per_page'), 'required' => array('archive_ppp', '=', 'custom'), 'validate' => 'numeric'))));
/* Typography */
Redux::setSection($opt_name, array('icon' => 'el-icon-font', 'title' => __('Typography', THEME_SLUG), 'desc' => __('Manage fonts and typography settings', THEME_SLUG), 'fields' => array(array('id' => 'main_font', 'type' => 'typography', 'title' => __('Main text font', THEME_SLUG), 'google' => true, 'font-backup' => false, 'font-size' => false, 'color' => false, 'line-height' => false, 'text-align' => false, 'units' => 'px', 'subtitle' => __('This is you main font for standard text', THEME_SLUG), 'default' => array('google' => true, 'font-weight' => '400', 'font-family' => 'Open Sans', 'subsets' => 'latin-ext'), 'preview' => array('always_display' => true, 'font-size' => '16px', 'line-height' => '26px', 'text' => 'This is a font used for your main content on the website. Here in MeksHQ, we think that readability is very important part of any WordPress theme. This is actually a rough example of how simple paragraph of text will look like on your website so you have a simple preview here.')), array('id' => 'h_font', 'type' => 'typography', 'title' => __('Headings font', THEME_SLUG), 'google' => true, 'font-backup' => false, 'font-size' => false, 'color' => false, 'line-height' => false, 'text-align' => false, 'units' => 'px', 'subtitle' => __('This font is used for headings, titles, h-elements...', THEME_SLUG), 'default' => array('google' => true, 'font-weight' => '400', 'font-family' => 'Roboto Slab', 'subsets' => 'latin-ext'), 'preview' => array('always_display' => true, 'font-size' => '24px', 'line-height' => '30px', 'text' => 'There is no good blog without great readability')), array('id' => 'nav_font', 'type' => 'typography', 'title' => __('Navigation font', THEME_SLUG), 'google' => true, 'font-backup' => false, 'font-size' => false, 'color' => false, 'line-height' => false, 'text-align' => false, 'units' => 'px', 'subtitle' => __('This font is used for main website navigation', THEME_SLUG), 'default' => array('font-weight' => '400', 'font-family' => 'Roboto Slab', 'subsets' => 'latin-ext'), 'preview' => array('always_display' => true, 'font-size' => '16px', 'text' => 'Home &nbsp;&nbsp;About &nbsp;&nbsp;Blog &nbsp;&nbsp;Contact')), array('id' => 'text_upper', 'type' => 'checkbox', 'multi' => true, 'title' => __('Uppercase text', THEME_SLUG), 'subtitle' => __('Check if you want to show CAPITAL LETTERS for specific elements', THEME_SLUG), 'options' => array('site-title a' => __('Site title', THEME_SLUG), 'site-description' => __('Site description', THEME_SLUG), 'nav-menu li a' => __('Main navigation', THEME_SLUG), 'entry-title' => __('Post/Page titles', THEME_SLUG), 'main-box-title' => __('Box (module, archive, category, tag, etc...) titles', THEME_SLUG), 'sidebar .widget-title' => __('Widget titles', THEME_SLUG), 'site-footer .widget-title' => __('Footer widget titles', THEME_SLUG), 'vce-featured-link-article' => __('Featured area titles', THEME_SLUG)), 'default' => array('site-title a' => 0, 'site-description' => 0, 'nav-menu li a' => 0, 'entry-title' => 0, 'main-box-title' => 0, 'sidebar .widget-title' => 0, 'site-footer .widget-title' => 0, 'vce-featured-link-article' => 0)))));
/* Misc */
Redux::setSection($opt_name, array('icon' => 'el-icon-wrench', 'title' => __('Miscellaneous', THEME_SLUG), 'desc' => __('These are some miscellaneous settings for the website', THEME_SLUG), 'fields' => array(array('id' => 'more_string', 'type' => 'text', 'class' => 'small-text', 'title' => __('More string', THEME_SLUG), 'subtitle' => __('Specify your "more" string to append after limited post titles and excerpts across the theme', THEME_SLUG), 'default' => '...', 'validate' => 'no_html'), array('id' => 'time_ago', 'type' => 'switch', 'title' => __('Display "time ago" format', THEME_SLUG), 'subtitle' => __('Display post dates in "time ago" manner, like Twitter and Facebook (i.e 5 hours ago, 3 days ago, 2 weeks ago, 4 months ago, etc...)', THEME_SLUG), 'desc' => sprintf(__('Note: If you disable this option, you can choose your preferred date format in <a href="%s">Settings -> General</a>', THEME_SLUG), admin_url('options-general.php')), 'default' => true), array('id' => 'time_ago_limit', 'type' => 'radio', 'title' => __('Apply "time ago" to posts which are not older than', THEME_SLUG), 'options' => array('hour' => __('1 Hour', THEME_SLUG), 'day' => __('1 Day', THEME_SLUG), 'week' => __('1 Week', THEME_SLUG), 'month' => __('1 Month', THEME_SLUG), 'three_months' => __('3 Months', THEME_SLUG), 'six_months' => __('6 Months', THEME_SLUG), 'year' => __('1 Year', THEME_SLUG), '0' => __('Apply to all posts', THEME_SLUG)), 'default' => '0', 'required' => array('time_ago', '=', true)), array('id' => 'ago_before', 'type' => 'checkbox', 'title' => __('Display "ago" word before date/time', THEME_SLUG), 'subtitle' => __('By default, "ago" word goes after date/time string but in some languages different than English it is more proper to display it before.', THEME_SLUG), 'desc' => __('Example: "Publie depuis 3 heures"', THEME_SLUG), 'default' => false, 'required' => array('time_ago', '=', true)), array('id' => 'views_forgery', 'type' => 'text', 'class' => 'small-text', 'title' => __('Post views forgery', THEME_SLUG), 'subtitle' => __('Specify value to add to real number of entry views for each post', THEME_SLUG), 'desc' => __('i.e. If post has 45 views and you put 100, your post will display 145 views', THEME_SLUG), 'default' => '', 'validate' => 'numeric'), array('id' => 'scroll_to_top', 'type' => 'switch', 'title' => __('Display scroll to top button', THEME_SLUG), 'subtitle' => __('Check if you want to display scroll to top button', THEME_SLUG), 'default' => true), array('id' => 'scroll_to_top_color', 'type' => 'color', 'title' => __('Scroll to top button color', THEME_SLUG), 'subtitle' => __('Choose color for scroll to top button', THEME_SLUG), 'transparent' => false, 'default' => '#323232', 'required' => array('scroll_to_top', '=', true)), array('id' => 'use_gallery', 'type' => 'switch', 'title' => __('Use Voice gallery style', THEME_SLUG), 'subtitle' => __('Check if you want to use our built in gallery style or disable if you want to use default WordPress gallery or some other gallery plugin', THEME_SLUG), 'default' => true), array('id' => 'img_zoom', 'type' => 'switch', 'title' => __('Enable zoom effect on featured images', THEME_SLUG), 'subtitle' => __('Check if you want to enable zoom effect on featured image mouse-over', THEME_SLUG), 'default' => true), array('id' => '404_img', 'type' => 'media', 'url' => true, 'title' => __('404 template image', THEME_SLUG), 'subtitle' => __('Upload image for 404 template (optional)', THEME_SLUG), 'desc' => __('Supported formats: .jpg and .png', THEME_SLUG), 'default' => array('url' => '')), array('id' => 'multibyte_excerpts', 'type' => 'switch', 'title' => __('Enable support for "multibyte" text excerpts', THEME_SLUG), 'subtitle' => __('Use this option for some specific languages that have special characters i.e. Japanese', THEME_SLUG), 'default' => false))));
/* WooCommerce */
if (vce_is_woocommerce_active()) {
    Redux::setSection($opt_name, array('icon' => 'el-icon-cogs', 'title' => __('WooCommerce', THEME_SLUG), 'desc' => __('Manage options for WooCommerce pages', THEME_SLUG), 'fields' => array(array('id' => 'product_use_sidebar', 'type' => 'image_select', 'title' => __('Product sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for WooCommerce products', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'product_sidebar', 'type' => 'select', 'title' => __('Product standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for WooCommerce products', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('product_use_sidebar', '!=', 'none')), array('id' => 'product_sticky_sidebar', 'type' => 'select', 'title' => __('Product sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for WooCommerce products', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('product_use_sidebar', '!=', 'none')), array('id' => 'product_cat_use_sidebar', 'type' => 'image_select', 'title' => __('Product category sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for WooCommerce product category', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'product_cat_sidebar', 'type' => 'select', 'title' => __('Product category standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for WooCommerce product category', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('product_cat_use_sidebar', '!=', 'none')), array('id' => 'product_cat_sticky_sidebar', 'type' => 'select', 'title' => __('Product category sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for WooCommerce product category', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('product_cat_use_sidebar', '!=', 'none')))));
}
/* bbPress */
if (vce_is_bbpress_active()) {
    Redux::setSection($opt_name, array('icon' => 'el-icon-cogs', 'title' => __('bbPress', THEME_SLUG), 'desc' => __('Manage options for bbPress pages', THEME_SLUG), 'fields' => array(array('id' => 'forum_use_sidebar', 'type' => 'image_select', 'title' => __('Forum sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for bbPress forums', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'forum_sidebar', 'type' => 'select', 'title' => __('Forum standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for bbPress forums', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('forum_use_sidebar', '!=', 'none')), array('id' => 'forum_sticky_sidebar', 'type' => 'select', 'title' => __('Forum sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for bbPress forums', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('forum_use_sidebar', '!=', 'none')), array('id' => 'topic_use_sidebar', 'type' => 'image_select', 'title' => __('Topic sidebar layout', THEME_SLUG), 'subtitle' => __('Choose sidebar layout for bbPress topics', THEME_SLUG), 'options' => vce_get_sidebar_layouts(), 'default' => 'right'), array('id' => 'topic_sidebar', 'type' => 'select', 'title' => __('Topic standard sidebar', THEME_SLUG), 'subtitle' => __('Choose standard sidebar for bbPress topics', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sidebar', 'required' => array('topic_use_sidebar', '!=', 'none')), array('id' => 'topic_sticky_sidebar', 'type' => 'select', 'title' => __('Topic sticky sidebar', THEME_SLUG), 'subtitle' => __('Choose sticky sidebar for bbPress topics', THEME_SLUG), 'options' => vce_get_sidebars_list(), 'default' => 'vce_default_sticky_sidebar', 'required' => array('topic_use_sidebar', '!=', 'none')))));
}
Redux::setSection($opt_name, array('type' => 'divide', 'id' => 'vce-divide'));
/* Translation Options */
$translate_options[] = array('id' => 'enable_translate', 'type' => 'switch', 'switch' => true, 'title' => __('Enable theme translation?', THEME_SLUG), 'default' => '1');
$translate_strings = vce_get_translate_options();
foreach ($translate_strings as $string_key => $string) {
    $translate_options[] = array('id' => 'tr_' . $string_key, 'type' => 'text', 'title' => esc_html($string['option_title']), 'subtitle' => isset($string['option_desc']) ? $string['option_desc'] : '', 'default' => '');
}
Redux::setSection($opt_name, array('icon' => 'el-icon-globe-alt', 'title' => __('Translation', THEME_SLUG), 'desc' => __('Use these settings to quckly translate or change text inside this theme. If you want to remove the text completely instead of modifying it, you can use <strong>"-1"</strong> as a value for particular field translation. <br/><br/><strong>Note:</strong> If you are using this theme for multilingual website, you need to disable these options and use multilanguage plugins (such as WPML) or manual translation via .po and .mo files located inside "wp-content/themes/voice/languages" folder.', THEME_SLUG), 'fields' => $translate_options));
/* Updater Options */
Redux::setSection($opt_name, array('icon' => 'el-icon-time', 'title' => __('Updater', THEME_SLUG), 'desc' => sprintf(__('Specify your ThemeForest username and API Key in order to enable quick Voice theme updates. Whenever we release new Voice update it will appear on your <a href="%s">updates screen</a>.', THEME_SLUG), admin_url('update-core.php')), 'fields' => array(array('id' => 'theme_update_username', 'type' => 'text', 'title' => __('Your ThemeForest Username', THEME_SLUG), 'default' => ''), array('id' => 'theme_update_apikey', 'type' => 'text', 'title' => __('Your ThemeForest API Key', THEME_SLUG), 'desc' => __('Where can I find my <a href="http://themeforest.net/help/api" target="_blank">API key</a>?', THEME_SLUG), 'default' => ''))));