Files
doitinpoland.com/wp-content/themes/cyber/includes/cyber-option-framework.php
2024-05-07 14:16:56 +02:00

1696 lines
65 KiB
PHP

<?php
/**
* ReduxFramework Sample Config File
* For full documentation, please visit: http://docs.reduxframework.com/
*/
if ( ! class_exists( 'Redux' ) ) {
return;
}
// This is your option name where all the Redux data is stored.
$opt_name = "cyber_opt";
/**
* ---> SET ARGUMENTS
* All the possible arguments for Redux.
* For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments
* */
$theme = wp_get_theme(); // For use with some settings. Not necessary.
$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' => $theme->get( 'Version' ),
// Version that appears at the top of your panel
'menu_type' => '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', 'cyber' ),
'page_title' => esc_html__( 'Theme Options', 'cyber' ),
// 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' => true,
// 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' => true,
// Show the panel pages on the admin bar
'admin_bar_icon' => 'dashicons-portfolio',
// 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' => false,
// Show the time the page took to load, etc
'update_notice' => false,
// If dev_mode is enabled, will notify developer of updated versions available in the GitHub Repo
'customizer' => false,
// 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
// OPTIONAL -> Give you extra features
'page_priority' => null,
// Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
'page_parent' => 'themes.php',
// For a full list of options, visit: http://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' => '',
// 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 );
/*
* ---> END ARGUMENTS
*/
/*
*
* ---> START SECTIONS
*
*/
/*
As of Redux 3.5+, there is an extensive API. This API can be used in a mix/match mode allowing for
*/
// -> START Basic Fields
Redux::setSection( $opt_name, array(
'title' => esc_html__('General', 'cyber'),
'id' => 'main_logo_id',
'desc' => esc_html__('Wellcome Our Theme Option', 'cyber'),
'customizer_width' => '400px',
'icon' => 'el-icon-cog',
) );
/*========================
cyber Typography FIELD
=========================*/
Redux::setSection( $opt_name, array(
'title' => esc_html__('Typography Area', 'cyber'),
'id' => 'cyber_tyfo_page',
'icon' => 'el-icon-picture',
'fields' => array(
/*
array(
'id' => 'cyber_body_typography',
'type' => 'typography',
'title' => esc_html__('Body Typography Style', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'output' => array('
body,p
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
array(
'id' => 'cyber_heading_all_typography',
'type' => 'typography',
'title' => esc_html__('Headibg Typography Style', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'font-style' => false,
'output' => array('
h1, h2, h3, h4, h5, h6
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
array(
'id' => 'cyber_heading_typographyh1',
'type' => 'typography',
'title' => esc_html__('Heading Typography H1', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'font-style' => false,
'output' => array('
h1
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
array(
'id' => 'cyber_heading_typographyh2',
'type' => 'typography',
'title' => esc_html__('Heading Typography H2', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'font-style' => false,
'output' => array('
h2
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
array(
'id' => 'cyber_heading_typographyh3',
'type' => 'typography',
'title' => esc_html__('Heading Typography H3', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'font-style' => false,
'output' => array('
h3
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
array(
'id' => 'cyber_heading_typographyh4',
'type' => 'typography',
'title' => esc_html__('Heading Typography H4', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'font-style' => false,
'output' => array('
h4
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
array(
'id' => 'cyber_heading_typographyh5',
'type' => 'typography',
'title' => esc_html__('Heading Typography H5', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'font-style' => false,
'output' => array('
h5
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
array(
'id' => 'cyber_heading_typographyh6',
'type' => 'typography',
'title' => esc_html__('Heading Typography H6', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'font-style' => false,
'output' => array('
h6
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
*/
),
) );
/*========================
END cyber Typography FIELD
=========================*/
//total header area
Redux::setSection( $opt_name, array(
'title' => esc_html__('Header area', 'cyber'),
'id' => 'cyber_header_area',
'desc' => esc_html__('Header options', 'cyber'),
'icon' => 'el-icon-tasks',
'fields' => array(
array(
'id' => 'cyber_header_display_none_hide',
'desc' => esc_html__('All Menu OFF/ON section', 'cyber'),
'type' => 'switch',
'title' => esc_html__('All Header Hide', 'cyber'),
'default' => false,
),
array(
'id' => 'cyber_header_top_hide',
'desc' => esc_html__('If you ON this section. It will show header top section all your single page. But If you want to only show header top in home and others page, Please goes to your page, there you can see header top OFF/ON section. Please set It', 'cyber'),
'type' => 'switch',
'title' => esc_html__('Header Top', 'cyber'),
'default' => false,
),
array(
'id' => 'cyber_box_layout',
'type' => 'select',
'title' => esc_html__('Select Header Top layout', 'cyber'),
'customizer_only' => false,
'options' => array(
'htopt_box' => esc_html__('Box Layout','cyber'),
'htopt_full' => esc_html__('Full Layout','cyber'),
),
'default' => 'htopt_box'
),
array(
'id' => 'cyber_main_box_layout',
'type' => 'select',
'title' => esc_html__('Select Header layout', 'cyber'),
'customizer_only' => false,
'options' => array(
'hmenul_box' => esc_html__('Box Layout','cyber'),
'hmenu_full' => esc_html__('Full Layout','cyber'),
),
'default' => 'hmenul_box'
),
)
));
//Header Top
Redux::setSection( $opt_name, array(
'title' => esc_html__('Header Top Style ', 'cyber'),
'id' => 'cyber_header_top',
'desc' => esc_html__('Insert header top info', 'cyber'),
'icon' => 'el el-circle-arrow-right',
'subsection' => true,
'fields' => array(
array(
'id' => 'cyber_top_right_layout',
'type' => 'select',
'title' => esc_html__('Select Your Top Header Style', 'cyber'),
'customizer_only' => false,
'options' => array(
'header_top_1' => esc_html__('Left Address Right Icon','cyber'),
'header_top_2' => esc_html__('Left Icon Right Address','cyber'),
'header_top_3' => esc_html__(' Left Opening Middle Icon Right Login','cyber'),
'header_top_4' => esc_html__('Left Address Right Icon & Search','cyber'),
),
'default' => 'header_top_1'
),
array(
'id' => 'cyber_header_top_road',
'type' => 'text',
'title' => esc_html__('Insert Company Location', 'cyber'),
'desc' => esc_html__('insert address ex:- house, road-4.', 'cyber'),
'default' => esc_html__('1st Floor New World.', 'cyber'),
),
array(
'id' => 'cyber_header_top_email',
'type' => 'text',
'title' => esc_html__('Insert Email Address', 'cyber'),
'desc' => esc_html__('Insert email address', 'cyber'),
'default' => esc_html__('example@example.com', 'cyber'),
),
array(
'id' => 'cyber_header_top_mobile',
'type' => 'text',
'title' => esc_html__('Insert Phone Number', 'cyber'),
'desc' => esc_html__('Insert phone number', 'cyber'),
'default' => esc_html__('+880 320 432 242', 'cyber'),
),
array(
'id' => 'cyber_header_top_opening',
'type' => 'text',
'title' => esc_html__('Opening Hour Text', 'cyber'),
'desc' => esc_html__('Insert text', 'cyber'),
'default' => esc_html__('Open hours: 9.00-24.00 Mon-Sat', 'cyber'),
),
array(
'id' => 'cyber_header_top_icon_color',
'type' => 'color',
'title' => esc_html__('Header Top Icon Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.top-address p span i, .top-address p a
')
),
array(
'id' => 'cyber_header_top_color',
'type' => 'color',
'title' => esc_html__('Header Top Address Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.top-address p a,
.top-right-menu ul.social-icons li a,
.top-address p span,
.top-address.menu_18 span,
.em-quearys-menu i,
.top-form-control button.top-quearys-style
')
),
array(
'id' => 'cyber_header_top_hover_color',
'type' => 'color',
'title' => esc_html__('Address Icon Hover Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.top-right-menu .social-icons li a:hover,
.top-right-menu .social-icons li a i:hover,
.top-address p a i,
.top-address p span i
')
),
array(
'id' => 'cyber_header_opening_bg_color',
'type' => 'color',
'title' => esc_html__('Opening BG Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => '.top-address.menu_18 span,.em-quearys-menu i',
'border-color' => '.em-quearys-form'
)
),
array(
'id' => 'cyber_hoeder_top_bg_color',
'type' => 'background',
'title' => esc_html__('Header Top Section BG Color', 'cyber'),
'default' => '',
'output' => array('
.cyber-header-top
'),
'default' => array(
'background-color' => '',
)
),
array(
'id' => 'cyber_header_top_section_spacing',
'type' => 'spacing',
'output' => array('.cyber-header-top'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'title' => esc_html__('Padding Option', 'cyber'),
'subtitle' => esc_html__('Allow your users to choose the spacing padding they want.', 'cyber'),
'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'cyber'),
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
)
),
),
) );
//Header social Icon
Redux::setSection( $opt_name, array(
'title' => esc_html__( ' Header Social Icon', 'cyber' ),
'id' => 'cyber_social_section',
'icon' => 'el el-circle-arrow-right',
'subsection' => true,
'fields' => array(
array(
'id' => 'cyber_social_icons',
'type' => 'sortable',
'title' => esc_html__('Insert Social Icons', 'cyber'),
'subtitle' => esc_html__('Enter social links', 'cyber'),
'mode' => 'text',
'label' => true,
'options' => array(
'facebook' => '',
'twitter' => '',
'instagram' => '',
'tumblr' => '',
'pinterest' => '',
'linkedin' => '',
'behance' => '',
'dribbble' => '',
'youtube' => '',
'vimeo' => '',
'rss' => '',
),
'default' => array(
'facebook' => esc_url('https://www.facebook.com/'),
'twitter' => esc_url('https://twitter.com/'),
'instagram' => esc_url('https://instagram.com/'),
'tumblr' => '',
'pinterest' => '',
'linkedin' => '',
'behance' => '',
'dribbble' => esc_url('https://dribbble.com/'),
'youtube' => '',
'vimeo' => '',
'rss' => '',
),
),
)
) );
//Header Logo
Redux::setSection( $opt_name, array(
'title' => esc_html__('Header Logo', 'cyber'),
'id' => 'cyber_header_logo',
'desc' => esc_html__('Header Logo', 'cyber'),
'icon' => 'el el-circle-arrow-right',
'subsection' => true,
'fields' => array(
array(
'id' => 'cyber_logo',
'type' => 'media',
'title' => esc_html__('Default Logo', 'cyber'),
'compiler' => 'true',
'mode' => false,
'desc' => esc_html__('Upload logo here.ex: - it is work in default menu.', 'cyber'),
),
array(
'id' => 'cyber_onepage_logo',
'type' => 'media',
'title' => esc_html__('One Page Menu Logo', 'cyber'),
'compiler' => 'true',
'mode' => false,
'desc' => esc_html__('Upload logo here. ex:- it is work in one page menu', 'cyber'),
),
array(
'id' => 'cyber_ts_logo',
'type' => 'media',
'title' => esc_html__('Transparent Menu Logo', 'cyber'),
'compiler' => 'true',
'mode' => false,
'desc' => esc_html__('Upload logo here. ex: - it is work in transparent menu', 'cyber'),
),
array(
'id' => 'cyber_retina_logo',
'type' => 'media',
'title' => esc_html__('Retina Logo', 'cyber'),
'compiler' => 'true',
'mode' => false,
'desc' => esc_html__('Upload logo here. ex: - it is work in Retina Logo', 'cyber'),
),
array(
'id' => 'cyber_mobile_top_logo',
'type' => 'media',
'title' => esc_html__('Mobile Logo', 'cyber'),
'compiler' => 'true',
'mode' => false,
'desc' => esc_html__('Upload logo here. recommend size:- 1801x48px.', 'cyber'),
),
array(
'id' => 'cyber_logo_height',
'type' => 'text',
'title' => esc_html__('Logo Height', 'cyber'),
'mode' => false,
'desc' => esc_html__('Set height ex-100px', 'cyber'),
),
array(
'id' => 'cyber_logo_widget',
'type' => 'text',
'title' => esc_html__('Logo Width', 'cyber'),
'mode' => false,
'desc' => esc_html__('Set Width ex-100px', 'cyber'),
),
array(
'id' => 'cyber_line_height',
'type' => 'text',
'title' => esc_html__('Create logo spacing massing', 'cyber'),
'mode' => false,
'desc' => esc_html__('Set number default-15px', 'cyber'),
'default' =>'15px',
),
array(
'id' => 'cyber_mobile_image_logo',
'type' => 'text',
'mode' => false,
'title' => esc_html__('Logo Text', 'cyber'),
'desc' => esc_html__('Insert text ex: - "cyber", Must be use "" for logo text ', 'cyber'),
'default' => esc_html__('"cyber"', 'cyber'),
),
array(
'id' => 'cyber_mobilebg_color',
'type' => 'color',
'title' => esc_html__('Mobile Menu BG Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => '.mean-container .mean-bar,.mean-container .mean-nav',
)
),
array(
'id' => 'cyber_mobileicon_color',
'type' => 'color',
'title' => esc_html__('Mobile Menu Icon Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => '.mean-container a.meanmenu-reveal span',
'color' => '.mean-container a.meanmenu-reveal,.mean-container .mean-bar::before,.meanmenu-reveal.meanclose:hover'
)
),
),
) );
//Header Menu
Redux::setSection( $opt_name, array(
'title' => esc_html__('Header Menu', 'cyber'),
'id' => 'cyber_menu',
'icon' => 'el el-circle-arrow-right',
'subsection'=> true,
'fields' => array(
array(
'id' => 'cyber_defaulth_menu_layout',
'desc' => esc_html__('Please set a menu for your all single page. But, For your home and others main page menu, Please goes to your page, there you can see header menu section. Please set a menu style there', 'cyber'),
'type' => 'select',
'title' => esc_html__('Select Default Menu For All Single Page', 'cyber'),
'customizer_only' => false,
'options' => array(
'111' => esc_html__( 'Select Default Menu', 'cyber' ),
'1' => esc_html__( '1 Header Menu With Stiky', 'cyber' ),
'2' => esc_html__( '2 Header Transparent Without Top Menu ', 'cyber' ),
'3' => esc_html__( '3 Header Transparent With Top Menu', 'cyber' ),
),
'default' => '111'
),
array(
'id' => 'cyber_header_button',
'type' => 'text',
'title' => esc_html__('Button Text', 'cyber'),
'desc' => esc_html__('Insert text', 'cyber'),
'default' => esc_html__('Get A Quote', 'cyber'),
),
array(
'id' => 'cyber_header_button_url',
'type' => 'text',
'title' => esc_html__('Button URL', 'cyber'),
'desc' => esc_html__('Insert url ex: - http://webitkurigram.com/', 'cyber'),
),
array(
'id' => 'cyber_Button_colorm',
'type' => 'color',
'title' => esc_html__('Menu Button & Search Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => 'a.cyber_btn,.creative_header_button .cyber_btn,.em-quearys-menu i,.top-form-control button.top-quearys-style'
)
),
array(
'id' => 'cyber_Button_colorurl',
'type' => 'color',
'title' => esc_html__('Menu Button & Search BG Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => 'a.cyber_btn,.creative_header_button .cyber_btn,.em-quearys-menu i',
'border-color' => '.em-quearys-form'
)
),
array(
'id' => 'cyber_Buttonht_colorm',
'type' => 'color',
'title' => esc_html__('Menu Hover Button Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => 'a.cyber_btn:hover,.creative_header_button > a:hover'
)
),
array(
'id' => 'cyber_Buttonhtb_colorurl',
'type' => 'color',
'title' => esc_html__('Menu Hover Button BG Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => 'a.cyber_btn:hover,.creative_header_button > a:hover'
)
),
array(
'id' => 'cyber_menu_bg_color',
'type' => 'background',
'title' => esc_html__('Main Menu Section BG Color', 'cyber'),
'default' => '',
'output' => array('
.cyber_nav_area
'),
'default' => array(
'background-color' => '',
)
),
/*
array(
'id' => 'cyber_menu_typography',
'type' => 'typography',
'title' => esc_html__('Main Menu Text style', 'cyber'),
'google' => true,
'font-backup' => true,
'output' => array('
.cyber_menu > ul > li > a,
.heading_style_2 .cyber_menu > ul > li > a,
.heading_style_3 .cyber_menu > ul > li > a,
.heading_style_4 .cyber_menu > ul > li > a,
.heading_style_3.tr_btn .cyber_menu > ul > li > a,
.heading_style_3.tr_white_btn .cyber_menu > ul > li > a,
.heading_style_5 .cyber_menu > ul > li > a
'),
'line-height' => false,
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
),
*/
array(
'id' => 'cyber_menu_texts_hover_color',
'type' => 'color',
'title' => esc_html__('Main Menu Hover Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.cyber_menu > ul > li:hover > a,.cyber_menu > ul > li.current > a',
'background-color' => '.cyber_menu > ul > li > a::before,.cyber_menu > ul > li.current:hover > a::before,.cyber_menu > ul > li.current > a:before'
)
),
array(
'id' => 'cyber_menu_bg_sticky_color',
'type' => 'color_rgba',
'title' => esc_html__('Main Menu Sticky BG Color', 'cyber'),
'default' => array(
'color' => '#000000',
'alpha' => 1
),
'output' => array(
'background-color' => '
.cyber_nav_area.prefix,
.hbg2
'
)
),
/*
array(
'id' => 'cyber_menu_sticky_text_color',
'type' => 'color',
'title' => esc_html__('Main Menu Sticky Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.cyber_nav_area.prefix .cyber_menu > ul > li > a,.hbg2 .cyber_menu > ul > li > a,
.cyber_nav_area.prefix .cyber_menu > ul > li.current > a
',
'background-color' => '
.cyber_nav_area.prefix .cyber_menu > ul > li > a::before,
.hbg2 .cyber_menu > ul > li > a::before
'
)
),
*/
array(
'id' => 'cyber_menu_text_hover_color',
'type' => 'color',
'title' => esc_html__('Main Menu Sticky Current Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.cyber_nav_area.prefix .cyber_menu > ul > li.current > a,
.hbg2 .cyber_menu > ul > li.current > a
',
'background-color' => '
.cyber_nav_area.prefix .cyber_menu > ul > li.current > a::before
'
)
),
array(
'id' => 'cyber_submenu_bg_color',
'type' => 'background',
'title' => esc_html__('Sub Menu BG Color', 'cyber'),
'default' => '',
'output' => array('
.cyber_menu ul .sub-menu
'),
'default' => array(
'background-color' => '',
)
),
/*
array(
'id' => 'cyber_sub_menu_typography',
'type' => 'typography',
'title' => esc_html__('Sub Menu Font style', 'cyber'),
'google' => true,
'font-backup' => true,
'output' => array('
.cyber_menu ul .sub-menu li a
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
'line-height' => ''
),
),
*/
array(
'id' => 'cyber_submenu_hover_text_color',
'type' => 'color',
'title' => esc_html__('Sub Menu Hover Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.cyber_menu ul .sub-menu li:hover > a,
.cyber_menu ul .sub-menu .sub-menu li:hover > a,
.cyber_menu ul .sub-menu .sub-menu .sub-menu li:hover > a,
.cyber_menu ul .sub-menu .sub-menu .sub-menu .sub-menu li:hover > a '
)
),
array(
'id' => 'menu_spacing',
'type' => 'spacing',
'output' => array('.cyber_nav_area'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'title' => esc_html__('Section Padding Option', 'cyber'),
'subtitle' => esc_html__('Allow your users to choose the spacing or padding they want.', 'cyber'),
'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'cyber'),
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
)
),
),
) );
/*========================
END cyber HEADER FIELD
=========================*/
/*========================
cyber BREADCRUMB FIELD
=========================*/
Redux::setSection( $opt_name, array(
'title' => esc_html__('Breadcrumb Area', 'cyber'),
'id' => 'cyber_bread_page',
'icon' => 'el-icon-picture',
'fields' => array(
array(
'id' => 'info_normal',
'type' => 'info',
'desc' => esc_html__('Notice:- If you want to more breadrucmb control. Please see every page bottom area. We Added More Field Here','cyber')
),
array(
'id' => 'cyber_breadcrumb_bg',
'type' => 'background',
'output' => array('.breadcumb-area,.breadcumb-blog-area'),
'title' => esc_html__('Breadcrumb Background', 'cyber'),
'subtitle' => esc_html__('Breadcrumb background with image, color.', 'cyber'),
'default' => array(
'background-color' => '',
)
),
array(
'id' => 'cyber_bread_title_page_color',
'type' => 'color',
'title' => esc_html__('Breadcrumb Title Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.brpt h1,.breadcumb-inner h2'
)
),
/*
array(
'id' => 'cyber_breadcrumb_typography',
'type' => 'typography',
'title' => esc_html__('Breadcrumb Text And Font style', 'cyber'),
'google' => true,
'font-backup' => true,
'line-height' => false,
'text-align' => false,
'output' => array('
.breadcumb-inner ul,
.breadcumb-inner li,
.breadcumb-inner li a
'),
'units' =>'px',
'subtitle' => esc_html__('Typography option with each property can be called individually.', 'cyber'),
'default' => array(
'color' => '',
'font-style' => '',
'font-family' => '',
'google' => true,
'font-size' => '',
),
),
*/
array(
'id' => 'cyber_bread_current_page_color',
'type' => 'color',
'title' => esc_html__('Breadcrumb Current Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.breadcumb-inner li:nth-last-child(-n+1)'
)
),
array(
'id' => 'spacing',
'type' => 'spacing',
'output' => array('.breadcumb-area'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'title' => esc_html__('Padding Option', 'cyber'),
'subtitle' => esc_html__('Allow your users to choose the spacing or margin they want.', 'cyber'),
'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'cyber'),
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
)
),
),
) );
/*========================
END cyber BREADCRUMB FIELD
=========================*/
/*========================
cyber circle FIELD
=========================*/
Redux::setSection( $opt_name, array(
'title' => esc_html__('Default Color', 'cyber'),
'id' => 'cyber_tm_defaultpage',
'icon' => 'el el-circle-arrow-right',
'fields' => array(
array(
'id' => 'thdfinfo_normal',
'type' => 'info',
'desc' => esc_html__('Notice:- we set our all color in our adns, But only carousel Arrow, contact button and scroll button color will be change by below option','cyber')
),
array(
'id' => 'thdft',
'type' => 'color',
'title' => esc_html__('Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.curosel-style .owl-nav div,.slick-prev:before, .slick-next:before'
)
),
array(
'id' => 'thdftbt',
'type' => 'color',
'title' => esc_html__('BG Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => '.curosel-style .owl-nav div,.slick-prev, .slick-next,.em-slick-slider-new.em-image-sliderslick .slick-dots li button,.mc4wp-form-fields button',
'border-color' => '.curosel-style .owl-nav div'
)
),
array(
'id' => 'thdefhbg',
'type' => 'color',
'title' => esc_html__('Hover BG Color', 'cyber'),
'default' => '',
'output' => array(
'background' => '.curosel-style .owl-nav .owl-prev:hover,.curosel-style .owl-nav .owl-next:hover,#scrollUp,.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus ,.em-slick-slider-new.em-image-sliderslick .slick-dots .slick-active button,.mc4wp-form-fields button:hover',
'border-color' => '.curosel-style .owl-nav .owl-prev:hover,.curosel-style .owl-nav .owl-next:hover,#scrollUp,.slick-prev:hover,.slick-next:hover'
)
),
array(
'id' => 'tmdfht',
'type' => 'color',
'title' => esc_html__('Hover Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.curosel-style .owl-nav .owl-prev:hover,.curosel-style .owl-nav .owl-next:hover,#scrollUp i,.slick-prev:hover:before, .slick-next:hover:before'
)
),
array(
'id' => 'thdefhbgctc',
'type' => 'color',
'title' => esc_html__('Contact Button Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.home-2 .sbuton,.sbuton'
)
),
array(
'id' => 'thdefhbgcbtbgh',
'type' => 'color',
'title' => esc_html__('Contact Button BG Color', 'cyber'),
'default' => '',
'output' => array(
'background' => '.home-2 .sbuton,.sbuton',
'border-color' => '.home-2 .sbuton,.sbuton'
)
), array(
'id' => 'thdefhbgcbth',
'type' => 'color',
'title' => esc_html__('Contact Button Hover BG Color', 'cyber'),
'default' => '',
'output' => array(
'background' => '.home-2 .sbuton:hover,.sbuton:hover',
'border-color' => '.home-2 .sbuton:hover,.sbuton:hover'
)
),
array(
'id' => 'tmdfhtcbtnht',
'type' => 'color',
'title' => esc_html__('Contact Button Hover Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.home-2 .sbuton:hover,.sbuton:hover'
)
),
array(
'id' => 'cyber_menu_bg_videocolor',
'type' => 'color_rgba',
'title' => esc_html__('EM Video Widget Ovelrlay Color', 'cyber'),
'default' => array(
'color' => '#000000',
'alpha' => .3
),
'output' => array(
'background-color' => '
.single-video::before
'
)
),
),
) );
/*========================
END cyber circle FIELD
=========================*/
/*========================
cyber BLOG FIELD
=========================*/
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Blog Area', 'cyber' ),
'id' => 'cyber_blog_section_area',
'icon' => 'el el-circle-arrow-right',
'fields' => array(
array(
'id' => 'cyber_blog_bgcolor',
'type' => 'background',
'output' => array('.cyber-single-blog'),
'title' => esc_html__('Blog Item BG Color', 'cyber'),
'subtitle' => esc_html__('BG color', 'cyber'),
'default' => array(
'background-color' => '',
)
),
array(
'id' => 'cyber_blog_title_color',
'type' => 'color',
'title' => esc_html__('Blog Title Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6,
.single-blog-content h1, .single-blog-content h2, .single-blog-content h3, .single-blog-content h4, .single-blog-content h5, .single-blog-content h6,
.blog-content h2 a,.blog-left-side .widget h2,.blog-page-title a,.cyber-single-blog-title h2
')
),
array(
'id' => 'cyber_blog_title_hover_color',
'type' => 'color',
'title' => esc_html__('Blog Title Hover Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.blog-content h2 a:hover,
.blog-page-title h2 a:hover
')
),
array(
'id' => 'cyber_blog_icon_color',
'type' => 'color',
'title' => esc_html__('Blog Post Meta Icon Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.cyber-blog-meta-left i
')
),
array(
'id' => 'cyber_blog_text_meta_color',
'type' => 'color',
'title' => esc_html__('Blog Post Meta Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.cyber-blog-meta.txp-meta .cyber-blog-meta-left a, .cyber-blog-meta.txp-meta .cyber-blog-meta-left span,
')
),
array(
'id' => 'cyber_blog_btn_txt_color',
'type' => 'color',
'title' => esc_html__('Blog btn Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.blog_readmore_btn
')
),
array(
'id' => 'cyber_blog_btn_border_color',
'type' => 'color',
'title' => esc_html__('Blog btn Border Color', 'cyber'),
'default' => '',
'output' => array(
'border-color' => '.blog_readmore_btn
')
),
array(
'id' => 'cyber_blog_btnhover_color',
'type' => 'color',
'title' => esc_html__('Blog btn Hover Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.cyber-single-blog:hover .blog_readmore_btn, .cyber-blog-meta-left a, .cyber-blog-meta-left span
')
),
array(
'id' => 'cyber_blog_btnhover_colorbg',
'type' => 'color',
'title' => esc_html__('Blog Btn Hover BG & Border Color', 'cyber'),
'default' => '',
'output' => array(
'border-color' => '.cyber-single-blog:hover .blog_readmore_btn',
'background-color' => '.cyber-single-blog:hover .blog_readmore_btn ,.cyber-blog-meta-left',
)
),
array(
'id' => 'cyber_blog_widget_bgcolor',
'type' => 'background',
'output' => array('.blog-left-side.widget > div'),
'title' => esc_html__('Blog Sidebar BG Color', 'cyber'),
'subtitle' => esc_html__('BG color', 'cyber'),
'default' => array(
'background-color' => '',
)
),
array(
'id' => 'cyber_sidebar_widgett_text_color',
'type' => 'color',
'title' => esc_html__('Sidebar Title Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.blog-left-side .widget h2'
)
),
array(
'id' => 'cyber_sidebar_widget_li_color',
'type' => 'color',
'title' => esc_html__('Sidebar Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.blog-left-side .widget ul li,
.blog-left-side .widget ul li a,
.blog-left-side .widget ul li::before,
.tagcloud a,
caption,
table,
table td a,
cite,
.rssSummary,
span.rss-date,
span.comment-author-link,
.textwidget p,
.widget .screen-reader-text
')
),
array(
'id' => 'cyber_sidebar_widget_li_hover_color',
'type' => 'color',
'title' => esc_html__('Sidebar Text Hover Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.blog-left-side .widget ul li a:hover,
.blog-left-side .widget ul li:hover::before
')
),
array(
'id' => 'cyber_blog_social_icon_color',
'type' => 'color',
'title' => esc_html__('Single Blog Social Icon & Title bar Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.cyber-single-icon-inner a,.reply_date span.span_right,.cyber_btn',
'border-color' => '.cyber-single-icon-inner a,.cyber_btn',
'background' => '.blog-left-side .widget h2::before,.commment_title h3::before,table#wp-calendar td#today,.footer-middle .widget h2::before',
)
),
array(
'id' => 'cyber_blog_social_hover_color',
'type' => 'color',
'title' => esc_html__('Single Blog Social Icon Hover Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => '.cyber-single-icon-inner a:hover,.cyber_btn:hover',
'border-color' => '.cyber-single-icon-inner a:hover,.cyber_btn:hover',
)
),
array(
'id' => 'cyber_blog_pagina_color',
'type' => 'color',
'title' => esc_html__('Pagination Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.paginations a',
'border-color' => '.paginations a',
)
),
array(
'id' => 'cyber_blog_pagina_hover_color',
'type' => 'color',
'title' => esc_html__('Pagination Hover Color', 'cyber'),
'default' => '',
'output' => array(
'background-color' => '.paginations a:hover, .paginations a.current, .page-numbers span.current',
'border-color' => '.paginations a:hover, .paginations a.current, .page-numbers span.current',
)
),
array(
'id' => 'cyber_blog_socialsharesh_hide',
'type' => 'switch',
'title' => esc_html__('Blog Social share Show/Hide', 'cyber'),
'default' => true,
),
)
) );
/*========================
END cyber BLOG FIELD
=========================*/
/*========================
cyber 404 FIELD
=========================*/
Redux::setSection( $opt_name, array(
'title' => esc_html__('404 Area', 'cyber'),
'id' => 'cyber_error_page',
'desc' => esc_html__('Use this section to upload background images, select background color', 'cyber'),
'icon' => 'el-icon-picture',
'fields' => array(
array(
'id' => 'cyber_background_404',
'type' => 'background',
'output' => array('.not-found-area'),
'title' => esc_html__('404 Page Background Color', 'cyber'),
'subtitle' => esc_html__('404 background with image, color.', 'cyber'),
'default' => array(
'background-color' => '',
)
),
array(
'id' => 'cyber_not_title',
'type' => 'color',
'title' => esc_html__('Title Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.not-found-inner h2,.not-found-inner'
)
),
array(
'id' => 'cyber_sub_not_title',
'type' => 'color',
'title' => esc_html__('Sub Title Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.not-found-inner p,.not-found-inner strong'
)
),
array(
'id' => 'cyber_not_link_color',
'type' => 'color',
'title' => esc_html__('Return Link Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.not-found-inner a'
)
),
array(
'id' => '404_info',
'type' => 'editor',
'title' => esc_html__('404 Information', 'cyber'),
'subtitle' => esc_html__('HTML tags allowed: a, br, em, strong', 'cyber'),
'default' => esc_html__('404 Oops! The page you are Looking for does not exist. ', 'cyber'),
),
array(
'id' => 'cyber_notfound_spacing',
'type' => 'spacing',
'output' => array('.not-found-area'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'title' => esc_html__('Section Padding Option', 'cyber'),
'subtitle' => esc_html__('Allow your users to choose the spacing or padding they want.', 'cyber'),
'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'cyber'),
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
)
),
),
) );
/*========================
cyber FOOTER FIELD
=========================*/
//Footer area
Redux::setSection( $opt_name, array(
'title' => esc_html__('Footer Area', 'cyber'),
'id' => 'footer_area_id',
'desc' => esc_html__('Customize Your Footer', 'cyber'),
'icon' => 'el-icon-cog',
'fields' => array(
array(
'id' => 'cyber_widget_hide',
'type' => 'switch',
'title' => esc_html__('Widget Section Hide/show', 'cyber'),
'default' => false,
),
array(
'id' => 'cyber_copyright_hide',
'type' => 'switch',
'title' => esc_html__('Copyright Section Show/Hide', 'cyber'),
'default' => true,
),
array(
'id' => 'cyber_footer_box_layout',
'type' => 'select',
'title' => esc_html__('Select Footer layout', 'cyber'),
'customizer_only' => false,
'options' => array(
'footer_box' => esc_html__('Box Layout','cyber'),
'footer_full' => esc_html__('Full Layout','cyber'),
),
'default' => 'footer_box'
),
)
) );
// footer widget area
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Footer Widget Section', 'cyber' ),
'id' => 'cyber_widget_section',
'subsection' => true,
'icon' => 'el el-circle-arrow-right',
'fields' => array(
array(
'id' => 'cyber_widget_column_count',
'type' => 'select',
'title' => esc_html__('Widget Column Count', 'cyber'),
'customizer_only' => false,
'options' => array(
'1' => esc_html__('Column 1','cyber'),
'2' => esc_html__('Column 2','cyber'),
'3' => esc_html__('Column 3','cyber'),
'4' => esc_html__('Column 4','cyber'),
'6' => esc_html__('Column 6','cyber'),
),
'default' =>'4'
),
array(
'id' => 'cyber_widgett_text_color',
'type' => 'color',
'title' => esc_html__('Widget Title Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.footer-middle .widget h2'
)
),
array(
'id' => 'cyber_copyright_widget_li_color',
'type' => 'color',
'title' => esc_html__('Widget Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.footer-middle .widget ul li,
.footer-middle .widget ul li a,
.footer-middle .widget ul li::before,
.footer-middle .tagcloud a,
.footer-middle caption,
.footer-middle table,
.footer-middle table td a,
.footer-middle cite,
.footer-middle .rssSummary,
.footer-middle span.rss-date,
.footer-middle span.comment-author-link,
.footer-middle .textwidget p,
.footer-middle .widget .screen-reader-text,
mc4wp-form-fields p,
.mc4wp-form-fields,
.footer-m-address p,
.footer-m-address,
.footer-widget.address,
.footer-widget.address p,
.mc4wp-form-fields p
')
),
array(
'id' => 'cyber_copyright_widget_li_hover_color',
'type' => 'color',
'title' => esc_html__('Widget Text Hover Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '
.footer-middle .widget ul li a:hover,
.footer-middle .widget ul li:hover::before,
.footer-middle .sub-menu li a:hover,
.footer-middle .nav .children li a:hover,
.footer-middle .recent-post-text > h4 a:hover,
.footer-middle .tagcloud a:hover,
#today
')
),
array(
'id' => 'cyber_widget_bg_color',
'type' => 'background',
'title' => esc_html__('Widget Section BG Color', 'cyber'),
'default' => '',
'output' => array('
.footer-middle
'),
'default' => array(
'background-color' => '',
)
),
array(
'id' => 'cyber_widget_section_spacing',
'type' => 'spacing',
'output' => array('.footer-middle'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'title' => esc_html__('Padding Option', 'cyber'),
'subtitle' => esc_html__('Allow your users to choose the spacing padding they want.', 'cyber'),
'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'cyber'),
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
)
),
)
) );
//footer copyright text
Redux::setSection( $opt_name, array(
'title' => esc_html__('Footer Copyright Info', 'cyber'),
'id' => 'cyber_copyright',
'desc' => esc_html__('Insert your copyright style', 'cyber'),
'icon' => 'el el-circle-arrow-right',
'subsection' => true,
'fields' => array(
array(
'id' => 'cyber_footer_copyright_style',
'type' => 'select',
'title' => esc_html__('Copyright Style Layout', 'cyber'),
'customizer_only' => false,
'options' => array(
'copy_s1' => esc_html__('Copyright Text Style','cyber'),
'copy_s2' => esc_html__('Copyright Text and Right Menu','cyber'),
'copy_s3' => esc_html__('Copyright Text and Left Menu','cyber'),
'copy_s4' => esc_html__('Copyright Text and Social Icon','cyber'),
),
'default' => 'copy_s2'
),
array(
'id' => 'cyber_copyright_text',
'type' => 'editor',
'title' => esc_html__('Copyright information', 'cyber'),
'subtitle' => esc_html__('HTML tags allowed: a, br, em, strong', 'cyber'),
'default' => esc_html__('Copyright &copy; cyber all rights reserved.', 'cyber'),
'args' => array(
'teeny' => true,
'textarea_rows' => 5,
'media_buttons' => false,
)
),
array(
'id' => 'cyber_copyright_text_color',
'type' => 'color',
'title' => esc_html__('Copyright Text Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.copy-right-text p,.footer-menu ul li a'
)
),
array(
'id' => 'cyber_copyright_text_hover_color',
'type' => 'color',
'title' => esc_html__('Copyright Text Hover Color', 'cyber'),
'default' => '',
'output' => array(
'color' => '.copy-right-text a, .footer-menu ul li a:hover'
)
),
array(
'id' => 'cyber_copyright_bg_color',
'type' => 'background',
'title' => esc_html__('Copyright Section BG Color', 'cyber'),
'default' => '',
'output' => array('
.footer-bottom
'),
'default' => array(
'background-color' => '',
)
),
array(
'id' => 'cyber_copyright_section_spacing',
'type' => 'spacing',
'output' => array('.footer-bottom'),
'mode' => 'padding',
'units' => array('em', 'px'),
'units_extended' => 'false',
'title' => esc_html__('Padding Option', 'cyber'),
'subtitle' => esc_html__('Allow your users to choose the spacing padding they want.', 'cyber'),
'desc' => esc_html__('You can enable or disable any piece of this field. Top, Right, Bottom, Left, or Units.', 'cyber'),
'default' => array(
'padding-top' => '',
'padding-right' => '',
'padding-bottom' => '',
'padding-left' => '',
'units' => 'px',
)
),
),
) );
/* ========================
END cyber FOOTER FIELD
=========================*/
Redux::setSection( $opt_name, array(
'icon' => 'el el-list-alt',
'title' => esc_html__( 'Customizer Only', 'cyber' ),
'desc' => esc_html__( 'This Section should be visible only in Customizer', 'cyber' ),
'customizer_only' => true,
'fields' => array(
array(
'id' => 'opt-customizer-only',
'type' => 'select',
'title' => esc_html__( 'Customizer Only Option', 'cyber' ),
'subtitle' => esc_html__( 'The subtitle is NOT visible in customizer', 'cyber' ),
'desc' => esc_html__( 'The field desc is NOT visible in customizer.', 'cyber' ),
'customizer_only' => true,
//Must provide key => value pairs for select options
'options' => array(
'1' => esc_html__('Opt 1','cyber'),
'2' => esc_html__('Opt 2','cyber'),
'3' => esc_html__('Opt 3','cyber')
),
'default' => '2'
),
)
) );
/*
* <--- END SECTIONS
*/
/**
* Removes the demo link and the notice of integrated demo from the redux-framework plugin
if ( ! function_exists( 'cyber_remove_demo' ) ) {
function cyber_remove_demo() {
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
remove_filter( 'plugin_row_meta', array(
ReduxFrameworkPlugin::instance(),
'plugin_metalinks'
), null, 2 );
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );
}
}
}
*/