| Server IP : 103.18.247.38 / Your IP : 216.73.217.101 Web Server : Apache System : Linux server2.aznethosting.net 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64 User : gmbizz ( 1200) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gmbizz/public_html/wp-content/plugins/auxin-elements/admin/ |
Upload File : |
<?php
/**
* Main Admin Class
*
* @echo HEADER
*/
// no direct access allowed
if ( ! defined( 'ABSPATH' ) ) {
die();
}
/**
* This class is used to work with the
* administrative side of the plugin
*/
class AUXELS_Admin {
/**
* Instance of this class.
*
* @since 1.0.0
*
* @var object
*/
protected static $instance = null;
/**
* Slug of the plugin screen.
*
* @since 1.0.0
*
* @var string
*/
protected $screen_hook_suffix = null;
/**
* Initialize the plugin by loading admin classes and functions
*
*/
private function __construct() {
// include admin files
$this->includes();
$this->enqueue_admin_scripts();
}
/**
* Include admin essential classes and functions
*
* @return void
*/
private function includes(){
include_once( AUXELS_ADMIN_DIR . '/includes/index.php' );
}
/**
* Return an instance of this class.
*
* @since 1.0.0
*
* @return object A single instance of this class.
*/
public static function get_instance() {
if( apply_filters( 'auxels_access_only_for_super_admins' , 0 ) && ! is_super_admin() ) {
return;
}
// If the single instance hasn't been set, set it now.
if ( null == self::$instance ) {
self::$instance = new self;
}
return self::$instance;
}
/**
* Register and enqueue admin-specific JavaScript & Stylesheet.
*
* @since 1.0.0
*
* @return null Return early if no settings page is registered.
*/
public function enqueue_admin_scripts() {
$admin_assets = new Auxels_Admin_Assets();
if ( ! isset( $this->screen_hook_suffix ) )
return;
$screen = get_current_screen();
if ( $this->screen_hook_suffix == $screen->id ) {
// enqueue styles on the pages that belongs to plugin
}
}
}
return AUXELS_Admin::get_instance();