Full ELMS Learning Network documentation
book-all-books-block.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 modules/book/book-all-books-block.tpl.php
- cle7 modules/book/book-all-books-block.tpl.php
- ecd7 modules/book/book-all-books-block.tpl.php
- elmsmedia7 modules/book/book-all-books-block.tpl.php
- harmony7 modules/book/book-all-books-block.tpl.php
- icor7 modules/book/book-all-books-block.tpl.php
- meedjum_blog7 modules/book/book-all-books-block.tpl.php
- mooc7 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.
See also
template_preprocess_book_all_books_block()
2 string references to the theme hook from book-all-books-block.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- book_block_view in modules/
book/ book.module - Implements hook_block_view().
- book_theme in modules/
book/ book.module - Implements hook_theme().
File
modules/book/book-all-books-block.tpl.phpView source
- <?php
-
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_book_all_books_block()
- *
- * @ingroup themeable
- */
- ?>
- <?php foreach ($book_menus as $book_id => $menu): ?>
- <div id="book-block-menu-<?php print $book_id; ?>" class="book-block-menu">
- <?php print render($menu); ?>
- </div>
- <?php endforeach; ?>
-