Projet

Général

Profil

Paste
Télécharger (1,39 ko) Statistiques
| Branche: | Révision:

root / htmltest / sites / all / themes / busy / templates / comment-wrapper.tpl.php @ 6c38d829

1 85ad3d82 Assos Assos
<?php
2
3
/**
4
 * @file
5
 * Default theme implementation to wrap comments.
6
 *
7
 * Available variables:
8
 * - $content: The array of content-related elements for the node. Use
9
 *   render($content) to print them all, or
10
 *   print a subset such as render($content['comment_form']).
11
 * - $classes: String of classes that can be used to style contextually through
12
 *   CSS. It can be manipulated through the variable $classes_array from
13
 *   preprocess functions. The default value has the following:
14
 *   - comment-wrapper: The current template type, i.e., "theming hook".
15
 *
16
 * The following variables are provided for contextual information.
17
 * - $node: Node object the comments are attached to.
18
 * The constants below the variables show the possible values and should be
19
 * used for comparison.
20
 * - $display_mode
21
 *   - COMMENT_MODE_FLAT
22
 *   - COMMENT_MODE_THREADED
23
 *
24
 * Other variables:
25
 * - $classes_array: Array of html class attribute values. It is flattened
26
 *   into a string within the variable $classes.
27
 *
28
 * @see template_preprocess_comment_wrapper()
29
 * @see theme_comment_wrapper()
30
 */
31
?>
32
<div id="comments" class="<?php print $classes; ?>"<?php print $attributes; ?>>
33
  <?php print render($content['comments']); ?>
34
  <?php if ($content['comment_form']): ?>
35
  <h2 class="title"><?php print t('Post new comment'); ?></h2>
36
  <div>
37
    <?php print render($content['comment_form']); ?>
38
  </div>
39
  <?php endif; ?>
40
</div>