/[drupal]/drupal/modules/forum/forum-topic-list.tpl.php
ViewVC logotype

Contents of /drupal/modules/forum/forum-topic-list.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download) (as text)
Thu Oct 8 07:58:45 2009 UTC (7 weeks, 1 day ago) by webchick
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-10, HEAD
Changes since 1.7: +3 -3 lines
File MIME type: text/x-php
#412518 by catch, bangpound, and yched: Convert taxonomy_node_* to field API (with upgrade path). Say buh-bye to old, crusty code.
1 <?php
2 // $Id: forum-topic-list.tpl.php,v 1.7 2009/07/28 10:41:20 dries Exp $
3
4 /**
5 * @file
6 * Default theme implementation to display a list of forum topics.
7 *
8 * Available variables:
9 * - $header: The table header. This is pre-generated with click-sorting
10 * information. If you need to change this, @see template_preprocess_forum_topic_list().
11 * - $pager: The pager to display beneath the table.
12 * - $topics: An array of topics to be displayed.
13 * - $topic_id: Numeric id for the current forum topic.
14 *
15 * Each $topic in $topics contains:
16 * - $topic->icon: The icon to display.
17 * - $topic->moved: A flag to indicate whether the topic has been moved to
18 * another forum.
19 * - $topic->title: The title of the topic. Safe to output.
20 * - $topic->message: If the topic has been moved, this contains an
21 * explanation and a link.
22 * - $topic->zebra: 'even' or 'odd' string used for row class.
23 * - $topic->comment_count: The number of replies on this topic.
24 * - $topic->new_replies: A flag to indicate whether there are unread comments.
25 * - $topic->new_url: If there are unread replies, this is a link to them.
26 * - $topic->new_text: Text containing the translated, properly pluralized count.
27 * - $topic->created: An outputtable string represented when the topic was posted.
28 * - $topic->last_reply: An outputtable string representing when the topic was
29 * last replied to.
30 * - $topic->timestamp: The raw timestamp this topic was posted.
31 *
32 * @see template_preprocess_forum_topic_list()
33 * @see theme_forum_topic_list()
34 */
35 ?>
36 <table id="forum-topic-<?php print $topic_id; ?>">
37 <thead>
38 <tr><?php print $header; ?></tr>
39 </thead>
40 <tbody>
41 <?php foreach ($topics as $topic): ?>
42 <tr class="<?php print $topic->zebra;?>">
43 <td class="icon"><?php print $topic->icon; ?></td>
44 <td class="title">
45 <div>
46 <?php print $topic->title; ?>
47 </div>
48 <div>
49 <?php print $topic->created; ?>
50 </div>
51 </td>
52 <?php if ($topic->moved): ?>
53 <td colspan="3"><?php print $topic->message; ?></td>
54 <?php else: ?>
55 <td class="replies">
56 <?php print $topic->comment_count; ?>
57 <?php if ($topic->new_replies): ?>
58 <br />
59 <a href="<?php print $topic->new_url; ?>"><?php print $topic->new_text; ?></a>
60 <?php endif; ?>
61 </td>
62 <td class="last-reply"><?php print $topic->last_reply; ?></td>
63 <?php endif; ?>
64 </tr>
65 <?php endforeach; ?>
66 </tbody>
67 </table>
68 <?php print $pager; ?>

  ViewVC Help
Powered by ViewVC 1.1.2