root / drupal7 / sites / all / modules / advanced_forum / styles / naked / advanced-forum.naked.comment-wrapper.tpl.php @ 384fc62a
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Default theme implementation to wrap comments.
|
5 |
*
|
6 |
* Available variables:
|
7 |
* - $content: All comments for a given page. Also contains sorting controls
|
8 |
* and comment forms if the site is configured for it.
|
9 |
*
|
10 |
* The following variables are provided for contextual information.
|
11 |
* - $node: Node object the comments are attached to.
|
12 |
* The constants below the variables show the possible values and should be
|
13 |
* used for comparison.
|
14 |
* - $display_mode
|
15 |
* - COMMENT_MODE_FLAT_COLLAPSED
|
16 |
* - COMMENT_MODE_FLAT_EXPANDED
|
17 |
* - COMMENT_MODE_THREADED_COLLAPSED
|
18 |
* - COMMENT_MODE_THREADED_EXPANDED
|
19 |
* - $display_order
|
20 |
* - COMMENT_ORDER_NEWEST_FIRST
|
21 |
* - COMMENT_ORDER_OLDEST_FIRST
|
22 |
* - $comment_controls_state
|
23 |
* - COMMENT_CONTROLS_ABOVE
|
24 |
* - COMMENT_CONTROLS_BELOW
|
25 |
* - COMMENT_CONTROLS_ABOVE_BELOW
|
26 |
* - COMMENT_CONTROLS_HIDDEN
|
27 |
*
|
28 |
* @see template_preprocess_comment_wrapper()
|
29 |
* @see advanced_forum_preprocess_comment_wrapper()
|
30 |
*/
|
31 |
?>
|
32 |
<div id="forum-comments" class="<?php print $classes; ?>"<?php print $attributes; ?>> |
33 |
<?php print render($content['comments']); ?> |
34 |
<?php if ($content['comment_form']): ?> |
35 |
<h2 class="title comment-form"><?php print t('Add new comment'); ?></h2> |
36 |
<?php print render($content['comment_form']); ?> |
37 |
<?php else: ?> |
38 |
<?php print $reply_link; ?> |
39 |
<?php endif; ?> |
40 |
</div>
|