<?php
/**
* 1、在这里定义了一些用到的函数和常量、变量。
* 2、框架只需要加载者一个文件就可用添加所有扩展和选项了
* https://github.com/reduxframework/redux-framework/blob/master/sample/sample-config.php
*/
// 不允许直接访问此文件。
if ( ! defined( 'ABSPATH' ) ) {
exit( '拒绝直接访问脚本.' );
}
// Load the embedded Redux Framework
if ( file_exists( dirname( __FILE__ ).'/framework.php' ) ) {
require_once dirname(__FILE__).'/framework.php';
}
if ( ! class_exists( 'Redux' ) ) {
return;
}
// This is your option name where all the Redux data is stored.
$opt_name = "unify";
// Load the theme/plugin options
if ( file_exists( dirname( __FILE__ ) . '/ARGUMENTS.php' ) ) {
require_once dirname( __FILE__ ) . '/ARGUMENTS.php';
}
// Load the theme/plugin options
if ( file_exists( dirname( __FILE__ ) . '/SECTIONS.php' ) ) {
require_once dirname( __FILE__ ) . '/SECTIONS.php';
}
admin
最新推荐文章于 2024-05-11 10:54:01 发布