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