PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
<?php /* Plugin Name: Qode Framework Plugin URI: https://qodeinteractive.com Description: Framework plugin developed as a base for Qode Interactive themes Author: Qode Interactive Author URI: https://qodeinteractive.com Version: 1.1.6 Text Domain: qode-framework Requires at least: 5.0 Requires PHP: 5.6 */ if ( ! class_exists( 'QodeFramework' ) ) { class QodeFramework { private static $instance; function __construct() { // Hook to include additional modules before plugin loaded do_action( 'qode_framework_action_before_framework_plugin_loaded' ); $this->require_core(); // Make plugin available for other plugins add_action( 'plugins_loaded', array( $this, 'init_framework_root' ) ); // Make plugin available for translation add_action( 'plugins_loaded', array( $this, 'load_plugin_textdomain' ) ); // Include plugin admin assets add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_dashboard_scripts' ) ); // Add plugin's body classes add_filter( 'body_class', array( $this, 'add_body_classes' ) ); // Hook to include additional modules when plugin loaded do_action( 'qode_framework_action_after_framework_plugin_loaded' ); } /** * @return QodeFramework */ public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } function require_core() { require_once dirname( __FILE__ ) . '/constants.php'; require_once QODE_FRAMEWORK_ABS_PATH . '/helpers/include.php'; require_once QODE_FRAMEWORK_INC_PATH . '/class-qodeframeworkroot.php'; } function init_framework_root() { do_action( 'qode_framework_action_load_dependent_plugins' ); $GLOBALS['qode_framework'] = qode_framework_get_framework_root(); } function load_plugin_textdomain() { load_plugin_textdomain( 'qode-framework', false, QODE_FRAMEWORK_REL_PATH . '/languages' ); } function enqueue_dashboard_scripts() { // Enqueue plugin's main style wp_enqueue_style( 'qode-framework-global-style', QODE_FRAMEWORK_INC_URL_PATH . '/common/assets/css/dashboard-global.min.css' ); } function add_body_classes( $classes ) { $classes[] = 'qode-framework-' . QODE_FRAMEWORK_VERSION; return $classes; } } QodeFramework::get_instance(); }
[-] constants.php
[edit]
[-] class-qodeframework.php
[edit]
[+]
..
[+]
languages
[-] changes.txt
[edit]
[+]
helpers
[+]
inc