[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/forum/ -> forum-topic-navigation.tpl.php (source)

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


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7