2007-12-20 09:35:10 +00:00
|
|
|
<?php
|
2007-08-07 08:39:36 +00:00
|
|
|
// $Id$
|
|
|
|
|
2007-07-22 07:01:07 +00:00
|
|
|
/**
|
2008-10-13 12:31:43 +00:00
|
|
|
* @file
|
|
|
|
* Default theme implementation to display an appropriate icon for a forum post.
|
2007-07-22 07:01:07 +00:00
|
|
|
*
|
|
|
|
* Available variables:
|
|
|
|
* - $new_posts: Indicates whether or not the topic contains new posts.
|
2007-12-20 09:35:10 +00:00
|
|
|
* - $icon: The icon to display. May be one of 'hot', 'hot-new', 'new',
|
2007-07-22 07:01:07 +00:00
|
|
|
* 'default', 'closed', or 'sticky'.
|
|
|
|
*
|
|
|
|
* @see template_preprocess_forum_icon()
|
|
|
|
* @see theme_forum_icon()
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<?php if ($new_posts): ?>
|
|
|
|
<a name="new">
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php print theme('image', "misc/forum-$icon.png") ?>
|
|
|
|
|
|
|
|
<?php if ($new_posts): ?>
|
|
|
|
</a>
|
|
|
|
<?php endif; ?>
|