Skip navigation
Help

book-all-books-block.tpl.php

  1. drupal
    1. 6 drupal/modules/book/book-all-books-block.tpl.php
    2. 7 drupal/modules/book/book-all-books-block.tpl.php

Default theme implementation for rendering book outlines within a block. This template is used only when the block is configured to "show block on all pages" which presents Multiple independent books on all pages.

Available variables:

  • $book_menus: Array of book outlines keyed to the parent book ID. Call render() on each to print it as an unordered list.

File

drupal/modules/book/book-all-books-block.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for rendering book outlines within a block.
  5. * This template is used only when the block is configured to "show block on
  6. * all pages" which presents Multiple independent books on all pages.
  7. *
  8. * Available variables:
  9. * - $book_menus: Array of book outlines keyed to the parent book ID. Call
  10. * render() on each to print it as an unordered list.
  11. */
  12. ?>
  13. <?php foreach ($book_menus as $book_id => $menu) : ?>
  14. <div id="book-block-menu-<?php print $book_id; ?>" class="book-block-menu">
  15. <?php print render($menu); ?>
  16. </div>
  17. <?php endforeach; ?>