Code coverage for /20081101/modules/forum/forum-topic-navigation.tpl.php

Line #Times calledCode
1
<?php
2
// $Id: forum-topic-navigation.tpl.php,v 1.3 2008/10/13 12:31:42 dries Exp
$
3
4
/**
5
 * @file
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
?>
2655
<?php if ($prev || $next): ?>
27
  <div class="forum-topic-navigation clear-block">
2853
    <?php if ($prev): ?>
2924
      <a href="<?php print $prev_url; ?>" class="topic-previous"
title="<?php print t('Go to previous forum topic') ?>">‹ <?php print
$prev_title ?></a>
3024
    <?php endif; ?>
3153
    <?php if ($next): ?>
3247
      <a href="<?php print $next_url; ?>" class="topic-next" title="<?php
print t('Go to next forum topic') ?>"><?php print $next_title ?> ›</a>
3347
    <?php endif; ?>
34
  </div>
3553
<?php endif; ?>
3655