aboutsummaryrefslogtreecommitdiffstats
path: root/en/about/media
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-28 23:30:36 +0100
committerfilip <filip.komar@gmail.com>2020-10-28 23:30:36 +0100
commit6996362575310e40f74da484830cbb40c341b720 (patch)
tree10e6259039fa1a9dec9c2d15c0e54fe353c22710 /en/about/media
parent251d5629bc33bf72ce3b53f2abf83cef5e9f6fce (diff)
downloadwww-6996362575310e40f74da484830cbb40c341b720.tar
www-6996362575310e40f74da484830cbb40c341b720.tar.gz
www-6996362575310e40f74da484830cbb40c341b720.tar.bz2
www-6996362575310e40f74da484830cbb40c341b720.tar.xz
www-6996362575310e40f74da484830cbb40c341b720.zip
adding RTL support for about/media page
Diffstat (limited to 'en/about/media')
-rw-r--r--en/about/media/index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/en/about/media/index.php b/en/about/media/index.php
index 8c0385310..f5e76fc87 100644
--- a/en/about/media/index.php
+++ b/en/about/media/index.php
@@ -5,8 +5,10 @@ require '../../../langs.php';
$dictionary = read_translation_file($locale, array('about/media', 'common_footer'));
$underscore_locale = locale_hyphen_underscore($locale, true); // create pt_BR from pt-br and alike
+$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('Mageia media files')?></title>
@@ -16,7 +18,7 @@ $underscore_locale = locale_hyphen_underscore($locale, true); // create pt_BR fr
<?php echo common_header(); ?>
<?php include '../../../analytics.php'; ?>
</head>
-<body class="about">
+<body class="about" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavtitle"><?php _g('Media files')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">