| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file comment-wrapper.tpl.php
|
| 6 |
* Default theme implementation to wrap comments.
|
| 7 |
*
|
| 8 |
* Available variables:
|
| 9 |
* - $content: All comments for a given page. Also contains sorting controls
|
| 10 |
* and comment forms if the site is configured for it.
|
| 11 |
*
|
| 12 |
* The following variables are provided for contextual information.
|
| 13 |
* - $node: Node object the comments are attached to.
|
| 14 |
* The constants below the variables show the possible values and should be
|
| 15 |
* used for comparison.
|
| 16 |
* - $display_mode
|
| 17 |
* - COMMENT_MODE_FLAT_COLLAPSED
|
| 18 |
* - COMMENT_MODE_FLAT_EXPANDED
|
| 19 |
* - COMMENT_MODE_THREADED_COLLAPSED
|
| 20 |
* - COMMENT_MODE_THREADED_EXPANDED
|
| 21 |
* - $display_order
|
| 22 |
* - COMMENT_ORDER_NEWEST_FIRST
|
| 23 |
* - COMMENT_ORDER_OLDEST_FIRST
|
| 24 |
* - $comment_controls_state
|
| 25 |
* - COMMENT_CONTROLS_ABOVE
|
| 26 |
* - COMMENT_CONTROLS_BELOW
|
| 27 |
* - COMMENT_CONTROLS_ABOVE_BELOW
|
| 28 |
* - COMMENT_CONTROLS_HIDDEN
|
| 29 |
*
|
| 30 |
* @see template_preprocess_comment_wrapper()
|
| 31 |
* @see theme_comment_wrapper()
|
| 32 |
*/
|
| 33 |
?>
|
| 34 |
|
| 35 |
<?php if ($content) : ?>
|
| 36 |
<div id="comments" class="block">
|
| 37 |
|
| 38 |
<h2 class="comments">
|
| 39 |
<?php print t('Comments'); ?>
|
| 40 |
</h2>
|
| 41 |
|
| 42 |
<?php print $content; ?>
|
| 43 |
|
| 44 |
</div>
|
| 45 |
<?php endif; ?>
|