| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file book-navigation.tpl.php 5 * Default theme implementation to navigate books. Presented under nodes that 6 * are a part of book outlines. 7 * 8 * Available variables: 9 * - $tree: The immediate children of the current node rendered as an 10 * unordered list. 11 * - $current_depth: Depth of the current node within the book outline. 12 * Provided for context. 13 * - $prev_url: URL to the previous node. 14 * - $prev_title: Title of the previous node. 15 * - $parent_url: URL to the parent node. 16 * - $parent_title: Title of the parent node. Not printed by default. Provided 17 * as an option. 18 * - $next_url: URL to the next node. 19 * - $next_title: Title of the next node. 20 * - $has_links: Flags TRUE whenever the previous, parent or next data has a 21 * value. 22 * - $book_id: The book ID of the current outline being viewed. Same as the 23 * node ID containing the entire outline. Provided for context. 24 * - $book_url: The book/node URL of the current outline being viewed. 25 * Provided as an option. Not used by default. 26 * - $book_title: The book/node title of the current outline being viewed. 27 * Provided as an option. Not used by default. 28 * 29 * @see template_preprocess_book_navigation() 30 */ 31 ?> 32 <?php if ($tree || $has_links): ?> 33 <div id="book-navigation-<?php print $book_id; ?>" class="book-navigation"> 34 <?php print $tree; ?> 35 36 <?php if ($has_links): ?> 37 <div class="page-links clear-block"> 38 <?php if ($prev_url) : ?> 39 <a href="<?php print $prev_url; ?>" class="page-previous" title="<?php print t('Go to previous page'); ?>"><?php print t('‹ ') . $prev_title; ?></a> 40 <?php endif; ?> 41 <?php if ($parent_url) : ?> 42 <a href="<?php print $parent_url; ?>" class="page-up" title="<?php print t('Go to parent page'); ?>"><?php print t('up'); ?></a> 43 <?php endif; ?> 44 <?php if ($next_url) : ?> 45 <a href="<?php print $next_url; ?>" class="page-next" title="<?php print t('Go to next page'); ?>"><?php print $next_title . t(' ›'); ?></a> 46 <?php endif; ?> 47 </div> 48 <?php endif; ?> 49 50 </div> 51 <?php endif; ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |