| 1 |
<?php |
| 2 |
/** |
| 3 |
* Initialize Plugin |
| 4 |
* |
| 5 |
* @package Copy the Code |
| 6 |
* @since 1.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! class_exists( 'Copy_The_Code' ) ) : |
| 10 |
|
| 11 |
/** |
| 12 |
* Copy the Code |
| 13 |
* |
| 14 |
* @since 1.0.0 |
| 15 |
*/ |
| 16 |
class Copy_The_Code { |
| 17 |
|
| 18 |
/** |
| 19 |
* Instance |
| 20 |
* |
| 21 |
* @access private |
| 22 |
* @var object Class Instance. |
| 23 |
* @since 1.0.0 |
| 24 |
*/ |
| 25 |
private static $instance; |
| 26 |
|
| 27 |
/** |
| 28 |
* Initiator |
| 29 |
* |
| 30 |
* @since 1.0.0 |
| 31 |
* @return object initialized object of class. |
| 32 |
*/ |
| 33 |
public static function get_instance() { |
| 34 |
if ( ! isset( self::$instance ) ) { |
| 35 |
self::$instance = new self; |
| 36 |
} |
| 37 |
return self::$instance; |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* Constructor |
| 42 |
*/ |
| 43 |
public function __construct() { |
| 44 |
require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code-update.php'; |
| 45 |
require_once COPY_THE_CODE_DIR . 'classes/class-copy-the-code-page.php'; |
| 46 |
} |
| 47 |
|
| 48 |
} |
| 49 |
|
| 50 |
/** |
| 51 |
* Kicking this off by calling 'get_instance()' method |
| 52 |
*/ |
| 53 |
Copy_The_Code::get_instance(); |
| 54 |
|
| 55 |
endif; |
| 56 |
|