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()

File

modules/forum/forum-icon.tpl.php

Related topics

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!forum!forum-icon.tpl.php/7.x