File: /www/wwwroot/www.sceysls.com/wp-content/themes/Zing-Pro/admin/dahuzi-framework/dahuzi-framework.php
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
/**
*
* @package Dahuzi Framework - WordPress Options Framework
* @author Dahuzi <info@dahuzithemes.com>
* @link http://dahuziframework.com
* @copyright 2015-2022 Dahuzi
*
*
* Plugin Name: Dahuzi Framework
* Plugin URI: http://dahuziframework.com/
* Author: Dahuzi
* Author URI: http://dahuzithemes.com/
* Version: 2.2.7
* Description: A Simple and Lightweight WordPress Option Framework for Themes and Plugins
* Text Domain: dahuzi
* Domain Path: /languages
*
*/
require_once plugin_dir_path( __FILE__ ) .'classes/setup.class.php';
//自定义设置
include TEMPLATEPATH.'/admin/dahuzi-framework/config/customize.php';
//分类扩展
include TEMPLATEPATH.'/admin/dahuzi-framework/config/taxonomy.php';
//通用优化设置
include TEMPLATEPATH.'/admin/dahuzi-framework/config/options.php';
//文章扩展
include TEMPLATEPATH.'/admin/dahuzi-framework/config/metabox.php';
//短代码配置器
include TEMPLATEPATH.'/admin/dahuzi-framework/config/shortcoder.php';
//低配版页面构建器
include TEMPLATEPATH.'/admin/dahuzi-framework/config/post-type-dahuzi-page.php';
if ( !function_exists('xintheme') ) {
function xintheme( $option = '', $default = null ) {
$options = get_option('xintheme_customize');
return ( isset( $options[$option] ) ) ? $options[$option] : $default;
}
}
if ( !function_exists('xintheme_img') ) {
function xintheme_img($option = '', $default = '')
{
$options = get_option('xintheme_customize');
return ( isset( $options[$option]['url'] ) ) ? $options[$option]['url'] : $default;
}
}
if ( !function_exists('dahuzi') ) {
function dahuzi( $option = '', $default = null ) {
$options = get_option('xintheme_optimize');
return ( isset( $options[$option] ) ) ? $options[$option] : $default;
}
}
if ( !function_exists('dahuzi_img') ) {
function dahuzi_img( $option = '', $default = null ) {
$options = get_option('xintheme_optimize');
return ( isset( $options[$option]['url'] ) ) ? $options[$option]['url'] : $default;
}
}
if ( !function_exists('dahuzi_taxonomy') ) {
function dahuzi_taxonomy( $option = '', $default = null ) {
global $wp_query;
$options = get_term_meta( $wp_query->get_queried_object_id(), '_prefix_taxonomy_options', true );
return ( isset( $options[$option] ) ) ? $options[$option] : $default;
}
}