| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
/**
|
| 4 |
* Available variables:
|
| 5 |
*
|
| 6 |
* - $prev: The node ID of the previous post.
|
| 7 |
* - $prev_url: The URL of the previous post.
|
| 8 |
* - $prev_title: The title of the previous post.
|
| 9 |
*
|
| 10 |
* - $next: The node ID of the next post.
|
| 11 |
* - $next_url: The URL of the next post.
|
| 12 |
* - $next_title: The title of the next post.
|
| 13 |
*
|
| 14 |
* - $node: The raw node currently being viewed. Contains unsafe data
|
| 15 |
* and any data in this must be cleaned before presenting.
|
| 16 |
*
|
| 17 |
* @see template_preprocess_forum_topic_navigation()
|
| 18 |
* @see theme_forum_topic_navigation()
|
| 19 |
*/
|
| 20 |
?>
|
| 21 |
<?php if ($prev || $next): ?>
|
| 22 |
<div class="forum-topic-navigation clear-block">
|
| 23 |
<?php if ($prev): ?>
|
| 24 |
<a href="<?php print $prev_url; ?>" class="topic-previous" title="<?php print t('Go to previous forum topic') ?>"><?php print $prev_title ?></a>
|
| 25 |
<?php endif; ?>
|
| 26 |
<?php if ($next): ?>
|
| 27 |
<a href="<?php print $next_url; ?>" class="topic-next" title="<?php print t('Go to next forum topic') ?>"><?php print $next_title ?></a>
|
| 28 |
<?php endif; ?>
|
| 29 |
</div>
|
| 30 |
<?php endif; ?>
|