aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-29 15:08:15 +0100
committerfilip <filip.komar@gmail.com>2020-10-29 15:08:15 +0100
commit91ae913acccf3ed4d26e61dc93fdb7bf156d3ef5 (patch)
treec1d10a7a41300887c9b2952743f1b6055e96f962
parentd33b3b313e9e551a890bb330d90572fa359113a5 (diff)
downloadwww-91ae913acccf3ed4d26e61dc93fdb7bf156d3ef5.tar
www-91ae913acccf3ed4d26e61dc93fdb7bf156d3ef5.tar.gz
www-91ae913acccf3ed4d26e61dc93fdb7bf156d3ef5.tar.bz2
www-91ae913acccf3ed4d26e61dc93fdb7bf156d3ef5.tar.xz
www-91ae913acccf3ed4d26e61dc93fdb7bf156d3ef5.zip
adding RTL support for about/reports page
-rw-r--r--en/about/reports/index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/en/about/reports/index.php b/en/about/reports/index.php
index b3384bcdb..695e57f13 100644
--- a/en/about/reports/index.php
+++ b/en/about/reports/index.php
@@ -3,8 +3,10 @@ define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../../langs.php';
$dictionary = read_translation_file($locale, array('about/reports', '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('Mageia activity &amp; financial reports')?></title>
@@ -14,7 +16,7 @@ $dictionary = read_translation_file($locale, array('about/reports', 'common_foot
<?php include '../../../analytics.php'; ?>
<?php echo common_header(); ?>
</head>
-<body class="about">
+<body class="about" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Activity Reports')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">