source: sipes/cord/modules/forum/forum-topic-list.tpl.php @ c25d016

stableversion-3.0
Last change on this file since c25d016 was b354002, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio del cord

  • Propiedad mode establecida a 100755
File size: 2.3 KB
Línea 
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; ?>
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.