/[drupal]/drupal/modules/forum/forum-icon.tpl.php
ViewVC logotype

Contents of /drupal/modules/forum/forum-icon.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Fri Oct 9 00:59:59 2009 UTC (7 weeks, 1 day ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-10, HEAD
Changes since 1.5: +2 -2 lines
File MIME type: text/x-php
- Patch #572618 by effulgentsia, pwolanin, sun: all theme functions should take a single argument. Code clean-up and performance improvement. Woot.
1 <?php
2 // $Id: forum-icon.tpl.php,v 1.5 2009/03/08 20:58:19 dries Exp $
3
4 /**
5 * @file
6 * Default theme implementation to display an appropriate icon for a forum post.
7 *
8 * Available variables:
9 * - $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 * 'default', 'closed', or 'sticky'.
12 *
13 * @see template_preprocess_forum_icon()
14 * @see theme_forum_icon()
15 */
16 ?>
17 <?php if ($new_posts): ?>
18 <a id="new">
19 <?php endif; ?>
20
21 <?php print theme('image', array('path' => "misc/forum-$icon.png")) ?>
22
23 <?php if ($new_posts): ?>
24 </a>
25 <?php endif; ?>

  ViewVC Help
Powered by ViewVC 1.1.2