| 1 |
<?php |
| 2 |
/** |
| 3 |
* The file that defines the core plugin class |
| 4 |
* |
| 5 |
* A class definition that includes attributes and functions used across both the |
| 6 |
* public-facing side of the site and the admin area. |
| 7 |
* |
| 8 |
* @link https://posimyth.com/ |
| 9 |
* @since 1.0.0 |
| 10 |
* |
| 11 |
* @package Wdesignkit |
| 12 |
* @subpackage Wdesignkit/includes |
| 13 |
*/ |
| 14 |
|
| 15 |
/**Exit if accessed directly.*/ |
| 16 |
if ( ! defined( 'ABSPATH' ) ) { |
| 17 |
exit; |
| 18 |
} |
| 19 |
|
| 20 |
if ( ! class_exists( 'Wdkit_Notice_Main' ) ) { |
| 21 |
|
| 22 |
/** |
| 23 |
* Wdkit_Notice_Main |
| 24 |
* |
| 25 |
* @since 1.0.0 |
| 26 |
*/ |
| 27 |
class Wdkit_Notice_Main { |
| 28 |
|
| 29 |
/** |
| 30 |
* Singleton instance variable. |
| 31 |
* |
| 32 |
* @var instance|null The single instance of the class. |
| 33 |
*/ |
| 34 |
private static $instance; |
| 35 |
|
| 36 |
/** |
| 37 |
* Singleton instance getter method. |
| 38 |
* |
| 39 |
* @since 1.0.0 |
| 40 |
* |
| 41 |
* @return self The single instance of the class. |
| 42 |
*/ |
| 43 |
public static function get_instance() { |
| 44 |
if ( ! isset( self::$instance ) ) { |
| 45 |
self::$instance = new self(); |
| 46 |
} |
| 47 |
|
| 48 |
return self::$instance; |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* Constructor for the core functionality of the plugin. |
| 53 |
* |
| 54 |
* @since 1.0.0 |
| 55 |
* @access public |
| 56 |
*/ |
| 57 |
public function __construct() { |
| 58 |
self::wdkit_notice_fileload(); |
| 59 |
} |
| 60 |
|
| 61 |
/** |
| 62 |
* Loads the file for setting plugin page notices. |
| 63 |
* |
| 64 |
* @since 1.0.0 |
| 65 |
* @access public |
| 66 |
*/ |
| 67 |
public function wdkit_notice_fileload() { |
| 68 |
require_once WDKIT_INCLUDES . 'admin/notices/class-wdkit-plugin-page.php'; |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
Wdkit_Notice_Main::get_instance(); |
| 73 |
} |
| 74 |
|