summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/forum/forum-icon.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/forum/forum-icon.tpl.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/forum/forum-icon.tpl.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/forum/forum-icon.tpl.php b/kolab.org/www/drupal-7.26/modules/forum/forum-icon.tpl.php
new file mode 100644
index 0000000..fd1cd13
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/forum/forum-icon.tpl.php
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * @file
+ * Displays an appropriate icon for a forum post.
+ *
+ * Available variables:
+ * - $new_posts: Indicates whether or not the topic contains new posts.
+ * - $icon_class: The icon to display. May be one of 'hot', 'hot-new', 'new',
+ * 'default', 'closed', or 'sticky'.
+ * - $first_new: Indicates whether this is the first topic with new posts.
+ *
+ * @see template_preprocess_forum_icon()
+ * @see theme_forum_icon()
+ *
+ * @ingroup themeable
+ */
+?>
+<div class="topic-status-<?php print $icon_class ?>" title="<?php print $icon_title ?>">
+<?php if ($first_new): ?>
+ <a id="new"></a>
+<?php endif; ?>
+
+ <span class="element-invisible"><?php print $icon_title ?></span>
+
+</div>