| 1 |
<?php |
| 2 |
/** |
| 3 |
* Module admin carcase |
| 4 |
* |
| 5 |
* @package Powerkit |
| 6 |
* @subpackage Core |
| 7 |
*/ |
| 8 |
|
| 9 |
// If this file is called directly, abort. |
| 10 |
if ( ! defined( 'WPINC' ) ) { |
| 11 |
die; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* Module admin class. |
| 16 |
*/ |
| 17 |
class Powerkit_Module_Admin { |
| 18 |
|
| 19 |
/** |
| 20 |
* The module slug. |
| 21 |
* |
| 22 |
* @var string $slug The module slug. |
| 23 |
*/ |
| 24 |
public $slug = null; |
| 25 |
|
| 26 |
/** |
| 27 |
* __construct |
| 28 |
* |
| 29 |
* This function will initialize the initialize |
| 30 |
* |
| 31 |
* @param string $slug The module slug. |
| 32 |
*/ |
| 33 |
public function __construct( $slug = null ) { |
| 34 |
|
| 35 |
// Init slug of module. |
| 36 |
$this->slug = $slug; |
| 37 |
|
| 38 |
// Initialize. |
| 39 |
$this->initialize(); |
| 40 |
|
| 41 |
// Actions. |
| 42 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* Initialize |
| 47 |
* |
| 48 |
* This function will initialize the module |
| 49 |
*/ |
| 50 |
public function initialize() { |
| 51 |
|
| 52 |
/* do nothing */ |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* Load the required dependencies for this module. |
| 57 |
* |
| 58 |
* @param string $page Current page. |
| 59 |
*/ |
| 60 |
public function admin_enqueue_scripts( $page ) { |
| 61 |
|
| 62 |
/* do nothing */ |
| 63 |
} |
| 64 |
} |
| 65 |
|