Mercurial > hg > rr-repo
comparison modules/forum/forum-icon.tpl.php @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Displays an appropriate icon for a forum post. | |
6 * | |
7 * Available variables: | |
8 * - $new_posts: Indicates whether or not the topic contains new posts. | |
9 * - $icon_class: The icon to display. May be one of 'hot', 'hot-new', 'new', | |
10 * 'default', 'closed', or 'sticky'. | |
11 * - $first_new: Indicates whether this is the first topic with new posts. | |
12 * | |
13 * @see template_preprocess_forum_icon() | |
14 * @see theme_forum_icon() | |
15 * | |
16 * @ingroup themeable | |
17 */ | |
18 ?> | |
19 <div class="topic-status-<?php print $icon_class ?>" title="<?php print $icon_title ?>"> | |
20 <?php if ($first_new): ?> | |
21 <a id="new"></a> | |
22 <?php endif; ?> | |
23 | |
24 <span class="element-invisible"><?php print $icon_title ?></span> | |
25 | |
26 </div> |