5 * Displays a list of forum topics.
8 * - $header: The table header. This is pre-generated with click-sorting
9 * information. If you need to change this, see
10 * template_preprocess_forum_topic_list().
11 * - $pager: The pager to display beneath the table.
12 * - $topics: An array of topics to be displayed. Each $topic in $topics
14 * - $topic->icon: The icon to display.
15 * - $topic->moved: A flag to indicate whether the topic has been moved to
17 * - $topic->title: The title of the topic. Safe to output.
18 * - $topic->message: If the topic has been moved, this contains an
19 * explanation and a link.
20 * - $topic->zebra: 'even' or 'odd' string used for row class.
21 * - $topic->comment_count: The number of replies on this topic.
22 * - $topic->new_replies: A flag to indicate whether there are unread
24 * - $topic->new_url: If there are unread replies, this is a link to them.
25 * - $topic->new_text: Text containing the translated, properly pluralized
27 * - $topic->created: A string representing when the topic was posted. Safe
29 * - $topic->last_reply: An outputtable string representing when the topic was
31 * - $topic->timestamp: The raw timestamp this topic was posted.
32 * - $topic_id: Numeric ID for the current forum topic.
34 * @see template_preprocess_forum_topic_list()
35 * @see theme_forum_topic_list()
40 <table id
="forum-topic-<?php print $topic_id; ?>">
42 <tr
><?php
print $header; ?
></tr
>
45 <?php
foreach ($topics as $topic): ?
>
46 <tr
class="<?php print $topic->zebra;?>">
47 <td
class="icon"><?php
print $topic->icon
; ?
></td
>
50 <?php
print $topic->title
; ?
>
53 <?php
print $topic->created
; ?
>
56 <?php
if ($topic->moved
): ?
>
57 <td colspan
="3"><?php
print $topic->message
; ?
></td
>
60 <?php
print $topic->comment_count
; ?
>
61 <?php
if ($topic->new_replies
): ?
>
63 <a href
="<?php print $topic->new_url; ?>"><?php
print $topic->new_text
; ?
></a
>
66 <td
class="last-reply"><?php
print $topic->last_reply
; ?
></td
>
72 <?php
print $pager; ?
>