Projet

Général

Profil

Paste
Télécharger (2,04 ko) Statistiques
| Branche: | Révision:

root / drupal7 / modules / book / book-navigation.tpl.php @ 134c7813

1 85ad3d82 Assos Assos
<?php
2
3
/**
4
 * @file
5
 * Default theme implementation to navigate books.
6
 *
7
 * Presented under nodes that are a part of book outlines.
8
 *
9
 * Available variables:
10
 * - $tree: The immediate children of the current node rendered as an unordered
11
 *   list.
12
 * - $current_depth: Depth of the current node within the book outline. Provided
13
 *   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 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.
29
 *
30
 * @see template_preprocess_book_navigation()
31
 *
32
 * @ingroup themeable
33
 */
34
?>
35
<?php if ($tree || $has_links): ?>
36
  <div id="book-navigation-<?php print $book_id; ?>" class="book-navigation">
37
    <?php print $tree; ?>
38
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>
43
      <?php endif; ?>
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>
46
      <?php endif; ?>
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>
49
      <?php endif; ?>
50
    </div>
51
    <?php endif; ?>
52
53
  </div>
54
<?php endif; ?>