Template_Library.php
38 lines
| 1 | <?php |
| 2 | namespace SPEL\includes\template_library; |
| 3 | |
| 4 | /** |
| 5 | * Class Template_Library |
| 6 | * @package DocyCore |
| 7 | * @since 3.3.0 |
| 8 | */ |
| 9 | class Template_Library { |
| 10 | |
| 11 | public function __construct() { |
| 12 | $this->core_includes(); |
| 13 | } |
| 14 | |
| 15 | public function core_includes(): void |
| 16 | { |
| 17 | |
| 18 | // templates |
| 19 | include( __DIR__ . '/templates/Import.php'); |
| 20 | include( __DIR__ . '/templates/Init.php'); |
| 21 | include( __DIR__ . '/templates/Load.php'); |
| 22 | include( __DIR__ . '/templates/Api.php'); |
| 23 | |
| 24 | \SPEL\includes\template_library\Import::instance()->load(); |
| 25 | \SPEL\includes\template_library\Load::instance()->load(); |
| 26 | \SPEL\includes\template_library\Init::instance()->init(); |
| 27 | |
| 28 | if (!defined('DOCY_TEMPLATE_WHITE_LOGO_SRC')){ |
| 29 | define('DOCY_TEMPLATE_WHITE_LOGO_SRC', plugin_dir_url( __FILE__ ) . 'templates/assets/img/template_white_logo.svg'); |
| 30 | } |
| 31 | |
| 32 | if (!defined('DOCY_TEMPLATE_LOGO_SRC')){ |
| 33 | define('DOCY_TEMPLATE_LOGO_SRC', plugin_dir_url( __FILE__ ) . 'templates/assets/img/template_logo.svg'); |
| 34 | } |
| 35 | |
| 36 | } |
| 37 | |
| 38 | } |