diff options
| author | 2023-05-14 19:24:12 +0200 | |
|---|---|---|
| committer | 2023-05-14 19:24:12 +0200 | |
| commit | cd004cb97894c3d07c8ab209ab6ec3ce4b7f853b (patch) | |
| tree | 1813c068937de25a5eb802f700197207be249e8e /app/layout/layout.phtml | |
| parent | e65f399daa5f5653fa496ecf28bc22e27fa909d9 (diff) | |
move darkMode_auto from body to html root (#5397)
Diffstat (limited to 'app/layout/layout.phtml')
| -rw-r--r-- | app/layout/layout.phtml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index c8cea2db8..56c7e688e 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -4,10 +4,12 @@ ?> <!DOCTYPE html> <html lang="<?= FreshRSS_Context::$user_conf->language ?>" xml:lang="<?= FreshRSS_Context::$user_conf->language ?>"<?php +$class = ''; if (_t('gen.dir') === 'rtl') { - echo ' dir="rtl" class="rtl"'; + echo ' dir="rtl"'; + $class = 'rtl '; } -?>> +?> class="<?= $class ?><?= (FreshRSS_Context::$user_conf->darkMode === 'no') ? '' : 'darkMode_' . FreshRSS_Context::$user_conf->darkMode ?>"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> @@ -53,7 +55,7 @@ if (_t('gen.dir') === 'rtl') { <meta name="robots" content="noindex,nofollow" /> <?php } ?> </head> - <body class="<?= Minz_Request::actionName() ?><?= (FreshRSS_Context::$user_conf->darkMode === 'no') ? '' : ' darkMode_' . FreshRSS_Context::$user_conf->darkMode ?>"> + <body class="<?= Minz_Request::actionName() ?>"> <?php if (!Minz_Request::paramBoolean('ajax')) { flush(); |
