aboutsummaryrefslogtreecommitdiff
path: root/app/layout/layout.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/layout/layout.phtml')
-rw-r--r--app/layout/layout.phtml8
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();