| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file forum-topic-list.tpl.php 5 * Theme implementation to display a list of forum topics. 6 * 7 * Available variables: 8 * - $header: The table header. This is pre-generated with click-sorting 9 * information. If you need to change this, @see template_preprocess_forum_topic_list(). 10 * - $pager: The pager to display beneath the table. 11 * - $topics: An array of topics to be displayed. 12 * - $topic_id: Numeric id for the current forum topic. 13 * 14 * Each $topic in $topics contains: 15 * - $topic->icon: The icon to display. 16 * - $topic->moved: A flag to indicate whether the topic has been moved to 17 * another forum. 18 * - $topic->title: The title of the topic. Safe to output. 19 * - $topic->message: If the topic has been moved, this contains an 20 * explanation and a link. 21 * - $topic->zebra: 'even' or 'odd' string used for row class. 22 * - $topic->num_comments: The number of replies on this topic. 23 * - $topic->new_replies: A flag to indicate whether there are unread comments. 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 count. 26 * - $topic->created: An outputtable string represented when the topic was posted. 27 * - $topic->last_reply: An outputtable string representing when the topic was 28 * last replied to. 29 * - $topic->timestamp: The raw timestamp this topic was posted. 30 * 31 * @see template_preprocess_forum_topic_list() 32 * @see theme_forum_topic_list() 33 */ 34 ?> 35 <table id="forum-topic-<?php print $topic_id; ?>"> 36 <thead> 37 <tr><?php print $header; ?></tr> 38 </thead> 39 <tbody> 40 <?php foreach ($topics as $topic): ?> 41 <tr class="<?php print $topic->zebra;?>"> 42 <td class="icon"><?php print $topic->icon; ?></td> 43 <td class="title"><?php print $topic->title; ?></td> 44 <?php if ($topic->moved): ?> 45 <td colspan="3"><?php print $topic->message; ?></td> 46 <?php else: ?> 47 <td class="replies"> 48 <?php print $topic->num_comments; ?> 49 <?php if ($topic->new_replies): ?> 50 <br /> 51 <a href="<?php print $topic->new_url; ?>"><?php print $topic->new_text; ?></a> 52 <?php endif; ?> 53 </td> 54 <td class="created"><?php print $topic->created; ?></td> 55 <td class="last-reply"><?php print $topic->last_reply; ?></td> 56 <?php endif; ?> 57 </tr> 58 <?php endforeach; ?> 59 </tbody> 60 </table> 61 <?php print $pager; ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |