Full ELMS Learning Network documentation
forum-icon.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 modules/forum/forum-icon.tpl.php
- cis7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
- cle7 modules/forum/forum-icon.tpl.php
- cle7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
- ecd7 modules/forum/forum-icon.tpl.php
- ecd7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
- elmsmedia7 modules/forum/forum-icon.tpl.php
- elmsmedia7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
- harmony7 modules/forum/forum-icon.tpl.php
- harmony7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
- icor7 modules/forum/forum-icon.tpl.php
- icor7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
- meedjum_blog7 modules/forum/forum-icon.tpl.php
- meedjum_blog7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
- mooc7 modules/forum/forum-icon.tpl.php
- mooc7 sites/all/themes/ulmus/corolla/templates/forum-icon.tpl.php
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 also
template_preprocess_forum_icon()
theme_forum_icon()
1 theme call to forum-icon.tpl.php
- template_preprocess_forum_topic_list in modules/
forum/ forum.module - Preprocesses variables for forum-topic-list.tpl.php.
3 string references to the theme hook from forum-icon.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- forum_theme in modules/
forum/ forum.module - Implements hook_theme().
- hook_theme in modules/
system/ system.api.php - Register a module (or theme's) theme implementations.
- template_preprocess_forum_topic_list in modules/
forum/ forum.module - Preprocesses variables for forum-topic-list.tpl.php.
File
modules/forum/forum-icon.tpl.phpView source
- <?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>
-