| Server IP : 141.193.213.10 / Your IP : 216.73.216.101 Web Server : nginx System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64 User : fpm200079 ( 200079) PHP Version : 8.2.36 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nas/content/live/bartislaw/wp-content/themes/spk/lib/ |
Upload File : |
<?php
if (!class_exists('Redux')) {
return;
}
$opt_name = "lb_options";
$theme = wp_get_theme(); // For use with some settings. Not necessary.
$args = array(
'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' => 'menu',
//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' => __(TNAME, TDOMAIN),
'page_title' => __(TNAME, TDOMAIN),
// 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' => 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
// 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);
// -> START General Fields
Redux::setSection($opt_name, array(
'title' => __('General', TDOMAIN),
'id' => 'general',
'customizer_width' => '700px',
'icon' => 'el el-dashboard'
));
Redux::setSection($opt_name, array(
'title' => __('Logo', TDOMAIN),
'id' => 'general-logo',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-logo',
'type' => 'media',
'url' => true,
'title' => __('File', TDOMAIN),
'compiler' => 'true',
),
array(
'id' => 'general-theme-clr',
'type' => 'color',
'title' => __('Theme Color Scheme', TDOMAIN),
'default' => "#1188d8",
'mode' => 'color',
),
),
));
// -> START Header Fields
Redux::setSection($opt_name, array(
'title' => __('Header', TDOMAIN),
'id' => 'header',
'desc' => __('Header style and configurations', TDOMAIN),
'customizer_width' => '700px',
'icon' => 'el el-photo'
));
Redux::setSection($opt_name, array(
'title' => __('Layouts', TDOMAIN),
'id' => 'header-layout-select',
'subsection' => true,
'fields' => array(
array(
'id' => 'lb-header-select-layout',
'type' => 'image_select',
'presets' => true,
'full_width' => true,
'title' => __('Headers', TDOMAIN),
'options' => array(
'1' => array(
'alt' => 'Simple',
'img' => THEME_URI . '/assets/images/headers/header-1.jpg',
'presets' => array(
'lb-header-select-layout' => 1,
)
),
'2' => array(
'alt' => 'Transparent',
'img' => THEME_URI . '/assets/images/headers/header-2.jpg',
'presets' => array(
'lb-header-select-layout' => 2,
)
),
'3' => array(
'alt' => 'Top Bar',
'img' => THEME_URI . '/assets/images/headers/header-3.jpg',
'presets' => array(
'lb-header-select-layout' => 3,
)
),
'4' => array(
'alt' => 'CTA',
'img' => THEME_URI . '/assets/images/headers/header-4.jpg',
'presets' => array(
'lb-header-select-layout' => 4,
'opt-header-height' => array(
"height" => "auto"
),
'opt-menu-links-spacing' => array(
"margin-top" => "0",
"margin-right" => "0",
"margin-bottom" => "0",
"margin-left" => "0",
),
),
),
'5' => array(
'alt' => 'Transparent',
'img' => THEME_URI . '/assets/images/headers/header-5.jpg',
'presets' => array(
'lb-header-select-layout' => 5,
'opt-header-height' => array(
"height" => "auto"
),
'opt-menu-links-spacing' => array(
"margin-top" => "0",
"margin-right" => "0",
"margin-bottom" => "0",
"margin-left" => "0",
),
),
),
),
#'default' => '1'
)
)
));
Redux::setSection($opt_name, array(
'title' => __('Action Bar', TDOMAIN),
'id' => 'header-action-bar',
//'desc' => __('Some of options work only on specific header layout', TDOMAIN),
'subsection' => true,
'fields' => array(
array(
'id' => 'action-bar-status',
'type' => 'switch',
'title' => __('Show/Hide Action Bar', TDOMAIN),
'subtitle' => __('Further option will be visible on enable status!', TDOMAIN),
'default' => 0,
'on' => 'Enabled',
'off' => 'Disabled',
),
array(
'id' => 'opt-action-bar-responsive',
'type' => 'switch',
'required' => array('action-bar-status', '=', '1'),
'title' => __('Small Devices', TDOMAIN),
'default' => "1",
'on' => 'Show',
'off' => 'Hide',
),
array(
'id' => 'opt-action-bar-width',
'type' => 'switch',
'required' => array('action-bar-status', '=', '1'),
'title' => __('Width Full/Boxed', TDOMAIN),
'default' => "1",
'on' => 'Full',
'off' => 'Boxed',
),
array(
'id' => 'opt-action-bar-bg',
'type' => 'color_rgba',
'required' => array('action-bar-status', '=', '1'),
'title' => __('Background Color (RGBA)', TDOMAIN),
'default' => array(
'color' => '#FFFFFF',
'alpha' => '.8'
),
'output' => array('#action_bar'),
'mode' => 'background',
),
array(
'id' => 'opt-action-bar-tcolor',
'type' => 'color',
'required' => array('action-bar-status', '=', '1'),
'title' => __('Text/Link Color', TDOMAIN),
'default' => "#fff",
'output' => array("#action_bar,#action_bar a"),
'mode' => 'color',
),
array(
'id' => 'opt-action-email',
'type' => 'text',
'required' => array('action-bar-status', '=', '1'),
'title' => __('Email Address', TDOMAIN),
'default' => "info@yourdomain.com",
),
array(
'id' => 'opt-action-phone',
'type' => 'text',
'required' => array('action-bar-status', '=', '1'),
'title' => __('Phone Number', TDOMAIN),
'default' => "999 999 9999",
),
),
));
Redux::setSection($opt_name, array(
'title' => __('Menu', TDOMAIN),
'id' => 'menu',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-menu-link-color',
'type' => 'link_color',
'title' => __('Menu Links Color', TDOMAIN),
'subtitle' => __('Only color validation can be done on this field type', TDOMAIN),
'desc' => __('This is the description field, again good for additional info.', TDOMAIN),
'output' => array('#top-nav a'),
'default' => array(
'regular' => '#000',
'hover' => '#bbb',
'active' => '#ccc',
)
),
array(
'id' => 'opt-menu-links-spacing',
'type' => 'spacing',
// An array of CSS selectors to apply this font style to
'mode' => 'padding',
// absolute, padding, margin, defaults to padding
'all' => false,
'units' => array('em', 'px', '%'), // You can specify a unit value. Possible: px, em, %
'units_extended' => 'true', // Allow users to select any type of unit
//'display_units' => 'false', // Set to false to hide the units if the units are specified
'title' => __('Menu Links Padding/Margin', TDOMAIN),
'output' => array('#top-nav a'),
'default' => array(
'margin-top' => '10px',
'margin-right' => '0px',
'margin-bottom' => '10px',
'margin-left' => '0px'
)
),
array(
'id' => 'opt-menu-typography',
'type' => 'typography',
'title' => __('Menu Links Typography', TDOMAIN),
'font-backup' => true,
'all_styles' => true,
// Enable all Google Font style/weight variations to be added to the page
'output' => array('#top-nav ul li a'),
// An array of CSS selectors to apply this font style to dynamically
'units' => 'px',
'color' => false,
'default' => array(
'font-style' => '400',
'font-family' => 'Open Sans',
'google' => true,
'font-size' => '25px',
'line-height' => '30px'
),
),
array(
'id' => 'opt-menu-btn-text',
'type' => 'text',
'required' => array('lb-header-select-layout', '=', 5),
'title' => __('Button Label', TDOMAIN),
'default' => "Buy Now",
),
array(
'id' => 'opt-menu-btn-link',
'type' => 'text',
'required' => array('lb-header-select-layout', '=', 5),
'title' => __('Button Link', TDOMAIN),
'default' => "#",
),
array(
'id' => 'opt-menu-btn-bg',
'type' => 'color_rgba',
'title' => __('Background Color (RGBA)', TDOMAIN),
'default' => array(
'color' => '#ffffff',
'alpha' => '.9'
),
'output' => array('#header .header-area .buy-now-btn .btn-buy'),
'mode' => 'background',
),
array(
'id' => 'opt-menu-btn-hover',
'type' => 'color_rgba',
'title' => __('Hover Background Color (RGBA)', TDOMAIN),
'default' => array(
'color' => '#fff',
'alpha' => '.0'
),
'output' => array('#header .header-area .buy-now-btn .btn-buy:hover'),
'mode' => 'background',
),
),
));
Redux::setSection($opt_name, array(
'title' => __('General ', TDOMAIN),
'id' => 'header-configuration',
'desc' => __('Some of options will work only on specific header layout', TDOMAIN),
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-header-bg',
'type' => 'color_rgba',
'title' => __('Background Color (RGBA)', TDOMAIN),
'default' => array(
'color' => '#7e33dd',
'alpha' => '.8'
),
'output' => array('#header'),
'mode' => 'background',
),
array(
'id' => 'opt-header-border-style',
'type' => 'border',
'title' => __('Header Border', TDOMAIN),
'output' => array('#header'),
'all' => false,
'default' => array(
'border-color' => '#000',
'border-style' => 'solid',
'border-top' => '0px',
'border-right' => '0px',
'border-bottom' => '2px',
'border-left' => '0px'
)
),
array(
'id' => 'opt-header-height',
'type' => 'dimensions',
'units' => array('px', '%'), // You can specify a unit value. Possible: px, em, %
'units_extended' => 'true', // Allow users to select any type of unit
'title' => __('Header (Height)', TDOMAIN),
#'subtitle' => __('Allow your users to choose width, height, and/or unit.', TDOMAIN),
#'desc' => __('You can enable or disable any piece of this field. Width, Height, or Units.', TDOMAIN),
'width' => false,
'output' => array('#header'),
'default' => array(
'height' => 70,
)
),
array(
'id' => 'opt-logo-spacing',
'type' => 'spacing',
// An array of CSS selectors to apply this font style to
'mode' => 'margin',
// absolute, padding, margin, defaults to padding
'all' => false,
'units' => array('em', 'px', '%'), // You can specify a unit value. Possible: px, em, %
'units_extended' => 'true', // Allow users to select any type of unit
//'display_units' => 'false', // Set to false to hide the units if the units are specified
'title' => __('Logo Padding/Margin', TDOMAIN),
'output' => array('#logo'),
'default' => array(
'margin-top' => '10px',
'margin-right' => '0px',
'margin-bottom' => '10px',
'margin-left' => '0px'
)
),
),
));
Redux::setSection($opt_name, array(
'title' => __('Footer', TDOMAIN),
'id' => 'footer',
'icon' => 'el el-website'
));
Redux::setSection($opt_name, array(
'title' => __('Options', TDOMAIN),
'id' => 'footer-options',
'subsection' => true,
'fields' => array(
array(
'id' => 'footer-spacing',
'type' => 'spacing',
'mode' => 'padding',
'all' => false,
'units' => array('em', 'px', '%'), // You can specify a unit value. Possible: px, em, %
'units_extended' => 'true', // Allow users to select any type of unit
'title' => __('Footer Spacing', TDOMAIN),
'output' => array('#footer'),
'default' => array(
'padding-top' => '10px',
'padding-right' => '0px',
'padding-bottom' => '10px',
'padding-left' => '0px'
)
),
array(
'id' => 'footer-bg',
'type' => 'color',
'title' => __('Footer Background', TDOMAIN),
'default' => "#333",
'output' => array('#footer'),
'mode' => 'background',
),
array(
'id' => 'footer-txt-color',
'type' => 'color',
'title' => __('Footer Text Color', TDOMAIN),
'default' => "#fff",
'output' => array('#footer *'),
'mode' => 'color',
),
array(
'id' => 'footer-txt',
'type' => 'text',
'title' => __('Copyright Text', TDOMAIN),
'default' => "Copyright © All rights reserved.",
),
),
));
/*
* <--- END SECTIONS
*/
// demo notice and links
add_action( 'redux/loaded', 'remove_demo' );
if (!function_exists('remove_demo')) {
function remove_demo() {
if (class_exists('ReduxFrameworkPlugin')) {
remove_filter('plugin_row_meta', array(
ReduxFrameworkPlugin::instance(),
'plugin_metalinks'
), null, 2);
remove_action('admin_notices', array(ReduxFrameworkPlugin::instance(), 'admin_notices'));
}
}
}