| 1 |
<?php |
| 2 |
/** |
| 3 |
* The file that defines the core plugin class |
| 4 |
* |
| 5 |
* @link https://posimyth.com/ |
| 6 |
* @since 1.1.1 |
| 7 |
* |
| 8 |
* @package Wdesignkit |
| 9 |
* @subpackage Wdesignkit/includes |
| 10 |
*/ |
| 11 |
|
| 12 |
/** |
| 13 |
* Exit if accessed directly. |
| 14 |
* */ |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
if ( ! class_exists( 'Wdkit_Dashboard_Main' ) ) { |
| 20 |
|
| 21 |
/** |
| 22 |
* It is wdesignkit Main Class |
| 23 |
* |
| 24 |
* @since 1.1.1 |
| 25 |
*/ |
| 26 |
class Wdkit_Dashboard_Main { |
| 27 |
|
| 28 |
/** |
| 29 |
* Member Variable |
| 30 |
* |
| 31 |
* @var instance |
| 32 |
*/ |
| 33 |
private static $instance; |
| 34 |
|
| 35 |
/** |
| 36 |
* Initiator |
| 37 |
*/ |
| 38 |
public static function get_instance() { |
| 39 |
if ( ! isset( self::$instance ) ) { |
| 40 |
self::$instance = new self(); |
| 41 |
} |
| 42 |
|
| 43 |
return self::$instance; |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* Define the core functionality of the plugin. |
| 48 |
*/ |
| 49 |
public function __construct() { |
| 50 |
include WDKIT_INCLUDES . 'admin/hooks/class-wdkit-kit-import-hook.php'; |
| 51 |
include WDKIT_INCLUDES . 'admin/hooks/class-wdkit-import-temp-ajax.php'; |
| 52 |
include WDKIT_INCLUDES . 'admin/hooks/class-wdkit-copy-paste-ajax.php'; |
| 53 |
include WDKIT_INCLUDES . 'admin/hooks/class-wdkit-preset-ajax.php'; |
| 54 |
include WDKIT_INCLUDES . 'admin/hooks/class-wdkit-login-ajax.php'; |
| 55 |
include WDKIT_INCLUDES . 'admin/hooks/class-wdkit-widget-ajax.php'; |
| 56 |
include WDKIT_INCLUDES . 'admin/class-nexter-block-render.php'; |
| 57 |
include WDKIT_INCLUDES . 'admin/class-api.php'; |
| 58 |
include WDKIT_INCLUDES . 'admin/api/class-wdkit-code-snippet.php'; |
| 59 |
include WDKIT_INCLUDES . 'admin/api/class-wdkit-theme-builder.php'; |
| 60 |
include WDKIT_INCLUDES . 'admin/api/class-wdkit-empty-search-handling.php'; |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
Wdkit_Dashboard_Main::get_instance(); |
| 65 |
} |