Code coverage for /20081101/modules/book/book-navigation.tpl.php

Line #Times calledCode
1
<?php
2
// $Id: book-navigation.tpl.php,v 1.2 2008/05/15 21:19:24 dries Exp $
3
4
/**
5
 * @file
6
 * Default theme implementation to navigate books. Presented under nodes
that
7
 * are a part of book outlines.
8
 *
9
 * Available variables:
10
 * - $tree: The immediate children of the current node rendered as an
11
 *   unordered list.
12
 * - $current_depth: Depth of the current node within the book outline.
13
 *   Provided for context.
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
18
 *   as an option.
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
22
 *   value.
23
 * - $book_id: The book ID of the current outline being viewed. Same as the
24
 *   node ID containing the entire outline. Provided for context.
25
 * - $book_url: The book/node URL of the current outline being viewed.
26
 *   Provided 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.
29
 *
30
 * @see template_preprocess_book_navigation()
31
 */
32
?>
3312
<?php if ($tree || $has_links): ?>
3411
  <div id="book-navigation-<?php print $book_id; ?>"
class="book-navigation">
3511
    <?php print $tree; ?>
36
3711
    <?php if ($has_links): ?>
38
    <div class="page-links clear-block">
3911
      <?php if ($prev_url) : ?>
4010
        <a href="<?php print $prev_url; ?>" class="page-previous"
title="<?php print t('Go to previous page'); ?>"><?php print t('‹ ') .
$prev_title; ?></a>
4110
      <?php endif; ?>
4211
      <?php if ($parent_url) : ?>
4310
        <a href="<?php print $parent_url; ?>" class="page-up" title="<?php
print t('Go to parent page'); ?>"><?php print t('up'); ?></a>
4410
      <?php endif; ?>
4511
      <?php if ($next_url) : ?>
465
        <a href="<?php print $next_url; ?>" class="page-next" title="<?php
print t('Go to next page'); ?>"><?php print $next_title . t(' ›'); ?></a>
475
      <?php endif; ?>
48
    </div>
4911
    <?php endif; ?>
50
51
  </div>
5211
<?php endif; ?>
5312