aboutsummaryrefslogtreecommitdiffstats
path: root/en/5/index.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 16:53:21 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 16:53:21 +0100
commit8c5770b5078f573edddb642bd4799d46e30a4927 (patch)
tree6b706e37be439d9b772732cd3f88b4aac69e676e /en/5/index.php
parenta47a58f1aac6b8cd9be40b8cb4875a8bf182a9d7 (diff)
downloadwww-8c5770b5078f573edddb642bd4799d46e30a4927.tar
www-8c5770b5078f573edddb642bd4799d46e30a4927.tar.gz
www-8c5770b5078f573edddb642bd4799d46e30a4927.tar.bz2
www-8c5770b5078f573edddb642bd4799d46e30a4927.tar.xz
www-8c5770b5078f573edddb642bd4799d46e30a4927.zip
adding RTL support for mga5 page
Diffstat (limited to 'en/5/index.php')
-rw-r--r--en/5/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/en/5/index.php b/en/5/index.php
index c93db2491..d8af2bb6e 100644
--- a/en/5/index.php
+++ b/en/5/index.php
@@ -2,11 +2,12 @@
define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../langs.php';
+$rtl = is_locale_rtl($locale);
$dictionary = read_translation_file($locale, array('5', 'common_footer'));
?>
<!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 5.1')?></title>
@@ -15,7 +16,7 @@ $dictionary = read_translation_file($locale, array('5', 'common_footer'));
<?php include '../../analytics.php'; ?>
<style> .fixed-img{ max-height:342px } </style>
</head>
-<body class="downloads">
+<body <?php echo $rtl ? 'style="text-align: right;"' : ''?> class="downloads">
<?php echo $hsnav; ?>
<h1 id="mgnavt"><a href="../5/">Mageia 5.1</a></h1>