Full ELMS Learning Network documentation
book-export-html.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 modules/book/book-export-html.tpl.php
- cle7 modules/book/book-export-html.tpl.php
- ecd7 modules/book/book-export-html.tpl.php
- elmsmedia7 modules/book/book-export-html.tpl.php
- harmony7 modules/book/book-export-html.tpl.php
- icor7 modules/book/book-export-html.tpl.php
- meedjum_blog7 modules/book/book-export-html.tpl.php
- mooc7 modules/book/book-export-html.tpl.php
Default theme implementation for printed version of book outline.
Available variables:
- $title: Top level node title.
- $head: Header tags.
- $language: Language code. e.g. "en" for english.
- $language_rtl: TRUE or FALSE depending on right to left language scripts.
- $base_url: URL to home page.
- $contents: Nodes within the current outline rendered through book-node-export-html.tpl.php.
See also
template_preprocess_book_export_html()
1 theme call to book-export-html.tpl.php
- book_export_html in modules/
book/ book.pages.inc - Generates HTML for export when invoked by book_export().
1 string reference to the theme hook from book-export-html.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- book_theme in modules/
book/ book.module - Implements hook_theme().
File
modules/book/book-export-html.tpl.phpView source
- <?php
-
- /**
- * @file
- * Default theme implementation for printed version of book outline.
- *
- * Available variables:
- * - $title: Top level node title.
- * - $head: Header tags.
- * - $language: Language code. e.g. "en" for english.
- * - $language_rtl: TRUE or FALSE depending on right to left language scripts.
- * - $base_url: URL to home page.
- * - $contents: Nodes within the current outline rendered through
- * book-node-export-html.tpl.php.
- *
- * @see template_preprocess_book_export_html()
- *
- * @ingroup themeable
- */
- ?>
- <!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; ?>" dir="<?php print $dir; ?>">
- <head>
- <title><?php print $title; ?></title>
- <?php print $head; ?>
- <base href="<?php print $base_url; ?>" />
- <link type="text/css" rel="stylesheet" href="misc/print.css" />
- <?php if ($language_rtl): ?>
- <link type="text/css" rel="stylesheet" href="misc/print-rtl.css" />
- <?php endif; ?>
- </head>
- <body>
- <?php
- /**
- * The given node is /embedded to its absolute depth in a top level
- * section/. For example, a child node with depth 2 in the hierarchy is
- * contained in (otherwise empty) <div> elements corresponding to
- * depth 0 and depth 1. This is intended to support WYSIWYG output - e.g.,
- * level 3 sections always look like level 3 sections, no matter their
- * depth relative to the node selected to be exported as printer-friendly
- * HTML.
- */
- $div_close = '';
- ?>
- <?php for ($i = 1; $i < $depth; $i++): ?>
- <div class="section-<?php print $i; ?>">
- <?php $div_close .= '</div>'; ?>
- <?php endfor; ?>
- <?php print $contents; ?>
- <?php print $div_close; ?>
- </body>
- </html>
-