diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-14 13:25:42 -0500 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-14 13:25:42 -0500 |
commit | b70430c9d0a07d2e5c6b35f91ffe532148edbbe1 (patch) | |
tree | f37d38009ba14547bbcef2d224ceb64cddd92ebd /modules/book | |
parent | df5c8687f1bec591a7c2076f9b0ce0e55764e890 (diff) | |
download | brdo-b70430c9d0a07d2e5c6b35f91ffe532148edbbe1.tar.gz brdo-b70430c9d0a07d2e5c6b35f91ffe532148edbbe1.tar.bz2 |
Issue #1189834 by aspilicious, chrispomeroy, Albert Volkman: Add language direction to book-export-html.tpl.php
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book-export-html.tpl.php | 2 | ||||
-rw-r--r-- | modules/book/book.module | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/book/book-export-html.tpl.php b/modules/book/book-export-html.tpl.php index 4b25a766e..86aad2882 100644 --- a/modules/book/book-export-html.tpl.php +++ b/modules/book/book-export-html.tpl.php @@ -17,7 +17,7 @@ */ ?> <!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 $dir; ?>"> <head> <title><?php print $title; ?></title> <?php print $head; ?> diff --git a/modules/book/book.module b/modules/book/book.module index 595d87d2d..66d5b8b03 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -1119,6 +1119,7 @@ function template_preprocess_book_export_html(&$variables) { $variables['language'] = $language; $variables['language_rtl'] = ($language->direction == LANGUAGE_RTL); $variables['head'] = drupal_get_html_head(); + $variables['dir'] = $language->direction ? 'rtl' : 'ltr'; } /** |