diff options
author | filip <filip.komar@gmail.com> | 2020-10-29 15:08:50 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-10-29 15:08:50 +0100 |
commit | 768929aad2b8535c0562e7fc93a7b5c810ee2f6e (patch) | |
tree | 3acfeb7b24a7ec7bc939283499edc86d06b2d22f | |
parent | 91ae913acccf3ed4d26e61dc93fdb7bf156d3ef5 (diff) | |
download | www-768929aad2b8535c0562e7fc93a7b5c810ee2f6e.tar www-768929aad2b8535c0562e7fc93a7b5c810ee2f6e.tar.gz www-768929aad2b8535c0562e7fc93a7b5c810ee2f6e.tar.bz2 www-768929aad2b8535c0562e7fc93a7b5c810ee2f6e.tar.xz www-768929aad2b8535c0562e7fc93a7b5c810ee2f6e.zip |
adding RTL support for about/code-of-conduct page
-rw-r--r-- | en/about/code-of-conduct/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/en/about/code-of-conduct/index.php b/en/about/code-of-conduct/index.php index 2acad4887..21fd0695b 100644 --- a/en/about/code-of-conduct/index.php +++ b/en/about/code-of-conduct/index.php @@ -3,8 +3,10 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../../../langs.php'; $dictionary = read_translation_file($locale, array('about/code-of-conduct', '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"> @@ -16,7 +18,7 @@ $dictionary = read_translation_file($locale, array('about/code-of-conduct', 'com <?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('Code of Conduct')?></h1> <div id="doc" class="yui-t7"> |