aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-10-29 18:21:00 +0100
committerfilip <filip.komar@gmail.com>2020-10-29 18:21:00 +0100
commit376bad8b5ccfa9b914d0cc871fb6207cdb322e37 (patch)
treebac5481c257a321e27f8cc05d21c23f53226cd72
parent62ae66ef9e83ba7678087f80cb6b7018badd8dd4 (diff)
downloadwww-376bad8b5ccfa9b914d0cc871fb6207cdb322e37.tar
www-376bad8b5ccfa9b914d0cc871fb6207cdb322e37.tar.gz
www-376bad8b5ccfa9b914d0cc871fb6207cdb322e37.tar.bz2
www-376bad8b5ccfa9b914d0cc871fb6207cdb322e37.tar.xz
www-376bad8b5ccfa9b914d0cc871fb6207cdb322e37.zip
adding RTL support for 404 page
-rw-r--r--404.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/404.php b/404.php
index 6ed9dd9cd..d16c61917 100644
--- a/404.php
+++ b/404.php
@@ -4,10 +4,11 @@ define('ALIGNMENT', 'Center');
require 'langs.php'; // needs absolute path in some form to be link depth independent
$locale = ($locale == '404.php' ? 'en' : $locale);
$dictionary = read_translation_file($locale, array('404', 'common_footer'));
+$rtl = is_locale_rtl($locale);
header('HTTP/1.0 404 Not Found');
header('Status: 404 Not Found');
?><!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('Sorry, we could not find this page.')?></title>
@@ -17,7 +18,7 @@ header('Status: 404 Not Found');
<?php echo common_header(); ?>
<?php include 'analytics.php'; ?>
</head>
-<body>
+<body<?php echo $rtl ? ' style="text-align: right;"' : ''?>>
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php _g('Sorry, we could not find this page.')?></h1>
<div id="doc" class="yui-t7" style="margin-bottom: 0px;">