diff options
author | momo-i <momo-i@ampache> | 2009-05-19 01:54:23 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2009-05-19 01:54:23 +0000 |
commit | 1182401456cd2eb80e931e7d9449588f3241e2c9 (patch) | |
tree | e58c60aae29698831aae7553284e0d9e6b9e268f /templates | |
parent | 3cc1902b1b26cbf957ad62dfc1a4a43fe56faac0 (diff) | |
download | ampache-1182401456cd2eb80e931e7d9449588f3241e2c9.tar.gz ampache-1182401456cd2eb80e931e7d9449588f3241e2c9.tar.bz2 ampache-1182401456cd2eb80e931e7d9449588f3241e2c9.zip |
fixed login form for rtl language.
test add a few Arabic language words translated by google, please check rtl design. maybe rtl design has broken.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_login_form.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/show_login_form.inc.php b/templates/show_login_form.inc.php index 54f451b5..8d8a3803 100644 --- a/templates/show_login_form.inc.php +++ b/templates/show_login_form.inc.php @@ -25,10 +25,11 @@ if (Config::get('session_length') >= Config::get('remember_length')) { $remember_disabled = 'disabled="disabled"'; } $htmllang = str_replace("_","-",Config::get('lang')); +is_rtl(Config::get('lang')) ? $dir = 'rtl' : $dir = '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> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::get('site_charset'); ?>" /> <link rel="shortcut icon" href="<?php echo Config::get('web_path'); ?>/favicon.ico" /> |