Initial code using Drupal 6.38
This commit is contained in:
commit
4824608a33
467 changed files with 90887 additions and 0 deletions
24
modules/forum/forum-icon.tpl.php
Normal file
24
modules/forum/forum-icon.tpl.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @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; ?>
|
Reference in a new issue