annotate modules/book/book-navigation.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
rev   line source
webmaster@1 1 <?php
webmaster@1 2 // $Id: book-navigation.tpl.php,v 1.1 2007/11/04 14:29:09 goba Exp $
webmaster@1 3
webmaster@1 4 /**
webmaster@1 5 * @file book-navigation.tpl.php
webmaster@1 6 * Default theme implementation to navigate books. Presented under nodes that
webmaster@1 7 * are a part of book outlines.
webmaster@1 8 *
webmaster@1 9 * Available variables:
webmaster@1 10 * - $tree: The immediate children of the current node rendered as an
webmaster@1 11 * unordered list.
webmaster@1 12 * - $current_depth: Depth of the current node within the book outline.
webmaster@1 13 * Provided for context.
webmaster@1 14 * - $prev_url: URL to the previous node.
webmaster@1 15 * - $prev_title: Title of the previous node.
webmaster@1 16 * - $parent_url: URL to the parent node.
webmaster@1 17 * - $parent_title: Title of the parent node. Not printed by default. Provided
webmaster@1 18 * as an option.
webmaster@1 19 * - $next_url: URL to the next node.
webmaster@1 20 * - $next_title: Title of the next node.
webmaster@1 21 * - $has_links: Flags TRUE whenever the previous, parent or next data has a
webmaster@1 22 * value.
webmaster@1 23 * - $book_id: The book ID of the current outline being viewed. Same as the
webmaster@1 24 * node ID containing the entire outline. Provided for context.
webmaster@1 25 * - $book_url: The book/node URL of the current outline being viewed.
webmaster@1 26 * Provided as an option. Not used by default.
webmaster@1 27 * - $book_title: The book/node title of the current outline being viewed.
webmaster@1 28 * Provided as an option. Not used by default.
webmaster@1 29 *
webmaster@1 30 * @see template_preprocess_book_navigation()
webmaster@1 31 */
webmaster@1 32 ?>
webmaster@1 33 <?php if ($tree || $has_links): ?>
webmaster@1 34 <div id="book-navigation-<?php print $book_id; ?>" class="book-navigation">
webmaster@1 35 <?php print $tree; ?>
webmaster@1 36
webmaster@1 37 <?php if ($has_links): ?>
webmaster@1 38 <div class="page-links clear-block">
webmaster@1 39 <?php if ($prev_url) : ?>
webmaster@1 40 <a href="<?php print $prev_url; ?>" class="page-previous" title="<?php print t('Go to previous page'); ?>"><?php print t('‹ ') . $prev_title; ?></a>
webmaster@1 41 <?php endif; ?>
webmaster@1 42 <?php if ($parent_url) : ?>
webmaster@1 43 <a href="<?php print $parent_url; ?>" class="page-up" title="<?php print t('Go to parent page'); ?>"><?php print t('up'); ?></a>
webmaster@1 44 <?php endif; ?>
webmaster@1 45 <?php if ($next_url) : ?>
webmaster@1 46 <a href="<?php print $next_url; ?>" class="page-next" title="<?php print t('Go to next page'); ?>"><?php print $next_title . t(' ›'); ?></a>
webmaster@1 47 <?php endif; ?>
webmaster@1 48 </div>
webmaster@1 49 <?php endif; ?>
webmaster@1 50
webmaster@1 51 </div>
webmaster@1 52 <?php endif; ?>