From 8eb340c3ca9f30e48d8019f16d3b2a4385881192 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 1 Aug 2025 17:20:05 +0300 Subject: make default light/dark themes configurable, add support for main application and login form --- include/functions.php | 4 ++-- include/login_form.php | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index ae403ca84..24b5c8538 100644 --- a/include/functions.php +++ b/include/functions.php @@ -464,14 +464,14 @@ return false; } - function get_theme_path(string $theme): string { + function get_theme_path(string $theme, string $default = ""): string { $check = "themes/$theme"; if (file_exists($check)) return $check; $check = "themes.local/$theme"; if (file_exists($check)) return $check; - return ""; + return $default; } function theme_exists(string $theme): bool { diff --git a/include/login_form.php b/include/login_form.php index 8fa578c11..e601ca619 100755 --- a/include/login_form.php +++ b/include/login_form.php @@ -33,6 +33,11 @@ require({cache:{}}); + +