芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/clients/origami-events.com/wp-content/themes/kallyas/framework/zn-framework.php
$key(); } /** * Class constructor * * @access public */ public function __construct() { // SET-UP THE FRAMEWORK BASED ON CONFIG FILE $this->theme_data = apply_filters( 'zn_theme_config', array() ); $this->define_constants(); // Don't load the internal PB if the PB plugin is active if( ! class_exists( 'ZionBuilder' ) ){ include( dirname( __FILE__ ) .'/zion-builder/zion-builder.php' ); } include( dirname( __FILE__ ) .'/class-gdpr.php' ); // Actions add_action( 'init', array( $this, 'init' ) ); } /** * Define ZN Constants */ private function define_constants() { // TODO : BETTER WRITE THIS define( 'FW_URL', esc_url( get_template_directory_uri() . '/framework' ) ); } public function init() { do_action( 'zn_framework_init' ); } function is_debug(){ return defined( 'ZN_FW_DEBUG' ) && ZN_FW_DEBUG == true; } } /** * Returns the main instance of ZnFramework to prevent the need to use globals. * * @since 1.0.0 * @return Zn_Framework */ function ZN() { return Zn_Framework::instance(); } /** * Returns the main instance of Pagebuilder * * @since 1.0.0 * @return Zn_Framework */ function ZNPB() { return Zn_Framework::instance()->pagebuilder; } // Global for backwards compatibility. $GLOBALS['zn_framework'] = ZN();