cms/drupal/modules/forum/forum-icon.tpl.php
changeset 541 e756a8c72c3d
equal deleted inserted replaced
540:07239de796bb 541:e756a8c72c3d
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * @file
       
     5  * Displays an appropriate icon for a forum post.
       
     6  *
       
     7  * Available variables:
       
     8  * - $new_posts: Indicates whether or not the topic contains new posts.
       
     9  * - $icon_class: The icon to display. May be one of 'hot', 'hot-new', 'new',
       
    10  *   'default', 'closed', or 'sticky'.
       
    11  * - $first_new: Indicates whether this is the first topic with new posts.
       
    12  *
       
    13  * @see template_preprocess_forum_icon()
       
    14  * @see theme_forum_icon()
       
    15  *
       
    16  * @ingroup themeable
       
    17  */
       
    18 ?>
       
    19 <div class="topic-status-<?php print $icon_class ?>" title="<?php print $icon_title ?>">
       
    20 <?php if ($first_new): ?>
       
    21   <a id="new"></a>
       
    22 <?php endif; ?>
       
    23 
       
    24   <span class="element-invisible"><?php print $icon_title ?></span>
       
    25 
       
    26 </div>