diff options
author | filip <filip.komar@gmail.com> | 2020-10-03 01:44:56 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-03 01:44:56 +0200 |
commit | 3748749839353b58d9b34b721a1e34034c63752c (patch) | |
tree | 8f6ccb62b902aba873524b404c8b5983a8a25b9b /en/index.php | |
parent | 170f242572a58ac2b1c9f91356b6b462103e0db4 (diff) | |
download | www-3748749839353b58d9b34b721a1e34034c63752c.tar www-3748749839353b58d9b34b721a1e34034c63752c.tar.gz www-3748749839353b58d9b34b721a1e34034c63752c.tar.bz2 www-3748749839353b58d9b34b721a1e34034c63752c.tar.xz www-3748749839353b58d9b34b721a1e34034c63752c.zip |
adding RTL support for index page
Diffstat (limited to 'en/index.php')
-rw-r--r-- | en/index.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/en/index.php b/en/index.php index 5bcf30753..3df18714b 100644 --- a/en/index.php +++ b/en/index.php @@ -5,6 +5,7 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../langs.php'; $dictionary = read_translation_file($locale, array('index', 'news', 'common_footer')); +$rtl = is_locale_rtl($locale); ?><!DOCTYPE html> <html dir="ltr" lang="<?php echo $locale; ?>"> @@ -219,13 +220,13 @@ $dictionary = read_translation_file($locale, array('index', 'news', 'common_foot @media (min-width: 1200px) {} </style> </head> -<body> +<body <?php echo $rtl ? 'align="right"' : ''?>> <?php echo $hsnav?> <div id="master"> <h1><a href="about/"><?php _g('Mageia, a free, community-based Linux distribution for desktop & server.'); ?></a></h1> </div> -<div id="up"> +<div <?php echo $rtl ? 'align="right"' : ''?> id="up"> <div class="container"> <div> <?php @@ -264,7 +265,7 @@ $dictionary = read_translation_file($locale, array('index', 'news', 'common_foot <div class="row"> <div class="col"> <div id="b1"> - <h2><?php _g('Change your perspective'); ?></h2> + <h2 <?php echo $rtl ? 'align="right"' : ''?>><?php _g('Change your perspective'); ?></h2> <ul id="p"><?php _g('Stable, secure operating system for desktop & server', null, 'li'); _g('Free Software, coproduced by hundreds of people', null, 'li'); |