Skip navigation
Help

book-node-export-html.tpl.php

  1. drupal
    1. 6 drupal/modules/book/book-node-export-html.tpl.php
    2. 7 drupal/modules/book/book-node-export-html.tpl.php

Default theme implementation for rendering a single node in a printer friendly outline.

Where it is collected and printed out.

Available variables:

  • $depth: Depth of the current node inside the outline.
  • $title: Node title.
  • $content: Node content.
  • $children: All the child nodes recursively rendered through this file.

See also

book-node-export-html.tpl.php

template_preprocess_book_node_export_html()

1 theme call to book-node-export-html.tpl.php

File

drupal/modules/book/book-node-export-html.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for rendering a single node in a printer
  5. * friendly outline.
  6. *
  7. * @see book-node-export-html.tpl.php
  8. * Where it is collected and printed out.
  9. *
  10. * Available variables:
  11. * - $depth: Depth of the current node inside the outline.
  12. * - $title: Node title.
  13. * - $content: Node content.
  14. * - $children: All the child nodes recursively rendered through this file.
  15. *
  16. * @see template_preprocess_book_node_export_html()
  17. */
  18. ?>
  19. <div id="node-<?php print $node->nid; ?>" class="section-<?php print $depth; ?>">
  20. <h1 class="book-heading"><?php print $title; ?></h1>
  21. <?php print $content; ?>
  22. <?php print $children; ?>
  23. </div>