diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-24 09:42:53 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-24 09:42:53 +0000 |
commit | 7186c4433e85f4f307466e9706b2a62e30a9b173 (patch) | |
tree | 033ae5873052a6108a346da9e259fcdeef3a9ecd /themes | |
parent | ff4fd98430669b6355d91c2a5042b116d840d3da (diff) | |
download | brdo-7186c4433e85f4f307466e9706b2a62e30a9b173.tar.gz brdo-7186c4433e85f4f307466e9706b2a62e30a9b173.tar.bz2 |
#208768 by dvessel, Arancaytar: language direction should be in the HTML source, so it is more accessible even without CSS
Diffstat (limited to 'themes')
-rw-r--r-- | themes/bluemarine/page.tpl.php | 2 | ||||
-rw-r--r-- | themes/chameleon/chameleon.theme | 5 | ||||
-rw-r--r-- | themes/garland/maintenance-page.tpl.php | 2 | ||||
-rw-r--r-- | themes/garland/page.tpl.php | 2 | ||||
-rw-r--r-- | themes/pushbutton/page.tpl.php | 2 |
5 files changed, 7 insertions, 6 deletions
diff --git a/themes/bluemarine/page.tpl.php b/themes/bluemarine/page.tpl.php index c8d07c3e6..b83111aa1 100644 --- a/themes/bluemarine/page.tpl.php +++ b/themes/bluemarine/page.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> <head> <title><?php print $head_title ?></title> diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index 4536ec282..8f3a51904 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -14,7 +14,8 @@ function chameleon_theme($existing, $type, $theme, $path) { } function chameleon_page($content, $show_blocks = TRUE, $show_messages = TRUE) { - $language = isset($GLOBALS['language']) ? $GLOBALS['language']->language : NULL; + $language = $GLOBALS['language']->language; + $direction = $GLOBALS['language']->direction ? 'rtl' : 'ltr'; if (theme_get_setting('toggle_favicon')) { drupal_set_html_head('<link rel="shortcut icon" href="'. check_url(theme_get_setting('favicon')) .'" type="image/x-icon" />'); @@ -27,7 +28,7 @@ function chameleon_page($content, $show_blocks = TRUE, $show_messages = TRUE) { $blocks_right = theme_blocks('right'); $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; - $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"$language\" xml:lang=\"$language\">\n"; + $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"$language\" xml:lang=\"$language\" dir=\"$direction\">\n"; $output .= "<head>\n"; $output .= " <title>". ($title ? strip_tags($title) ." | ". variable_get("site_name", "Drupal") : variable_get("site_name", "Drupal") ." | ". variable_get("site_slogan", "")) ."</title>\n"; $output .= drupal_get_html_head(); diff --git a/themes/garland/maintenance-page.tpl.php b/themes/garland/maintenance-page.tpl.php index 3621dbead..e3d1b9d66 100644 --- a/themes/garland/maintenance-page.tpl.php +++ b/themes/garland/maintenance-page.tpl.php @@ -13,7 +13,7 @@ */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> <head> <title><?php print $head_title ?></title> <?php print $head ?> diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php index eb88470d6..92559d814 100644 --- a/themes/garland/page.tpl.php +++ b/themes/garland/page.tpl.php @@ -2,7 +2,7 @@ // $Id$ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> <head> <title><?php print $head_title ?></title> <?php print $head ?> diff --git a/themes/pushbutton/page.tpl.php b/themes/pushbutton/page.tpl.php index 946d11c9e..8fd960d66 100644 --- a/themes/pushbutton/page.tpl.php +++ b/themes/pushbutton/page.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?><!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" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> <head> <title><?php print $head_title ?></title> <meta http-equiv="Content-Style-Type" content="text/css" /> |