root / drupal7 / sites / all / themes / zen / templates / comment-wrapper.tpl.php @ 4b706e38
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Returns the HTML for a wrapping container around comments.
|
5 |
*
|
6 |
* Complete documentation for this file is available online.
|
7 |
* @see https://drupal.org/node/1728230
|
8 |
*/
|
9 |
|
10 |
// Render the comments and form first to see if we need headings.
|
11 |
$comments = render($content['comments']); |
12 |
$comment_form = render($content['comment_form']); |
13 |
?>
|
14 |
<section id="comments" class="comments <?php print $classes; ?>"<?php print $attributes; ?>> |
15 |
<?php print render($title_prefix); ?> |
16 |
<?php if ($comments && $node->type != 'forum'): ?> |
17 |
<h2 class="comments__title title"><?php print t('Comments'); ?></h2> |
18 |
<?php endif; ?> |
19 |
<?php print render($title_suffix); ?> |
20 |
|
21 |
<?php print $comments; ?> |
22 |
|
23 |
<?php if ($comment_form): ?> |
24 |
<h2 class="comments__form-title title comment-form"><?php print t('Add new comment'); ?></h2> |
25 |
<?php print $comment_form; ?> |
26 |
<?php endif; ?> |
27 |
</section>
|