diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-07-22 07:01:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-07-22 07:01:07 +0000 |
commit | a466354823cc7df7583062bfd69173a74465af16 (patch) | |
tree | 3d52ca3ff24ae1c8e93f818372d83c88a5c1c036 /modules/forum/forum-icon.tpl.php | |
parent | 9339b704f36621ab8656a65589c8463ab0f17a44 (diff) | |
download | brdo-a466354823cc7df7583062bfd69173a74465af16.tar.gz brdo-a466354823cc7df7583062bfd69173a74465af16.tar.bz2 |
- Patch #158536 by merlinofchaos and dvessel: tpl-ified the forum module.
Diffstat (limited to 'modules/forum/forum-icon.tpl.php')
-rw-r--r-- | modules/forum/forum-icon.tpl.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/forum/forum-icon.tpl.php b/modules/forum/forum-icon.tpl.php new file mode 100644 index 000000000..4d15774f9 --- /dev/null +++ b/modules/forum/forum-icon.tpl.php @@ -0,0 +1,24 @@ +<?php +// $Id$ +/** + * @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; ?> |