diff options
author | momo-i <momo-i@ampache> | 2010-05-14 02:45:29 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2010-05-14 02:45:29 +0000 |
commit | 9e98e5b261f213aa6a37471a63b740c190090e31 (patch) | |
tree | f6f343c2a24e1bb139cb8cc2d1084f22b10bc081 /templates/header.inc.php | |
parent | c4ea23c83bc3744a196fcda23c1551ecc258333d (diff) | |
download | ampache-9e98e5b261f213aa6a37471a63b740c190090e31.tar.gz ampache-9e98e5b261f213aa6a37471a63b740c190090e31.tar.bz2 ampache-9e98e5b261f213aa6a37471a63b740c190090e31.zip |
test add: layout for rtl language.
The file was just copied except classic theme.
classic theme was only replaced from right(or left) to left(or right).
ex: float: left -> float: right
Diffstat (limited to 'templates/header.inc.php')
-rw-r--r-- | templates/header.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/header.inc.php b/templates/header.inc.php index 41df950c..fc5ff91e 100644 --- a/templates/header.inc.php +++ b/templates/header.inc.php @@ -26,6 +26,12 @@ $web_path = Config::get('web_path'); $htmllang = str_replace("_","-",Config::get('lang')); $location = get_location(); $dir = is_rtl(Config::get('lang')) ? "rtl" : "ltr"; +$themecss = Config::get('theme_path') . '/templates/'; +$css = ($dir == 'rtl') ? $themecss.'default-rtl.css' : $themecss.'default.css'; +$cssdir = Config::get('prefix').$themecss; +if(!is_file($cssdir.'default-rtl.css')) { + $css = $themecss.'default.css'; +} ?> <!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; ?>" dir="<?php echo $dir;?>"> @@ -41,7 +47,7 @@ if (Config::get('use_rss')) { ?> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=<?php echo Config::get('site_charset'); ?>" /> <title><?php echo scrub_out(Config::get('site_title')); ?> - <?php echo $location['title']; ?></title> <link rel="stylesheet" href="<?php echo $web_path; ?>/templates/base.css" type="text/css" media="screen" /> -<link rel="stylesheet" href="<?php echo $web_path; ?><?php echo Config::get('theme_path'); ?>/templates/default.css" type="text/css" media="screen" /> +<link rel="stylesheet" href="<?php echo $web_path; ?><?php echo $css; ?>" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo $web_path; ?>/templates/print.css" type="text/css" media="print" /> </head> <body> |