| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file book-export-html.tpl.php 5 * Default theme implementation for printed version of book outline. 6 * 7 * Available variables: 8 * - $title: Top level node title. 9 * - $head: Header tags. 10 * - $language: Language code. e.g. "en" for english. 11 * - $language_rtl: TRUE or FALSE depending on right to left language scripts. 12 * - $base_url: URL to home page. 13 * - $content: Nodes within the current outline rendered through 14 * book-node-export-html.tpl.php. 15 * 16 * @see template_preprocess_book_export_html() 17 */ 18 ?> 19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 20 <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>"> 21 <head> 22 <?php print $head; ?> 23 <title><?php print $title; ?></title> 24 <base href="<?php print $base_url; ?>" /> 25 <link type="text/css" rel="stylesheet" href="misc/print.css" /> 26 <?php if ($language_rtl): ?> 27 <link type="text/css" rel="stylesheet" href="misc/print-rtl.css" /> 28 <?php endif; ?> 29 </head> 30 <body> 31 <?php 32 /** 33 * The given node is /embedded to its absolute depth in a top level 34 * section/. For example, a child node with depth 2 in the hierarchy is 35 * contained in (otherwise empty) <div> elements corresponding to 36 * depth 0 and depth 1. This is intended to support WYSIWYG output - e.g., 37 * level 3 sections always look like level 3 sections, no matter their 38 * depth relative to the node selected to be exported as printer-friendly 39 * HTML. 40 */ 41 $div_close = ''; 42 ?> 43 <?php for ($i = 1; $i < $depth; $i++) : ?> 44 <div class="section-<?php print $i; ?>"> 45 <?php $div_close .= '</div>'; ?> 46 <?php endfor; ?> 47 48 <?php print $contents; ?> 49 <?php print $div_close; ?> 50 51 </body> 52 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |