diff options
author | filip <filip.komar@gmail.com> | 2020-10-28 23:32:09 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-28 23:32:09 +0100 |
commit | ed3a795d34f7cd816fa8d633aa6be0e588bbdd31 (patch) | |
tree | c56dadd7add154be87cf86c4d7870d49e0c90d06 | |
parent | 9e03984142f2e2a04180cf58dade60d30736c3a4 (diff) | |
download | www-ed3a795d34f7cd816fa8d633aa6be0e588bbdd31.tar www-ed3a795d34f7cd816fa8d633aa6be0e588bbdd31.tar.gz www-ed3a795d34f7cd816fa8d633aa6be0e588bbdd31.tar.bz2 www-ed3a795d34f7cd816fa8d633aa6be0e588bbdd31.tar.xz www-ed3a795d34f7cd816fa8d633aa6be0e588bbdd31.zip |
adding RTL support for map page
-rw-r--r-- | en/map/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/en/map/index.php b/en/map/index.php index 22f3bdb69..277b45e31 100644 --- a/en/map/index.php +++ b/en/map/index.php @@ -3,6 +3,7 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../../langs.php'; $dictionary = read_translation_file($locale, array('map', 'common_footer')); +$rtl = is_locale_rtl($locale); $map = array( 'about' => array( @@ -120,7 +121,7 @@ foreach ($map as $k => $v) { $sMap .= '</ul>'; ?><!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 _g('Mageia.org site map') ?></title> @@ -130,7 +131,7 @@ $sMap .= '</ul>'; <?php include '../../analytics.php'; ?> <?php echo common_header(); ?> </head> -<body class="map"> +<body class="map" <?php echo $rtl ? 'style="text-align: right;"' : ''?>> <?php echo $hsnav; ?> <h1 id="mgnavtitle"><?php _g('Site Map'); ?></h1> <div class="container mt-4" id=""> |