From 4715a26af744fd51c5bed62cb17c44563f896311 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Thu, 22 May 2025 15:13:23 +0300 Subject: [PATCH] Initialize themes system --- public_html/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public_html/index.php b/public_html/index.php index 1daf66c..5e22ac0 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -23,6 +23,10 @@ require_once __DIR__ . '/../app/core/PluginManager.php'; use App\Core\HookDispatcher; use App\Core\PluginManager; +// Initialize themes system +require_once __DIR__ . '/../app/helpers/theme.php'; +use app\Helpers\Theme; + // Global allowed URLs registration register_hook('filter_allowed_urls', function($urls) { if (isset($GLOBALS['plugin_controllers']) && is_array($GLOBALS['plugin_controllers'])) { @@ -105,7 +109,7 @@ $allowed_urls = [ 'conferences','participants','components', 'graphs','latest','livejs','agents', 'profile','credentials','config','security', - 'settings', + 'settings','theme', 'status', 'help','about', 'login','logout',