📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 10:29:21
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
inc
/
theme-options
✏️
Editing: theme-options.php
<?php if (!class_exists('ReduxFramework')) { return; } if (class_exists('ReduxFrameworkPlugin')) { remove_action('admin_notices', array(ReduxFrameworkPlugin::instance(), 'admin_notices')); } $opt_name = berich()->get_option_name(); $version = berich()->get_version(); $args = array( // TYPICAL -> Change these values as you need/desire 'opt_name' => $opt_name, // This is where your data is stored in the database and also becomes your global variable name. 'display_name' => '', //$theme->get('Name'), // Name that appears at the top of your panel 'display_version' => $version, // Version that appears at the top of your panel 'menu_type' => 'submenu', //class_exists('Pxltheme_Core') ? 'submenu' : '', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only) 'allow_sub_menu' => true, // Show the sections below the admin menu item or not 'menu_title' => esc_html__('Theme Options', 'berich'), 'page_title' => esc_html__('Theme Options', 'berich'), // You will need to generate a Google API key to use this feature. // Please visit: https://developers.google.com/fonts/docs/developer_api#Auth 'google_api_key' => '', // Set it you want google fonts to update weekly. A google_api_key value is required. 'google_update_weekly' => false, // Must be defined to add google fonts to the typography module 'async_typography' => false, // Use a asynchronous font on the front end or font string //'disable_google_fonts_link' => true, // Disable this in case you want to create your own google fonts loader 'admin_bar' => false, // Show the panel pages on the admin bar 'admin_bar_icon' => 'dashicons-admin-generic', // Choose an icon for the admin bar menu 'admin_bar_priority' => 50, // Choose an priority for the admin bar menu 'global_variable' => '', // Set a different name for your global variable other than the opt_name 'dev_mode' => true, // Show the time the page took to load, etc 'update_notice' => true, // If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo 'customizer' => true, // Enable basic customizer support //'open_expanded' => true, // Allow you to start the panel in an expanded way initially. //'disable_save_warn' => true, // Disable the save warning when a user changes a field 'show_options_object' => false, // OPTIONAL -> Give you extra features 'page_priority' => 80, // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning. 'page_parent' => 'pxlart', //class_exists('Berich_Admin_Page') ? 'case' : '', // For a full list of options, visit: //codex.wordpress.org/Function_Reference/add_submenu_page#Parameters 'page_permissions' => 'manage_options', // Permissions needed to access the options panel. 'menu_icon' => '', // Specify a custom URL to an icon 'last_tab' => '', // Force your panel to always open to a specific tab (by id) 'page_icon' => 'icon-themes', // Icon displayed in the admin panel next to your menu_title 'page_slug' => 'pxlart-theme-options', // Page slug used to denote the panel, will be based off page title then menu title then opt_name if not provided 'save_defaults' => true, // On load save the defaults to DB before user clicks save or not 'default_show' => false, // If true, shows the default value next to each field that is not the default value. 'default_mark' => '', // What to print by the field's title if the value shown is default. Suggested: * 'show_import_export' => true, // Shows the Import/Export panel when not used as a field. // CAREFUL -> These options are for advanced use only 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => true, // Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output 'output_tag' => true, // Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head // 'footer_credit' => '', // Disable the footer credit of Redux. Please leave if you can help it. // FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk. 'database' => '', // possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning! 'use_cdn' => true, // If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code. // HINTS 'hints' => array( 'icon' => 'el el-question-sign', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'red', 'shadow' => true, 'rounded' => false, 'style' => '', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'click mouseleave', ), ), ), ); Redux::SetArgs($opt_name, $args); /*-------------------------------------------------------------- # General --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('General', 'berich'), 'icon' => 'el-icon-home', 'fields' => array( ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Colors', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array( array( 'id' => 'primary_color', 'type' => 'color', 'title' => esc_html__('Primary Color', 'berich'), 'transparent' => false, 'default' => '' ), array( 'id' => 'secondary_color', 'type' => 'color', 'title' => esc_html__('Secondary Color', 'berich'), 'transparent' => false, 'default' => '' ), array( 'id' => 'third_color', 'type' => 'color', 'title' => esc_html__('Third Color', 'berich'), 'transparent' => false, 'default' => '' ), array( 'id' => 'dark_color', 'type' => 'color', 'title' => esc_html__('Dark Color', 'berich'), 'transparent' => false, 'default' => '' ), array( 'id' => 'link_color', 'type' => 'link_color', 'title' => esc_html__('Link Colors', 'berich'), 'default' => array( 'regular' => '', 'hover' => '', 'active' => '' ), 'output' => array('a') ), array( 'id' => 'gradient_color', 'type' => 'color_gradient', 'title' => esc_html__('Gradient Color', 'berich'), 'transparent' => false, 'default' => array( 'from' => '', 'to' => '', ), ), array( 'id' => 'body_text_color', 'type' => 'color', 'title' => esc_html__('Body Color', 'berich'), 'default' => '', 'output' => array('body'), 'transparent' => false, 'required' => array( 0 => 'pxl_body_typography', 1 => '!=', 2 => 'google-font' ), ), array( 'id' => 'heading_text_color', 'type' => 'color', 'title' => esc_html__('Heading Color', 'berich'), 'default' => '', 'output' => array('h1,h2,h3,h4,h5,h6'), 'transparent' => false, 'required' => array( 0 => 'pxl_heading_typography', 1 => '!=', 2 => 'google-font' ), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Favicon', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array( array( 'id' => 'favicon', 'type' => 'media', 'title' => esc_html__('Favicon', 'berich'), 'default' => '', 'url' => false ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Mouse', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array( array( 'id' => 'mouse_move_animation', 'type' => 'switch', 'title' => esc_html__('Mouse Move Animation', 'berich'), 'default' => false ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Loader', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array( array( 'id' => 'site_loader', 'type' => 'switch', 'title' => esc_html__('Loader', 'berich'), 'default' => false ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Cookie Policy', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array( array( 'id' => 'cookie_policy', 'type' => 'button_set', 'title' => esc_html__('Cookie Policy', 'berich'), 'options' => array( 'show' => esc_html__('Show', 'berich'), 'hide' => esc_html__('Hide', 'berich'), ), 'default' => 'hide', ), array( 'id' => 'cookie_policy_description', 'type' => 'text', 'title' => esc_html__('Description', 'berich'), 'default' => '', 'required' => array( 0 => 'cookie_policy', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'cookie_policy_description_typo', 'type' => 'typography', 'title' => esc_html__('Description Font', 'berich'), 'google' => true, 'font-backup' => false, 'all_styles' => true, 'line-height' => true, 'font-size' => true, 'text-align' => false, 'color' => false, 'output' => array('.pxl-cookie-policy .pxl-item--description'), 'units' => 'px', 'required' => array( 0 => 'cookie_policy', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'cookie_policy_btntext', 'type' => 'text', 'title' => esc_html__('Button Text', 'berich'), 'default' => '', 'required' => array( 0 => 'cookie_policy', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'cookie_policy_link', 'type' => 'select', 'title' => esc_html__( 'Button Link', 'berich' ), 'data' => 'page', 'args' => array( 'post_type' => 'page', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', ), 'required' => array( 0 => 'cookie_policy', 1 => 'equals', 2 => 'show' ), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Subscribe', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array( array( 'id' => 'subscribe', 'type' => 'button_set', 'title' => esc_html__('Subscribe', 'berich'), 'options' => array( 'show' => esc_html__('Show', 'berich'), 'hide' => esc_html__('Hide', 'berich'), ), 'default' => 'hide', ), array( 'id' => 'subscribe_layout', 'type' => 'select', 'title' => esc_html__('Layout', 'berich'), 'desc' => sprintf(esc_html__('Please create your layout before choosing. %sClick Here%s','berich'),'<a href="' . esc_url( admin_url( 'edit.php?post_type=pxl-template' ) ) . '">','</a>'), 'options' => berich_get_templates_option('popup'), 'required' => array( 0 => 'subscribe', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'popup_effect', 'type' => 'select', 'title' => esc_html__('Popup Effect', 'berich'), 'options' => [ 'fade' => esc_html__('Fade', 'berich'), 'fade-slide' => esc_html__('Fade Slide', 'berich'), 'zoom' => esc_html__('Zoom', 'berich'), ], 'default' => 'fade', 'required' => array( 0 => 'subscribe', 1 => 'equals', 2 => 'show' ), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Smooth Scroll', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array( array( 'id' => 'smooth_scroll', 'type' => 'button_set', 'title' => esc_html__('Smooth Scroll', 'berich'), 'options' => array( 'on' => esc_html__('On', 'berich'), 'off' => esc_html__('Off', 'berich'), ), 'default' => 'off', ), ) )); /*-------------------------------------------------------------- # Header --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Header', 'berich'), 'icon' => 'el el-indent-left', 'fields' => array_merge( berich_header_opts(), array( array( 'id' => 'sticky_scroll', 'type' => 'button_set', 'title' => esc_html__('Sticky Scroll', 'berich'), 'options' => array( 'pxl-sticky-stt' => esc_html__('Scroll To Top', 'berich'), 'pxl-sticky-stb' => esc_html__('Scroll To Bottom', 'berich'), ), 'default' => 'pxl-sticky-stb', ), ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Mobile', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array_merge( berich_header_mobile_opts(), array( array( 'id' => 'mobile_display', 'type' => 'button_set', 'title' => esc_html__('Display', 'berich'), 'options' => array( 'show' => esc_html__('Show', 'berich'), 'hide' => esc_html__('Hide', 'berich'), ), 'default' => 'show' ), array( 'id' => 'opt_mobile_style', 'type' => 'button_set', 'title' => esc_html__('Style', 'berich'), 'options' => array( 'light' => esc_html__('Light', 'berich'), 'dark' => esc_html__('Dark', 'berich'), ), 'default' => 'light', 'required' => array( 0 => 'mobile_display', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'logo_m', 'type' => 'media', 'title' => esc_html__('Logo Dark in Menu Sidebar', 'berich'), 'default' => array( 'url'=>get_template_directory_uri().'/assets/img/logo.png' ), 'url' => false, 'required' => array( 0 => 'mobile_display', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'logo_light_m', 'type' => 'media', 'title' => esc_html__('Logo Light in Menu Sidebar', 'berich'), 'default' => array( 'url'=>get_template_directory_uri().'/assets/img/logo-light.png' ), 'url' => false, 'required' => array( 0 => 'mobile_display', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'logo_height', 'type' => 'dimensions', 'title' => esc_html__('Logo Height', 'berich'), 'width' => false, 'unit' => 'px', 'output' => array('#pxl-header-default .pxl-header-branding img, #pxl-header-default #pxl-header-mobile .pxl-header-branding img, #pxl-header-elementor #pxl-header-mobile .pxl-header-branding img, .pxl-logo-mobile img'), 'required' => array( 0 => 'mobile_display', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'search_mobile', 'type' => 'switch', 'title' => esc_html__('Search Form', 'berich'), 'default' => true, 'required' => array( 0 => 'mobile_display', 1 => 'equals', 2 => 'show' ), ), array( 'id' => 'search_placeholder_mobile', 'type' => 'text', 'title' => esc_html__('Search Text Placeholder', 'berich'), 'default' => '', 'subtitle' => esc_html__('Default: Search...', 'berich'), 'required' => array( 0 => 'search_mobile', 1 => 'equals', 2 => true ), ) ) ) )); /*-------------------------------------------------------------- # Page Title area --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Page Title', 'berich'), 'icon' => 'el-icon-map-marker', 'fields' => array_merge( berich_page_title_opts(), array( array( 'id' => 'ptitle_scroll_opacity', 'title' => esc_html__('Scroll Opacity', 'berich'), 'type' => 'switch', 'default' => false, ), ) ) )); /*-------------------------------------------------------------- # Footer --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Footer', 'berich'), 'icon' => 'el el-website', 'fields' => array_merge( berich_footer_opts(), array( array( 'id' => 'back_totop_on', 'type' => 'switch', 'title' => esc_html__('Button Back to Top', 'berich'), 'default' => false, ), array( 'id' => 'footer_fixed', 'type' => 'button_set', 'title' => esc_html__('Footer Fixed', 'berich'), 'options' => array( 'on' => esc_html__('On', 'berich'), 'off' => esc_html__('Off', 'berich'), ), 'default' => 'off', ), ) ) )); /*-------------------------------------------------------------- # WordPress default content --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Blog', 'berich'), 'icon' => 'el-icon-pencil', 'fields' => array( ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Blog Archive', 'berich'), 'icon' => 'el-icon-pencil', 'subsection' => true, 'fields' => array_merge( berich_sidebar_pos_opts([ 'prefix' => 'blog_']), array( array( 'id' => 'archive_date', 'title' => esc_html__('Date', 'berich'), 'subtitle' => esc_html__('Display the Date for each blog post.', 'berich'), 'type' => 'switch', 'default' => true, ), array( 'id' => 'archive_author', 'title' => esc_html__('Author', 'berich'), 'subtitle' => esc_html__('Display the Author for each blog post.', 'berich'), 'type' => 'switch', 'default' => true, ), array( 'id' => 'category_comment', 'title' => esc_html__('Category', 'berich'), 'subtitle' => esc_html__('Display the Category for each blog post.', 'berich'), 'type' => 'switch', 'default' => true, ), array( 'id' => 'featured_img_size', 'type' => 'text', 'title' => esc_html__('Featured Image Size', 'berich'), 'default' => '', 'subtitle' => 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Default: 370x300 (Width x Height)).', ), array( 'id' => 'archive_excerpt_length', 'type' => 'text', 'title' => esc_html__('Excerpt Length', 'berich'), 'default' => '', 'subtitle' => esc_html__('Default: 50', 'berich'), ), array( 'id' => 'archive_readmore_text', 'type' => 'text', 'title' => esc_html__('Read More Text', 'berich'), 'default' => '', 'subtitle' => esc_html__('Default: Read more', 'berich'), ), ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Single Post', 'berich'), 'icon' => 'el el-circle-arrow-right', 'subsection' => true, 'fields' => array_merge( berich_sidebar_pos_opts([ 'prefix' => 'post_']), array( array( 'id' => 'sg_post_title', 'type' => 'button_set', 'title' => esc_html__('Page Title Type', 'berich'), 'options' => array( 'default' => esc_html__('Default', 'berich'), 'custom_text' => esc_html__('Custom Text', 'berich'), ), 'default' => 'default', ), array( 'id' => 'sg_post_title_text', 'type' => 'text', 'title' => esc_html__('Page Title Text', 'berich'), 'default' => 'Blog Details', 'required' => array( 0 => 'sg_post_title', 1 => 'equals', 2 => 'custom_text' ), ), array( 'id' => 'sg_featured_img_size', 'type' => 'text', 'title' => esc_html__('Featured Image Size', 'berich'), 'default' => '', 'subtitle' => 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Default: 370x300 (Width x Height)).', ), array( 'id' => 'post_date', 'title' => esc_html__('Date', 'berich'), 'subtitle' => esc_html__('Display the Date for blog post.', 'berich'), 'type' => 'switch', 'default' => true ), array( 'id' => 'post_author', 'title' => esc_html__('Author', 'berich'), 'subtitle' => esc_html__('Display the Author for blog post.', 'berich'), 'type' => 'switch', 'default' => true ), array( 'id' => 'post_comment', 'title' => esc_html__('Comment', 'berich'), 'subtitle' => esc_html__('Display the Comment for blog post.', 'berich'), 'type' => 'switch', 'default' => true ), array( 'id' => 'post_category', 'title' => esc_html__('Category', 'berich'), 'subtitle' => esc_html__('Display the Category for blog post.', 'berich'), 'type' => 'switch', 'default' => true ), array( 'id' => 'post_tag', 'title' => esc_html__('Tags', 'berich'), 'subtitle' => esc_html__('Display the Tag for blog post.', 'berich'), 'type' => 'switch', 'default' => true ), array( 'id' => 'post_navigation', 'title' => esc_html__('Navigation', 'berich'), 'subtitle' => esc_html__('Display the Navigation for blog post.', 'berich'), 'type' => 'switch', 'default' => false, ), array( 'id' => 'post_author_info', 'title' => esc_html__('Author Info', 'berich'), 'subtitle' => esc_html__('Display the Author info for blog post.', 'berich'), 'type' => 'switch', 'default' => false, ), array( 'title' => esc_html__('Social', 'berich'), 'type' => 'section', 'id' => 'social_section', 'indent' => true, ), array( 'id' => 'post_social_share', 'title' => esc_html__('Social', 'berich'), 'subtitle' => esc_html__('Display the Social Share for blog post.', 'berich'), 'type' => 'switch', 'default' => false, ), array( 'id' => 'social_facebook', 'title' => esc_html__('Facebook', 'berich'), 'type' => 'switch', 'default' => true, 'indent' => true, 'required' => array( 0 => 'post_social_share', 1 => 'equals', 2 => '1' ), ), array( 'id' => 'social_twitter', 'title' => esc_html__('Twitter', 'berich'), 'type' => 'switch', 'default' => true, 'indent' => true, 'required' => array( 0 => 'post_social_share', 1 => 'equals', 2 => '1' ), ), array( 'id' => 'social_pinterest', 'title' => esc_html__('Pinterest', 'berich'), 'type' => 'switch', 'default' => true, 'indent' => true, 'required' => array( 0 => 'post_social_share', 1 => 'equals', 2 => '1' ), ), array( 'id' => 'social_linkedin', 'title' => esc_html__('LinkedIn', 'berich'), 'type' => 'switch', 'default' => true, 'indent' => true, 'required' => array( 0 => 'post_social_share', 1 => 'equals', 2 => '1' ), ), ) ) )); /*-------------------------------------------------------------- # Shop --------------------------------------------------------------*/ if(class_exists('Woocommerce')) { Redux::setSection($opt_name, array( 'title' => esc_html__('Shop', 'berich'), 'icon' => 'el el-shopping-cart', 'fields' => array_merge( berich_page_title_opts_product() ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Product Archive', 'berich'), 'icon' => 'el-icon-pencil', 'subsection' => true, 'fields' => array_merge( berich_sidebar_pos_opts([ 'prefix' => 'shop_']), array( array( 'id' => 'shop_featured_img_size', 'type' => 'text', 'title' => esc_html__('Featured Image Size', 'berich'), 'default' => '', 'subtitle' => 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Default: 370x300 (Width x Height)).', ), array( 'title' => esc_html__('Products displayed per row', 'berich'), 'id' => 'products_columns', 'type' => 'slider', 'subtitle' => esc_html__('Number product to show per row', 'berich'), 'default' => 3, 'min' => 2, 'step' => 1, 'max' => 5, 'display_value' => 'text', ), array( 'title' => esc_html__('Products displayed per page', 'berich'), 'id' => 'product_per_page', 'type' => 'slider', 'subtitle' => esc_html__('Number product to show', 'berich'), 'default' => 9, 'min' => 3, 'step' => 1, 'max' => 50, 'display_value' => 'text' ), ) ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Single Product', 'berich'), 'icon' => 'el-icon-pencil', 'subsection' => true, 'fields' => array_merge( array( array( 'id' => 'single_img_size', 'type' => 'dimensions', 'title' => esc_html__('Image Size', 'berich'), 'unit' => 'px', ), array( 'id' => 'sg_product_ptitle', 'type' => 'button_set', 'title' => esc_html__('Page Title Type', 'berich'), 'options' => array( 'default' => esc_html__('Default', 'berich'), 'custom_text' => esc_html__('Custom Text', 'berich'), ), 'default' => 'default', ), array( 'id' => 'sg_product_ptitle_text', 'type' => 'text', 'title' => esc_html__('Page Title Text', 'berich'), 'default' => 'Shop Details', 'required' => array( 0 => 'sg_product_ptitle', 1 => 'equals', 2 => 'custom_text' ), ), array( 'id' => 'product_title', 'type' => 'switch', 'title' => esc_html__('Product Title', 'berich'), 'default' => false ), array( 'id' => 'product_social_share', 'type' => 'switch', 'title' => esc_html__('Social Share', 'berich'), 'default' => false ), ) ) )); } /*-------------------------------------------------------------- # Typography --------------------------------------------------------------*/ Redux::setSection($opt_name, array( 'title' => esc_html__('Typography', 'berich'), 'icon' => 'el-icon-text-width', 'fields' => array( array( 'id' => 'pxl_body_typography', 'type' => 'select', 'title' => esc_html__('Body Font Type', 'berich'), 'options' => array( 'default-font' => esc_html__('Default Font', 'berich'), 'google-font' => esc_html__('Google Font', 'berich'), ), 'default' => 'default-font', ), array( 'id' => 'font_body', 'type' => 'typography', 'title' => esc_html__('Body Google Font', 'berich'), 'google' => true, 'font-backup' => false, 'all_styles' => true, 'line-height' => true, 'font-size' => true, 'text-align' => false, 'output' => array('body'), 'units' => 'px', 'required' => array( 0 => 'pxl_body_typography', 1 => 'equals', 2 => 'google-font' ), 'force_output' => true ), array( 'id' => 'pxl_heading_typography', 'type' => 'select', 'title' => esc_html__('Heading Font Type', 'berich'), 'options' => array( 'default-font' => esc_html__('Default Font', 'berich'), 'google-font' => esc_html__('Google Font', 'berich'), ), 'default' => 'default-font', ), array( 'id' => 'font_heading', 'type' => 'typography', 'title' => esc_html__('Heading Google Font', 'berich'), 'google' => true, 'font-backup' => true, 'all_styles' => true, 'text-align' => false, 'line-height' => false, 'font-size' => false, 'font-backup' => false, 'font-style' => false, 'output' => array('h1,h2,h3,h4,h5,h6,.ft-heading-default'), 'units' => 'px', 'required' => array( 0 => 'pxl_heading_typography', 1 => 'equals', 2 => 'google-font' ), 'force_output' => true ), array( 'id' => 'theme_default', 'type' => 'typography', 'title' => esc_html__('Theme Default', 'berich'), 'google' => true, 'font-backup' => false, 'all_styles' => false, 'line-height' => false, 'font-size' => false, 'color' => false, 'font-style' => false, 'font-weight' => false, 'text-align' => false, 'units' => 'px', 'required' => array( 0 => 'pxl_heading_typography', 1 => 'equals', 2 => 'google-font' ), 'force_output' => true ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__('Extra Post Type', 'berich'), 'icon' => 'el el-briefcase', 'fields' => array( array( 'title' => esc_html__('Portfolio', 'berich'), 'type' => 'section', 'id' => 'post_portfolio', 'indent' => true, ), array( 'id' => 'portfolio_display', 'type' => 'switch', 'title' => esc_html__('Portfolio', 'berich'), 'default' => true ), array( 'id' => 'sg_portfolio_title', 'type' => 'button_set', 'title' => esc_html__('Page Title Type', 'berich'), 'options' => array( 'default' => esc_html__('Default', 'berich'), 'custom_text' => esc_html__('Custom Text', 'berich'), ), 'default' => 'default', 'required' => array( 0 => 'portfolio_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), array( 'id' => 'sg_portfolio_title_text', 'type' => 'text', 'title' => esc_html__('Page Title Text', 'berich'), 'default' => 'Single Portfolio', 'required' => array( 0 => 'sg_portfolio_title', 1 => 'equals', 2 => 'custom_text' ), ), array( 'id' => 'portfolio_slug', 'type' => 'text', 'title' => esc_html__('Portfolio Slug', 'berich'), 'default' => '', 'desc' => 'Default: portfolio', 'required' => array( 0 => 'portfolio_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), array( 'id' => 'portfolio_name', 'type' => 'text', 'title' => esc_html__('Portfolio Name', 'berich'), 'default' => '', 'desc' => 'Default: Portfolio', 'required' => array( 0 => 'portfolio_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), array( 'id' => 'archive_portfolio_link', 'type' => 'select', 'title' => esc_html__( 'Custom Archive Page Link', 'berich' ), 'data' => 'page', 'args' => array( 'post_type' => 'page', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', ), 'required' => array( 0 => 'portfolio_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), array( 'title' => esc_html__('Service', 'berich'), 'type' => 'section', 'id' => 'post_service', 'indent' => true, ), array( 'id' => 'service_display', 'type' => 'switch', 'title' => esc_html__('Service', 'berich'), 'default' => true ), array( 'id' => 'sg_service_title', 'type' => 'button_set', 'title' => esc_html__('Page Title Type', 'berich'), 'options' => array( 'default' => esc_html__('Default', 'berich'), 'custom_text' => esc_html__('Custom Text', 'berich'), ), 'default' => 'default', 'required' => array( 0 => 'service_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), array( 'id' => 'sg_service_title_text', 'type' => 'text', 'title' => esc_html__('Page Title Text', 'berich'), 'default' => 'Single Service', 'required' => array( 0 => 'sg_service_title', 1 => 'equals', 2 => 'custom_text' ), ), array( 'id' => 'service_slug', 'type' => 'text', 'title' => esc_html__('Service Slug', 'berich'), 'default' => '', 'desc' => 'Default: service', 'required' => array( 0 => 'service_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), array( 'id' => 'service_name', 'type' => 'text', 'title' => esc_html__('Service Name', 'berich'), 'default' => '', 'desc' => 'Default: Services', 'required' => array( 0 => 'service_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), array( 'id' => 'archive_service_link', 'type' => 'select', 'title' => esc_html__( 'Custom Archive Page Link', 'berich' ), 'data' => 'page', 'args' => array( 'post_type' => 'page', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', ), 'required' => array( 0 => 'service_display', 1 => 'equals', 2 => 'true' ), 'force_output' => true ), ) ));
💾 Save Changes
❌ Cancel