/[drupal]/drupal/modules/book/book-export-html.tpl.php
ViewVC logotype

Contents of /drupal/modules/book/book-export-html.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


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

  ViewVC Help
Powered by ViewVC 1.1.2