From 9485cd0769a77cb27f19cc878f3e55f7ac9e701a Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Fri, 28 Nov 2025 18:44:39 +0200 Subject: [PATCH] Adds a hook to load plugin assets --- app/templates/page-header.php | 4 ++++ public_html/index.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/templates/page-header.php b/app/templates/page-header.php index c4f0db3..b0d6398 100644 --- a/app/templates/page-header.php +++ b/app/templates/page-header.php @@ -53,6 +53,10 @@ }); + $page ?? null, 'action' => $_GET['action'] ?? null, 'app_root' => $app_root ?? '']); +?> <?= htmlspecialchars($config['site_name']) ?> diff --git a/public_html/index.php b/public_html/index.php index 5e80777..b328d21 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -108,7 +108,7 @@ if (!isset($page)) { } // List of pages that don't require authentication -$public_pages = ['login', 'help', 'about']; +$public_pages = ['login', 'help', 'about', 'theme-asset', 'plugin-asset']; // Let plugins filter/extend public_pages $public_pages = filter_public_pages($public_pages);