Current Path: > home > transcarter > > > www > > wp-content > plugins > elementskit-lite > modules > header-footer
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.8 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
assets | Directory | - | - | |
theme-hooks | Directory | - | - | |
views | Directory | - | - | |
activator.php | File | 5254 bytes | July 17 2025 21:06:24. | |
cpt-api.php | File | 4212 bytes | July 17 2025 21:06:24. | |
cpt-hooks.php | File | 4353 bytes | July 17 2025 21:06:24. | |
cpt.php | File | 2647 bytes | July 17 2025 21:06:24. | |
init.php | File | 1805 bytes | July 17 2025 21:06:24. |
<?php namespace ElementsKit_Lite\Modules\Header_Footer; defined( 'ABSPATH' ) || exit; class Init { public $dir; public $url; public function __construct() { // get current directory path $this->dir = dirname( __FILE__ ) . '/'; // get current module's url $this->url = \ElementsKit_Lite::plugin_url() . 'modules/header-footer/'; // enqueue scripts add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // include all necessary files $this->include_files(); add_action( 'admin_footer', array( $this, 'modal_view' ) ); Cpt_Hooks::instance(); Activator::instance(); } public function include_files() { include_once $this->dir . 'cpt.php'; include_once $this->dir . 'cpt-api.php'; } public function modal_view() { $screen = get_current_screen(); if ( $screen->id == 'edit-elementskit_template' ) { include_once $this->dir . 'views/modal-editor.php'; } } public function enqueue_styles() { $screen = get_current_screen(); if ( $screen->id == 'edit-elementskit_template' ) { wp_enqueue_style( 'select2', $this->url . 'assets/css/select2.min.css', false, \ElementsKit_Lite::version() ); wp_enqueue_style( 'elementskit-menu-admin-style', $this->url . 'assets/css/admin-style.css', false, \ElementsKit_Lite::version() ); } } public function enqueue_scripts() { $screen = get_current_screen(); if ( $screen->id == 'edit-elementskit_template' ) { wp_enqueue_script( 'select2', $this->url . 'assets/js/select2.min.js', array( 'jquery' ), true, \ElementsKit_Lite::version() ); wp_enqueue_script( 'elementskit-menu-admin-script', $this->url . 'assets/js/admin-script.js', array( 'jquery' ), true, \ElementsKit_Lite::version() ); } } }
SILENT KILLER Tool