diff options
author | filip <filip.komar@gmail.com> | 2020-10-28 23:29:06 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-28 23:29:06 +0100 |
commit | 932d7f26f2f0dd101b6d4ec2d80023c61a752aba (patch) | |
tree | f0bc5d53ba347992f59604a8bfbf074d15eca4e5 | |
parent | 3730c35e47980e82827717a32d382b9d5362f759 (diff) | |
download | www-932d7f26f2f0dd101b6d4ec2d80023c61a752aba.tar www-932d7f26f2f0dd101b6d4ec2d80023c61a752aba.tar.gz www-932d7f26f2f0dd101b6d4ec2d80023c61a752aba.tar.bz2 www-932d7f26f2f0dd101b6d4ec2d80023c61a752aba.tar.xz www-932d7f26f2f0dd101b6d4ec2d80023c61a752aba.zip |
adding RTL support for community page
-rw-r--r-- | en/community/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/en/community/index.php b/en/community/index.php index 084c25dcc..7c019c6d3 100644 --- a/en/community/index.php +++ b/en/community/index.php @@ -4,10 +4,11 @@ define('ALIGNMENT', 'Center'); require '../../langs.php'; $dictionary = read_translation_file($locale, array('community', 'news', 'common_footer')); include '../../lib/news.php'; +$rtl = is_locale_rtl($locale); ?> <!DOCTYPE html> -<html lang="<?php echo $locale; ?>"> +<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>"> <head> <meta charset="utf-8"> <title><?php _g('Mageia Community')?></title> @@ -25,7 +26,7 @@ include '../../lib/news.php'; hr { margin-top: 2em; } </style> </head> -<body class="community"> +<body class="community" <?php echo $rtl ? 'style="text-align: right;"' : ''?>> <?php echo $hsnav; ?> <header id="mgnavt"> <h1><?php _g('Mageia Community Central')?></h1> |