diff options
author | filip <filip.komar@gmail.com> | 2020-10-28 23:31:35 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-28 23:31:35 +0100 |
commit | 9e03984142f2e2a04180cf58dade60d30736c3a4 (patch) | |
tree | 3e27cc067d814900553caca72d070890373c22ee /en/donate | |
parent | 3796db5e6dc72ef54b9a4858c27c845c22ab41f3 (diff) | |
download | www-9e03984142f2e2a04180cf58dade60d30736c3a4.tar www-9e03984142f2e2a04180cf58dade60d30736c3a4.tar.gz www-9e03984142f2e2a04180cf58dade60d30736c3a4.tar.bz2 www-9e03984142f2e2a04180cf58dade60d30736c3a4.tar.xz www-9e03984142f2e2a04180cf58dade60d30736c3a4.zip |
adding RTL support for donate page
Diffstat (limited to 'en/donate')
-rw-r--r-- | en/donate/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/en/donate/index.php b/en/donate/index.php index 937d64b3c..d8f666077 100644 --- a/en/donate/index.php +++ b/en/donate/index.php @@ -3,8 +3,10 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../../langs.php'; $dictionary = read_translation_file($locale, array('donate', 'common_footer')); +$rtl = is_locale_rtl($locale); + ?><!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('Donate to Mageia')?></title> @@ -22,7 +24,7 @@ $dictionary = read_translation_file($locale, array('donate', 'common_footer')); <script src="//static.mageia.org/g/js/treasurer.js"></script> <script>donate_page();</script> </head> -<body class="donate"> +<body class="donate" <?php echo $rtl ? 'style="text-align: right;"' : ''?>> <?php echo $hsnav; ?> <h1 id="mgnavt"><?php _g('Donate to Mageia')?></h1> <div id="doc2" class="yui-t7" style="margin-bottom: 0px;"> |