class-tb-admin.php
1 week ago
class-tb-block-helper.php
1 week ago
class-tb-config.php
1 week ago
class-tb-core-plugin.php
1 week ago
class-tb-helper.php
1 week ago
class-tb-init-blocks.php
1 week ago
class-tb-loader.php
1 week ago
class-tb-core-plugin.php
63 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * TB Core Plugin. |
| 5 | * |
| 6 | * @package TB |
| 7 | */ |
| 8 | if (!defined('ABSPATH')) { |
| 9 | exit; // Exit if accessed directly. |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * TB_Core_Plugin. |
| 14 | * |
| 15 | * @package TB |
| 16 | */ |
| 17 | class TB_Core_Plugin { |
| 18 | |
| 19 | /** |
| 20 | * Member Variable |
| 21 | * |
| 22 | * @var instance |
| 23 | */ |
| 24 | private static $instance; |
| 25 | |
| 26 | /** |
| 27 | * Initiator |
| 28 | */ |
| 29 | public static function get_instance() { |
| 30 | if (!isset(self::$instance)) { |
| 31 | self::$instance = new self; |
| 32 | } |
| 33 | return self::$instance; |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Constructor |
| 38 | */ |
| 39 | public function __construct() { |
| 40 | |
| 41 | $this->includes(); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Includes. |
| 46 | * |
| 47 | * @since 1.0.0 |
| 48 | */ |
| 49 | private function includes() { |
| 50 | |
| 51 | // require( TB_DIR . 'lib/notices/class-astra-notices.php' ); |
| 52 | require( TB_DIR . 'src/tb-helper/class-tb-admin.php' ); |
| 53 | require( TB_DIR . 'src/tb-helper/class-tb-init-blocks.php' ); |
| 54 | } |
| 55 | |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Prepare if class 'TB_Core_Plugin' exist. |
| 60 | * Kicking this off by calling 'get_instance()' method |
| 61 | */ |
| 62 | TB_Core_Plugin::get_instance(); |
| 63 |