summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/book/book-all-books-block.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/book/book-all-books-block.tpl.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/book/book-all-books-block.tpl.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/book/book-all-books-block.tpl.php b/kolab.org/www/drupal-7.26/modules/book/book-all-books-block.tpl.php
new file mode 100644
index 0000000..3a5a287
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/book/book-all-books-block.tpl.php
@@ -0,0 +1,23 @@
+<?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; ?>