diff options
author | filip <filip.komar@gmail.com> | 2020-10-25 23:26:57 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-25 23:26:57 +0100 |
commit | 5b3038007df710805f4e041cf1f2a2fdcf6cb607 (patch) | |
tree | 9d0df467920efe4ede81b2f97b045f37905d4542 /en/downloads | |
parent | bd0975b35a0bc7c46ea9cb7414743901d2a10098 (diff) | |
download | www-5b3038007df710805f4e041cf1f2a2fdcf6cb607.tar www-5b3038007df710805f4e041cf1f2a2fdcf6cb607.tar.gz www-5b3038007df710805f4e041cf1f2a2fdcf6cb607.tar.bz2 www-5b3038007df710805f4e041cf1f2a2fdcf6cb607.tar.xz www-5b3038007df710805f4e041cf1f2a2fdcf6cb607.zip |
adding RTL support for downloads/get page
Diffstat (limited to 'en/downloads')
-rw-r--r-- | en/downloads/get/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index 21e0fb782..846cb5f32 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -40,6 +40,7 @@ define('ALIGNMENT', 'Center'); require '../../../langs.php'; $dictionary = read_translation_file($locale, array('downloads/get', 'common_footer')); require 'lib.php'; +$rtl = is_locale_rtl($locale); // request $product = get('q'); @@ -214,7 +215,7 @@ if ($debug) $js_redirect = null; ?><!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 echo $title; ?> | <?php _g('Mageia Downloads') ?></title> @@ -227,7 +228,7 @@ if (!isset($_SERVER['APP_MODE']) || $_SERVER['APP_MODE'] == 'prod') { } ?> </head> -<body class="downloads"> +<body <?php echo $rtl ? 'style="text-align: right;"' : ''?> class="downloads"> <?php echo $hsnav; ?> <h1 id="mgnavt"><?php echo sprintf(_r('Download %s'), '<em class="tag">' . $title . '</em>')?></h1> <div id="doc4" class="yui-t7" style="margin-bottom: 0px;"> |