[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/forum/ -> forum-icon.tpl.php (source)

   1  <?php
   2  
   3  /**
   4   * @file forum-icon.tpl.php
   5   * Display 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: The icon to display. May be one of 'hot', 'hot-new', 'new',
  10   *   'default', 'closed', or 'sticky'.
  11   *
  12   * @see template_preprocess_forum_icon()
  13   * @see theme_forum_icon()
  14   */
  15  ?>
  16  <?php if ($new_posts): ?>
  17    <a name="new">
  18  <?php endif; ?>
  19  
  20  <?php print theme('image', "misc/forum-$icon.png") ?>
  21  
  22  <?php if ($new_posts): ?>
  23    </a>
  24  <?php endif; ?>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7