sakura/app/functions.php
2021-08-08 11:57:48 +08:00

30 lines
803 B
PHP

<?php
// namespace Sakura;
define('SAKURA_VERSION', wp_get_theme()->get('Version'));
define('SAKURA_TEXT_DOMAIN', wp_get_theme()->get('TextDomain'));
define('SAKURA_DEVEPLOMENT', false);
define('SAKURA_DEVEPLOMENT_HOST', 'http://127.0.0.1:9000');
// PHP loaders
require_once(__DIR__ . '/loader.php');
new Sakura\Helpers\SetupHelper();
new Sakura\Helpers\WhoopsHelper();
new Sakura\Helpers\ViteHelper();
new Sakura\Helpers\AdminPageHelper();
new Sakura\Helpers\CustomMenuMetaFieldsHelper();
new Sakura\Helpers\CommentHelper();
new Sakura\Helpers\PostQueryHelper('post');
new Sakura\Routers\ApiRouter();
new Sakura\Routers\PagesRouter();
function sakura_options(string $namespace, $default)
{
$CF = new Sakura\Controllers\OptionController();
return $CF->sakura_options($namespace, $default);
}