Mercurial > defr > drupal > core
comparison modules/forum/forum-icon.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:5a113a1c4740 | 1:c1f4ac30525a |
---|---|
1 <?php | |
2 // $Id: forum-icon.tpl.php,v 1.3 2007/12/20 09:35:09 goba Exp $ | |
3 | |
4 /** | |
5 * @file forum-icon.tpl.php | |
6 * 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 name="new"> | |
19 <?php endif; ?> | |
20 | |
21 <?php print theme('image', "misc/forum-$icon.png") ?> | |
22 | |
23 <?php if ($new_posts): ?> | |
24 </a> | |
25 <?php endif; ?> |