5 * Default theme implementation to navigate books.
7 * Presented under nodes that are a part of book outlines.
10 * - $tree: The immediate children of the current node rendered as an unordered
12 * - $current_depth: Depth of the current node within the book outline. Provided
14 * - $prev_url: URL to the previous node.
15 * - $prev_title: Title of the previous node.
16 * - $parent_url: URL to the parent node.
17 * - $parent_title: Title of the parent node. Not printed by default. Provided
19 * - $next_url: URL to the next node.
20 * - $next_title: Title of the next node.
21 * - $has_links: Flags TRUE whenever the previous, parent or next data has a
23 * - $book_id: The book ID of the current outline being viewed. Same as the node
24 * ID containing the entire outline. Provided for context.
25 * - $book_url: The book/node URL of the current outline being viewed. Provided
26 * as an option. Not used by default.
27 * - $book_title: The book/node title of the current outline being viewed.
28 * Provided as an option. Not used by default.
30 * @see template_preprocess_book_navigation()
35 <?php
if ($tree ||
$has_links): ?
>
36 <div id
="book-navigation-<?php print $book_id; ?>" class="book-navigation">
39 <?php
if ($has_links): ?
>
40 <div
class="page-links clearfix">
41 <?php
if ($prev_url): ?
>
42 <a href
="<?php print $prev_url; ?>" class="page-previous" title
="<?php print t('Go to previous page'); ?>"><?php
print t('‹ ') . $prev_title; ?
></a
>
44 <?php
if ($parent_url): ?
>
45 <a href
="<?php print $parent_url; ?>" class="page-up" title
="<?php print t('Go to parent page'); ?>"><?php
print t('up'); ?
></a
>
47 <?php
if ($next_url): ?
>
48 <a href
="<?php print $next_url; ?>" class="page-next" title
="<?php print t('Go to next page'); ?>"><?php
print $next_title . t(' ›'); ?
></a
>