diff options
| author | 2025-05-07 20:43:28 +0200 | |
|---|---|---|
| committer | 2025-05-07 20:43:28 +0200 | |
| commit | 4968ff7cccdb2b7fc6f8678fe42883fb63e87a6c (patch) | |
| tree | 3f65588972d94d9bc9b8cdf5c083ab99adb6d1aa /app/layout | |
| parent | 25f57beb90e1424a4fb885d335bc9ad1fa8dce69 (diff) | |
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 <html>
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/layout.phtml | 3 |
1 files changed, 2 insertions, 1 deletions
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; } ?> <!DOCTYPE html> |
