<?php
/**
ReduxFramework Theme Option File
For full documentation, please visit: https://github.com/ReduxFramework/ReduxFramework/wiki
*
*/
if (!class_exists("ReduxFramework"))
{
return;
}
if (!class_exists("Beautyzone_Redux_Framework_config"))
{
class Beautyzone_Redux_Framework_config
{
public $args = array();
public $sections = array();
public $theme;
public $ReduxFramework;
public $page_template_options;
public $coming_template_options;
public $maintenance_template_options;
public $error_template_options;
public $header_style_options;
public $footer_style_options;
public $post_layouts_options;
public $sidebar_layout_options;
public $page_banner_options;
public $post_banner_options;
public $theme_layout_options;
public $theme_color_background_options;
public $theme_image_background_options;
public $theme_pattern_background_options;
public $theme_color_options;
public $page_loader_options;
public $sort_by_options;
public $link_target_options;
public $social_link_options;
public $banner_type;
function __construct()
{
/** Option Variable assigning values **/
$this->page_template_options = beautyzone_get_page_template_options();
$this->coming_template_options = beautyzone_get_coming_template_options();
$this->maintenance_template_options = beautyzone_get_maintenance_template_options();
$this->error_template_options = beautyzone_get_error_template_options();
$this->header_style_options = beautyzone_get_header_style_options();
$this->footer_style_options = beautyzone_get_footer_style_options();
$this->post_layouts_options = beautyzone_get_post_layouts_options();
$this->sidebar_layout_options = beautyzone_get_sidebar_layout_options();
$this->page_banner_options = beautyzone_get_page_banner_options();
$this->post_banner_options = beautyzone_get_post_banner_options();
$this->theme_layout_options = beautyzone_get_theme_layout_options();
$this->theme_color_background_options = beautyzone_get_theme_color_background_options();
$this->theme_image_background_options = beautyzone_get_theme_image_background_options();
$this->theme_pattern_background_options = beautyzone_get_theme_pattern_background_options();
$this->theme_color_options = beautyzone_get_theme_color_options();
$this->page_loader_options = beautyzone_get_page_loader_options();
$this->sort_by_options = beautyzone_get_sort_by_options();
$this->link_target_options = beautyzone_get_link_target_options();
$this->social_link_options = beautyzone_get_social_link_options();
$this->social_share_options = beautyzone_get_social_share_options();
$this->banner_type = beautyzone_banner_type();
/** End Option Variable assigning values **/
// Just for demo purposes. Not needed per say.
$this->theme = wp_get_theme();
// Set the default arguments
$this->setArguments();
// array of widgets
$this->beautyzone_get_wp_widgets();
// Create the sections and fields
$this->setSections();
// default theme options
// $this->beautyzone_get_default_option();
if (!isset($this->args['opt_name']))
{ // No errors please
return;
}
$this->ReduxFramework = new ReduxFramework($this->sections, $this->args);
}
/**
* All the possible arguments for Redux.
* For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments
*
*/
function setArguments()
{
$theme = wp_get_theme(); // For use with some settings. Not necessary.
$opt_name = beautyzone_get_opt_name();
$this->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' => class_exists('DZCore') ? 'menu' : '',
//Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only)
'allow_sub_menu' => false,
// Show the sections below the admin menu item or not
'menu_title' => esc_html__('Theme Options', 'beautyzone') ,
'page_title' => esc_html__('Theme Options', 'beautyzone') ,
// 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' => null,
// Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
'page_parent' => class_exists('DZCore') ? $theme->get('TextDomain') : '',
// 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' => 'theme-o
Lee达森
- 粉丝: 1563
- 资源: 1万+
最新资源
- Java毕设项目:基于spring+mybatis+maven+mysql实现的大学生艺术节管理系统【含源码+数据库+开题报告+毕业论文】
- EPLAN P8电气部件库:涵盖低压电气、控制系统设计多款品牌型号,高效整理,小文件快速导入,附PLC与传感器等全套设备资源,附送软件及电涌保护器全系列 ,EPLAN P8部件库 EPLAN P8部件
- kcm-colors-4.11.19-16.el7-9.x64-86.rpm.tar.gz
- "COMSOL模拟技术:研究页岩钻井液在钻井过程中井壁稳定性的案例分析,深入探讨水化反应中的多场耦合作用与详细建模说明书",COMSOL模拟页岩钻井液钻井井壁稳定性案列 本案列考虑页岩水化反应过程中
- kcm-touchpad-0.3.1-11.el7.x64-86.rpm.tar.gz
- 基于改进粒子群算法的并网型微电网多目标优化调度策略:降低用电成本与环保双赢,基于改进粒子群算法的并网型微电网多目标优化调度 参考文献知网《基于改进粒子群算法的微电网多目标优化调度-李兴莘》,程序基本复
- 基于MATLAB的异步电机矢量控制仿真模型:双闭环与电流滞环控制实现高精度转速响应与强抗扰性能,异步电机有速度传感器矢量控制,matlab,仿真模型 转速外环电流内环 双闭环控制,控制精度高,响应
- kcolorchooser-4.10.5-3.el7.x64-86.rpm.tar.gz
- kcoloredit-4.4.0-9.el7.x64-86.rpm.tar.gz
- 基于F28335与F2812的DSP变频器SVPWM源码工程文件 内置多重功能,搭载浮点运算库,TMS实战编码与EEPROM存储参数支持,DSP程序定制 F28335 F2812 简易变频器svpwm
- 基于MATLAB的异步电机无传感器矢量控制仿真模型:采用MRAS模型参考自适应控制算法,异步电机的无传感器矢量控制,matlab,仿真模型,控制算法为MRAS模型参考自适应 ,核心关键词:异步电机
- kde-base-artwork-4.10.5-2.el7.x64-86.rpm.tar.gz
- jeecg-java开发项目资源
- 基于Matlab的异步电机滑模观测器算法仿真模型研究,异步电机的滑模观测器算法,matlab,仿真模型 ,核心关键词:异步电机的滑模观测器算法; MATLAB; 仿真模型;,异步电机滑模观测算法的Ma
- kde-baseapps-4.10.5-6.el7.x64-86.rpm.tar.gz
- Java毕设项目:基于spring+mybatis+maven+mysql实现的旅游管理系统【含源码+数据库+开题报告+任务书+毕业论文】
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈