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