aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 17:18:58 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 17:18:58 +0100
commit0fee5144c10b0d5141886affe0c4a44dd4306ec2 (patch)
treebd503f05d3effc55eadecbc0e02399b6720b459b
parent8c5770b5078f573edddb642bd4799d46e30a4927 (diff)
downloadwww-0fee5144c10b0d5141886affe0c4a44dd4306ec2.tar
www-0fee5144c10b0d5141886affe0c4a44dd4306ec2.tar.gz
www-0fee5144c10b0d5141886affe0c4a44dd4306ec2.tar.bz2
www-0fee5144c10b0d5141886affe0c4a44dd4306ec2.tar.xz
www-0fee5144c10b0d5141886affe0c4a44dd4306ec2.zip
adding RTL support for mga6 page
-rw-r--r--en/6/download_index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/en/6/download_index.php b/en/6/download_index.php
index 09cba0386..48c6c795c 100644
--- a/en/6/download_index.php
+++ b/en/6/download_index.php
@@ -14,6 +14,7 @@ define('ALIGNMENT', 'Center');
require '../../langs.php';
$dictionary = read_translation_file($locale, array('6', 'common_footer'));
+$rtl = is_locale_rtl($locale);
function get_mageia($name, $version, $release)
{
@@ -58,7 +59,7 @@ function get_image($ttl, $src, $sty){
?>
<!DOCTYPE html>
-<html dir="ltr" lang="<?php echo $locale; ?>">
+<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php echo sprintf(_g('Download').' '. '%s %s %s', $name, $version, $release)?></title>
@@ -86,7 +87,7 @@ input[type="radio"], input[type="submit"], .popover-content {
}
</style>
</head>
-<body class="release downloads">
+<body class="release downloads" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php echo sprintf(_g('Download') . ' <strong>%s %s %s</strong>',$name, $version, $release)?></h1>