Mercurial > defr > drupal > core
diff modules/book/book-all-books-block.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/book/book-all-books-block.tpl.php Tue Dec 23 14:28:28 2008 +0100 @@ -0,0 +1,22 @@ +<?php +// $Id: book-all-books-block.tpl.php,v 1.1 2007/11/04 14:29:09 goba Exp $ + +/** + * @file 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 rendered as an unordered list. It is + * keyed to the parent book ID which is also the ID of the parent node + * containing an entire outline. + * + * @see template_preprocess_book_all_books_block() + */ +?> +<?php foreach ($book_menus as $book_id => $menu) : ?> +<div id="book-block-menu-<?php print $book_id; ?>" class="book-block-menu"> + <?php print $menu; ?> +</div> +<?php endforeach; ?>