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