forum-icon.tpl.php 576 Bytes
Newer Older
1
<?php
2 3
// $Id$

4
/**
5 6
 * @file
 * Default theme implementation to display an appropriate icon for a forum post.
7 8 9
 *
 * Available variables:
 * - $new_posts: Indicates whether or not the topic contains new posts.
10
 * - $icon: The icon to display. May be one of 'hot', 'hot-new', 'new',
11 12 13 14 15 16 17
 *   'default', 'closed', or 'sticky'.
 *
 * @see template_preprocess_forum_icon()
 * @see theme_forum_icon()
 */
?>
<?php if ($new_posts): ?>
18
  <a id="new">
19 20
<?php endif; ?>

21
<?php print theme('image', array('path' => "misc/forum-$icon.png")) ?>
22 23 24 25

<?php if ($new_posts): ?>
  </a>
<?php endif; ?>