From 4968ff7cccdb2b7fc6f8678fe42883fb63e87a6c Mon Sep 17 00:00:00 2001 From: Inverle Date: Wed, 7 May 2025 20:43:28 +0200 Subject: Provide theme class for CSS (#7559) * Provide theme class for CSS * Replace more common characters with - * Fix test error * Make requested changes * Make more requested changes * Use htmlspecialchars_decode instead * Replace whitespace * One more whitespace character * Simplify and move class to --------- Co-authored-by: Alexandre Alapetite --- app/layout/layout.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/layout/layout.phtml') diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index e4fb5f2ae..5e8b841ce 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -8,8 +8,9 @@ $dir = ' dir="rtl"'; $class = 'rtl '; } + $class .= 'theme_' . FreshRSS_Context::userConf()->theme; if (FreshRSS_Context::userConf()->darkMode !== 'no') { - $class .= 'darkMode_' . FreshRSS_Context::userConf()->darkMode; + $class .= ' darkMode_' . FreshRSS_Context::userConf()->darkMode; } ?> -- cgit v1.2.3