Mercurial > defr > drupal > core
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/forum/forum-icon.tpl.php Tue Dec 23 14:28:28 2008 +0100 @@ -0,0 +1,25 @@ +<?php +// $Id: forum-icon.tpl.php,v 1.3 2007/12/20 09:35:09 goba Exp $ + +/** + * @file forum-icon.tpl.php + * Display an appropriate icon for a forum post. + * + * Available variables: + * - $new_posts: Indicates whether or not the topic contains new posts. + * - $icon: The icon to display. May be one of 'hot', 'hot-new', 'new', + * 'default', 'closed', or 'sticky'. + * + * @see template_preprocess_forum_icon() + * @see theme_forum_icon() + */ +?> +<?php if ($new_posts): ?> + <a name="new"> +<?php endif; ?> + +<?php print theme('image', "misc/forum-$icon.png") ?> + +<?php if ($new_posts): ?> + </a> +<?php endif; ?>