GRAYBYTE WORDPRESS FILE MANAGER8104

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/elementskit-lite/modules/header-footer/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/elementskit-lite/modules/header-footer//init.php
<?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() );
		}
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:32
giriqfky / giriqfky
0755
assets
--
July 10 2025 04:32:32
giriqfky / giriqfky
0755
theme-hooks
--
July 10 2025 04:32:32
giriqfky / giriqfky
0755
views
--
July 10 2025 04:32:32
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:32
giriqfky / giriqfky
0644
activator.php
5.131 KB
November 28 2023 17:47:40
giriqfky / giriqfky
0644
cpt-api.php
4.113 KB
June 20 2022 12:35:04
giriqfky / giriqfky
0644
cpt-hooks.php
4.251 KB
November 28 2023 17:47:40
giriqfky / giriqfky
0644
cpt.php
2.585 KB
May 18 2022 20:49:00
giriqfky / giriqfky
0644
init.php
1.763 KB
May 18 2022 20:49:00
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF