HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/doccure-wp/wp-content/plugins/doccure/admin/class-system-admin.php
<?php

/**
 * The admin-specific functionality of the plugin.
 *
 * @link       https://themeforest.net/user/dreamstechnologies/portfolio
 * @since      1.0.0
 *
 * @package    doccure
 * @subpackage doccure/admin
 */

/**
 * The admin-specific functionality of the plugin.
 *
 * Defines the plugin name, version, and two examples hooks for how to
 * enqueue the admin-specific stylesheet and JavaScript.
 *
 * @package    doccure
 * @subpackage doccure/admin
 * @author     Dreams Technologies <[email protected]>
 */
class doccure_Admin {

    private $plugin_name;
    private $version;
    private $plugin_path;
    private $plugin_url;

    public function __construct() {
        $this->plugin_name 	= doccureGlobalSettings::get_plugin_name();
        $this->version 		= doccureGlobalSettings::get_plugin_verion();
        $this->plugin_path 	= doccureGlobalSettings::get_plugin_path();
        $this->plugin_url 	= doccureGlobalSettings::get_plugin_url();
        $this->prepare_post_types();
    }

    /**
     * Register the spost types for the admin area.
     *
     * @since    1.0.0
     */
    public function prepare_post_types() {
        $dir = $this->plugin_path;
        $scan_PostTypes = glob("$dir/admin/post-types/*");
        foreach ($scan_PostTypes as $filename) {
            @include $filename;
        }
    }

    /**
     * Register the stylesheets for the admin area.
     *
     * @since    1.0.0
     */
    public function enqueue_styles() {

        /**
         * This function is provided for demonstration purposes only.
         *
         * An instance of this class should be passed to the run() function
         * defined in doccure_Loader as all of the hooks are defined
         * in that particular class.
         *
         * The doccure_Loader will then create the relationship
         * between the defined hooks and the functions defined in this
         * class.
         */
        wp_enqueue_style('system-styles', $this->plugin_url . 'admin/css/system-admin.css', array(), $this->version, 'all');
    }

    /**
     * Register the JavaScript for the admin area.
     *
     * @since    1.0.0
     */
    public function enqueue_scripts() {

        /**
         * This function is provided for demonstration purposes only.
         *
         * An instance of this class should be passed to the run() function
         * defined in doccure_Loader as all of the hooks are defined
         * in that particular class.
         *
         * The doccure_Loader will then create the relationship
         * between the defined hooks and the functions defined in this
         * class.
         */        
        wp_enqueue_script('doccure_core_plugin_js', plugin_dir_url( __FILE__ ) . 'js/functions.js', array('jquery','doccure-admin-functions'), $this->version, false);       
    }

}