diff options
-rw-r--r-- | en/calendar/index.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/en/calendar/index.php b/en/calendar/index.php index 906307f6a..afefad5f5 100644 --- a/en/calendar/index.php +++ b/en/calendar/index.php @@ -3,6 +3,7 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../../langs.php'; $dictionary = read_translation_file($locale, array('calendar', 'common_footer')); +$rtl = is_locale_rtl($locale); /** * @@ -54,7 +55,7 @@ foreach ($calendars as $c) { ?><!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 calendar') ?></title> @@ -65,13 +66,13 @@ foreach ($calendars as $c) { <?php echo common_header(); ?> <?php include '../../analytics.php'; ?> </head> -<body class="community"> +<body class="community" <?php echo $rtl ? 'style="text-align: right;"' : ''?>> <?php echo $hsnav?> - <div id="doc" class="yui-t7" style="margin-bottom: 0px;"> - <div id="hd" role="banner"><h1><a id="logo" href="/"><span>Mageia</span></a> + <div id="doc" class="yui-t7" style="margin-bottom: 0px;<?php echo $rtl ? ' text-align: right;' : ''?>"> + <div id="hd" role="banner"><h1<?php echo $rtl ? ' style="float: right;"' : ''?>><a id="logo" href="/"><span<?php echo $rtl ? ' style="text-align: right;"' : ''?>>Mageia</span></a> <span class="lsep">|</span> <span class="subh"><?php _g('Calendar')?></span></h1></div> <div id="bd" role="main"> - <div class="yui-g"> + <div class="yui-g" <?php echo $rtl ? 'style="text-align: right;"' : ''?>> <br /> <iframe src="<?php echo $url; ?>" style="border-width:0" |