diff options
author | filip <filip.komar@gmail.com> | 2020-10-25 23:25:44 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-25 23:25:44 +0100 |
commit | bd0975b35a0bc7c46ea9cb7414743901d2a10098 (patch) | |
tree | 2c1906126140fe43b4409b11e6f110cbce4ea490 | |
parent | 2882b91642de93238a530d4d064a03335aacbcce (diff) | |
download | www-bd0975b35a0bc7c46ea9cb7414743901d2a10098.tar www-bd0975b35a0bc7c46ea9cb7414743901d2a10098.tar.gz www-bd0975b35a0bc7c46ea9cb7414743901d2a10098.tar.bz2 www-bd0975b35a0bc7c46ea9cb7414743901d2a10098.tar.xz www-bd0975b35a0bc7c46ea9cb7414743901d2a10098.zip |
adding RTL support for about page
-rw-r--r-- | en/about/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/en/about/index.php b/en/about/index.php index bf0da10c5..0a2f64d6b 100644 --- a/en/about/index.php +++ b/en/about/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('about', 'common_footer')); ?><!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 _g('About Mageia'); ?></title> @@ -24,7 +25,7 @@ $dictionary = read_translation_file($locale, array('about', 'common_footer')); </style> <?php echo common_header(); ?> </head> -<body class="about"> +<body <?php echo $rtl ? 'style="text-align: right;"' : ''?> class="about"> <?php echo $hsnav; ?> <h1 id="mgnavtitle"><?php _g('About Mageia')?></h1> <div id="doc" class="yui-t7" style="margin-bottom: 0px;"> |