aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/layout.user.php
diff options
context:
space:
mode:
authorali ghorbani <ghorbani.ali.developer@gmail.com>2023-12-15 20:30:22 +0330
committerJoas Schilling <coding@schilljs.com>2024-09-23 16:59:20 +0200
commit2b7efd66b6deb7fca62046a54b8ca0fe0310fe34 (patch)
treeace46e1cd61f0b08261468e7c0a923b640bcfbba /core/templates/layout.user.php
parenta8ee7424ad12f923b681856b1e282905a10a081e (diff)
downloadnextcloud-server-2b7efd66b6deb7fca62046a54b8ca0fe0310fe34.tar.gz
nextcloud-server-2b7efd66b6deb7fca62046a54b8ca0fe0310fe34.zip
feat(rtl): Set layout direction based on language
Signed-off-by: ali ghorbani <ghorbani.ali.developer@gmail.com>
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r--core/templates/layout.user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index fc0f3af2d09..7f5322fee29 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -51,7 +51,7 @@ p($theme->getTitle());
<?php emit_script_loading_tags($_); ?>
<?php print_unescaped($_['headers']); ?>
</head>
- <body id="<?php p($_['bodyid']);?>" <?php foreach ($_['enabledThemes'] as $themeId) {
+ <body dir="<?php p($_['direction']); ?>" id="<?php p($_['bodyid']);?>" <?php foreach ($_['enabledThemes'] as $themeId) {
p("data-theme-$themeId ");
}?> data-themes=<?php p(join(',', $_['enabledThemes'])) ?>>
<?php include 'layout.noscript.warning.php'; ?>