root / drupal7 / sites / all / modules / advanced_forum / styles / naked / advanced-forum.naked.topic-icon.tpl.php @ 27370441
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | /**
|
||
3 | * @file
|
||
4 | * Display an appropriate icon for a forum post.
|
||
5 | *
|
||
6 | * Available variables:
|
||
7 | * - $new_posts: Indicates whether or not the topic contains new posts.
|
||
8 | * - $icon: The icon to display. May be one of 'hot', 'hot-new', 'new',
|
||
9 | * 'default', 'closed', or 'sticky'.
|
||
10 | * - $node_type: The type of the node that is displayed
|
||
11 | *
|
||
12 | * @see template_preprocess_forum_icon()
|
||
13 | * @see advanced_forum_preprocess_forum_icon()
|
||
14 | */
|
||
15 | ?>
|
||
16 | <?php if ($new_posts): ?> |
||
17 | <a name="new"> |
||
18 | <?php endif; ?> |
||
19 | |||
20 | <?php if (!empty($icon_class)): ?> |
||
21 | <span class="<?php print "topic-icon topic-icon-$icon_class topic-icon-node-type-$node_type"; ?>"><?php print "$icon_title"; ?></span> |
||
22 | <?php endif; ?> |
||
23 | |||
24 | <?php if ($new_posts): ?> |
||
25 | </a>
|
||
26 | <?php endif; ?> |