Mercurial > defr > drupal > core
comparison modules/forum/forum-topic-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 |
comparison
equal
deleted
inserted
replaced
| 0:5a113a1c4740 | 1:c1f4ac30525a |
|---|---|
| 1 <?php | |
| 2 // $Id: forum-topic-navigation.tpl.php,v 1.2 2007/08/07 08:39:35 goba Exp $ | |
| 3 | |
| 4 /** | |
| 5 * @file forum-topic-navigation.tpl.php | |
| 6 * Default theme implementation to display the topic navigation string at the | |
| 7 * bottom of all forum topics. | |
| 8 * | |
| 9 * Available variables: | |
| 10 * | |
| 11 * - $prev: The node ID of the previous post. | |
| 12 * - $prev_url: The URL of the previous post. | |
| 13 * - $prev_title: The title of the previous post. | |
| 14 * | |
| 15 * - $next: The node ID of the next post. | |
| 16 * - $next_url: The URL of the next post. | |
| 17 * - $next_title: The title of the next post. | |
| 18 * | |
| 19 * - $node: The raw node currently being viewed. Contains unsafe data | |
| 20 * and any data in this must be cleaned before presenting. | |
| 21 * | |
| 22 * @see template_preprocess_forum_topic_navigation() | |
| 23 * @see theme_forum_topic_navigation() | |
| 24 */ | |
| 25 ?> | |
| 26 <?php if ($prev || $next): ?> | |
| 27 <div class="forum-topic-navigation clear-block"> | |
| 28 <?php if ($prev): ?> | |
| 29 <a href="<?php print $prev_url; ?>" class="topic-previous" title="<?php print t('Go to previous forum topic') ?>">‹ <?php print $prev_title ?></a> | |
| 30 <?php endif; ?> | |
| 31 <?php if ($next): ?> | |
| 32 <a href="<?php print $next_url; ?>" class="topic-next" title="<?php print t('Go to next forum topic') ?>"><?php print $next_title ?> ›</a> | |
| 33 <?php endif; ?> | |
| 34 </div> | |
| 35 <?php endif; ?> |
