| 1 |
<?php |
| 2 |
/** |
| 3 |
* It is Main File to load all Notice, Upgrade Menu and all |
| 4 |
* |
| 5 |
* @link https://posimyth.com/ |
| 6 |
* @since 1.0.0 |
| 7 |
* |
| 8 |
* @package Uichemy |
| 9 |
* @subpackage Uichemy/includes |
| 10 |
* */ |
| 11 |
|
| 12 |
/** |
| 13 |
* Exit if accessed directly. |
| 14 |
* */ |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
if ( ! class_exists( 'Wdkit_User_Experience_Main' ) ) { |
| 20 |
|
| 21 |
/** |
| 22 |
* This class used for only load All Notice Files |
| 23 |
* |
| 24 |
* @since 1.0.0 |
| 25 |
*/ |
| 26 |
class Wdkit_User_Experience_Main { |
| 27 |
|
| 28 |
/** |
| 29 |
* Instance |
| 30 |
* |
| 31 |
* @since 1.0.0 |
| 32 |
* @var instance of the class. |
| 33 |
*/ |
| 34 |
private static $instance = null; |
| 35 |
|
| 36 |
/** |
| 37 |
* Singleton Instance Creation Method. |
| 38 |
* |
| 39 |
* This public static method ensures that only one instance of the class is loaded or can be loaded. |
| 40 |
* It follows the Singleton design pattern to create or return the existing instance of the class. |
| 41 |
* |
| 42 |
* @since 1.0.0 |
| 43 |
* @return self Instance of the class. |
| 44 |
*/ |
| 45 |
public static function instance() { |
| 46 |
if ( is_null( self::$instance ) ) { |
| 47 |
self::$instance = new self(); |
| 48 |
} |
| 49 |
|
| 50 |
return self::$instance; |
| 51 |
} |
| 52 |
|
| 53 |
/** |
| 54 |
* Constructor |
| 55 |
* |
| 56 |
* Perform some compatibility checks to make sure basic requirements are meet. |
| 57 |
* |
| 58 |
* @since 1.0.0 |
| 59 |
* @access public |
| 60 |
*/ |
| 61 |
public function __construct() { |
| 62 |
$this->wdkit_user_experience(); |
| 63 |
} |
| 64 |
|
| 65 |
/** |
| 66 |
* Initiate our hooks |
| 67 |
* |
| 68 |
* @since 1.0.0 |
| 69 |
* @access public |
| 70 |
*/ |
| 71 |
public function wdkit_user_experience() { |
| 72 |
|
| 73 |
// $tpae_exoption = get_option( 'tpae_onbording_end' ); |
| 74 |
|
| 75 |
// if ( empty( $tpae_exoption ) ) { |
| 76 |
// include WDKIT_PATH . 'includes/user-experience/class-wdkit-onbording.php'; |
| 77 |
// } |
| 78 |
} |
| 79 |
} |
| 80 |
|
| 81 |
Wdkit_User_Experience_Main::instance(); |
| 82 |
} |
| 83 |
|