Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
qode-framework
/
File Content:
class-qodeframework.php
<?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.2.5 Text Domain: qode-framework Requires at least: 5.6 Requires PHP: 7.4 */ if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } if ( ! class_exists( 'QodeFramework' ) ) { class QodeFramework { private static $instance; public 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' ); } /** * Instance of module class * * @return QodeFramework */ public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } public function require_core() { require_once __DIR__ . '/constants.php'; require_once QODE_FRAMEWORK_ABS_PATH . '/helpers/include.php'; require_once QODE_FRAMEWORK_INC_PATH . '/class-qodeframeworkroot.php'; } public function init_framework_root() { do_action( 'qode_framework_action_load_dependent_plugins' ); $GLOBALS['qode_framework'] = qode_framework_get_framework_root(); } public function load_plugin_textdomain() { load_plugin_textdomain( 'qode-framework', false, QODE_FRAMEWORK_REL_PATH . '/languages' ); } public 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', array(), QODE_FRAMEWORK_VERSION ); } public function add_body_classes( $classes ) { $classes[] = 'qode-framework-' . QODE_FRAMEWORK_VERSION; return $classes; } } QodeFramework::get_instance(); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
helpers
---
0755
inc
---
0755
languages
---
0755
class-qodeframework.php
2479 bytes
0644
constants.php
871 bytes
0644
N4ST4R_ID | Naxtarrr