forum-topic-navigation.tpl.php

forum-topic-navigation.tpl.php Default theme implementation to display the topic navigation string at the bottom of all forum topics.

Available variables:

  • $prev: The node ID of the previous post.
  • $prev_url: The URL of the previous post.
  • $prev_title: The title of the previous post.
  • $next: The node ID of the next post.
  • $next_url: The URL of the next post.
  • $next_title: The title of the next post.
  • $node: The raw node currently being viewed. Contains unsafe data and any data in this must be cleaned before presenting.

See also

template_preprocess_forum_topic_navigation()

theme_forum_topic_navigation()

1 theme call to forum-topic-navigation.tpl.php
forum_nodeapi in drupal-6.x/modules/forum/forum.module
Implementation of hook_nodeapi().

File

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