/[drupal]/contributions/themes/Alina/book-navigation.tpl.php
ViewVC logotype

Contents of /contributions/themes/Alina/book-navigation.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Tue Apr 15 18:31:16 2008 UTC (19 months, 2 weeks ago) by dm66
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Add to CVS
1 <?php
2 // $Id$
3 /**
4 * Available variables:
5 * - $tree: The immediate children of the current node rendered as an
6 * unordered list.
7 * - $current_depth: Depth of the current node within the book outline.
8 * Provided for context.
9 * - $prev_url: URL to the previous node.
10 * - $prev_title: Title of the previous node.
11 * - $parent_url: URL to the parent node.
12 * - $parent_title: Title of the parent node. Not printed by default. Provided
13 * as an option.
14 * - $next_url: URL to the next node.
15 * - $next_title: Title of the next node.
16 * - $has_links: Flags TRUE whenever the previous, parent or next data has a
17 * value.
18 * - $book_id: The book ID of the current outline being viewed. Same as the
19 * node ID containing the entire outline. Provided for context.
20 * - $book_url: The book/node URL of the current outline being viewed.
21 * Provided as an option. Not used by default.
22 * - $book_title: The book/node title of the current outline being viewed.
23 * Provided as an option. Not used by default.
24 *
25 * @see template_preprocess_book_navigation()
26 */
27 ?>
28 <?php if ($tree || $has_links): ?>
29 <div id="book-navigation-<?php print $book_id; ?>" class="book-navigation">
30 <?php print $tree; ?>
31 <?php if ($has_links): ?>
32 <div class="page-links clear-block">
33 <?php if ($prev_url) : ?>
34 <a href="<?php print $prev_url; ?>" class="page-previous" title="<?php print t('Go to previous page'); ?>"><?php print $prev_title; ?></a>
35 <?php endif; ?>
36 <?php if ($parent_url) : ?>
37 <a href="<?php print $parent_url; ?>" class="page-up" title="<?php print t('Go to parent page'); ?>"><img src="/<?php print $directory ?>/icons/resultset_up.png" alt="<?php print t('up'); ?>" /></a>
38 <?php endif; ?>
39 <?php if ($next_url) : ?>
40 <a href="<?php print $next_url; ?>" class="page-next" title="<?php print t('Go to next page'); ?>"><?php print $next_title ?></a>
41 <?php endif; ?>
42 </div>
43 <?php endif; ?>
44 </div>
45 <?php endif; ?>

  ViewVC Help
Powered by ViewVC 1.1.2