aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-29 15:07:05 +0100
committerfilip <filip.komar@gmail.com>2020-10-29 15:07:05 +0100
commitda1070758ba11a6c0a33611c4b4a90be8968e734 (patch)
tree72d72ca9e6e95a9a6becafda0b53433e6923492b
parent1cf6d701deabf09b44fc02d998701c60576549f1 (diff)
downloadwww-da1070758ba11a6c0a33611c4b4a90be8968e734.tar
www-da1070758ba11a6c0a33611c4b4a90be8968e734.tar.gz
www-da1070758ba11a6c0a33611c4b4a90be8968e734.tar.bz2
www-da1070758ba11a6c0a33611c4b4a90be8968e734.tar.xz
www-da1070758ba11a6c0a33611c4b4a90be8968e734.zip
adding RTL support for contact page
-rw-r--r--en/contact/index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/en/contact/index.php b/en/contact/index.php
index b133d70ce..aae0aab3c 100644
--- a/en/contact/index.php
+++ b/en/contact/index.php
@@ -3,8 +3,10 @@ define('HLANG', true);
define('ALIGNMENT', 'Center');
require '../../langs.php';
$dictionary = read_translation_file($locale, array('contact', '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('Contact Us')?></title>
@@ -15,7 +17,7 @@ $dictionary = read_translation_file($locale, array('contact', 'common_footer'));
<link rel="canonical" href="/<?php echo $locale; ?>/contact/">
<?php include '../../analytics.php'; ?>
</head>
-<body class="contact">
+<body class="contact" <?php echo $rtl ? 'style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavtitle"><?php _g('Contact Us')?></h1>
<div id="doc" class="container row">