diff options
author | filip <filip.komar@gmail.com> | 2020-10-28 18:31:51 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-28 18:31:51 +0100 |
commit | 3730c35e47980e82827717a32d382b9d5362f759 (patch) | |
tree | 999798a59620ef16449b01cd26dcd17db568ffb2 | |
parent | 73bb9c0de331f7e8451b5e462383efa12e5cd6cf (diff) | |
download | www-3730c35e47980e82827717a32d382b9d5362f759.tar www-3730c35e47980e82827717a32d382b9d5362f759.tar.gz www-3730c35e47980e82827717a32d382b9d5362f759.tar.bz2 www-3730c35e47980e82827717a32d382b9d5362f759.tar.xz www-3730c35e47980e82827717a32d382b9d5362f759.zip |
adding RTL support for contribute page
-rw-r--r-- | en/contribute/index.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/en/contribute/index.php b/en/contribute/index.php index e9bf8ea13..8e33754a6 100644 --- a/en/contribute/index.php +++ b/en/contribute/index.php @@ -4,9 +4,10 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../../langs.php'; $dictionary = read_translation_file($locale, array('contribute', 'common_footer')); +$rtl = is_locale_rtl($locale); ?><!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 _g('Contribute to Mageia')?></title> @@ -18,10 +19,10 @@ $dictionary = read_translation_file($locale, array('contribute', 'common_footer' <?php echo common_header(); ?> <link rel="canonical" href="/<?php echo $locale; ?>/contribute/"> </head> -<body id="top" class="contribute"> +<body id="top" class="contribute" <?php echo $rtl ? 'style="text-align: right;"' : ''?>> <?php echo $hsnav; ?> <h1 id="mgnavtitle"><?php _g('Contribute to Mageia')?></h1> - <div id="doc5" class="yui-t7" style="margin-bottom: 0px;"> + <div id="doc5" class="yui-t7" style="margin-bottom: 0px; <?php echo $rtl ? 'text-align: right;"' : ''?>"> <div class="row"> <div class="para bb1" style="padding-top: 2em;"> <p><?php _g('Many people from all over the world gather to build Mageia – a Linux-based operating system <em>and</em> a <a href="../about/code-of-conduct/">lively, fun community</a> for <a href="../about/values/">building Free Software projects</a>.')?></p> |