summaryrefslogtreecommitdiffstats
path: root/templates/header.inc.php
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2009-05-06 13:15:22 +0000
committermomo-i <momo-i@ampache>2009-05-06 13:15:22 +0000
commitda6a97ce353e94f0f68968a02679364419cd7576 (patch)
tree1c9310441d1f2c051e7e6a94a6f29c68ad7cca75 /templates/header.inc.php
parentdd9ecaa106f5d6f137b6ecb772830db03269ee0b (diff)
downloadampache-da6a97ce353e94f0f68968a02679364419cd7576.tar.gz
ampache-da6a97ce353e94f0f68968a02679364419cd7576.tar.bz2
ampache-da6a97ce353e94f0f68968a02679364419cd7576.zip
Update HTML header for RTL language.
add debug_event for stream type check
Diffstat (limited to 'templates/header.inc.php')
-rw-r--r--templates/header.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/header.inc.php b/templates/header.inc.php
index 5fb07994..1566aa44 100644
--- a/templates/header.inc.php
+++ b/templates/header.inc.php
@@ -24,9 +24,10 @@ if (INIT_LOADED != '1') { exit; }
$web_path = Config::get('web_path');
$htmllang = str_replace("_","-",Config::get('lang'));
$location = get_location();
+$dir = is_rtl() ? "rtl" : "ltr";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>" dir="<?php echo $dir;?>">
<head>
<link rel="shortcut icon" href="<?php echo $web_path; ?>/favicon.ico" />