Projet

Général

Profil

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

root / drupal7 / sites / all / themes / zen / templates / comment.tpl.php @ 7dbec6b0

1 87dbc3bf Benjamin Luce
<?php
2
/**
3
 * @file
4
 * Returns the HTML for comments.
5
 *
6
 * Complete documentation for this file is available online.
7
 * @see https://drupal.org/node/1728216
8
 */
9
?>
10
<article class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
11
12
  <header>
13
    <p class="submitted">
14
      <?php print $picture; ?>
15
      <?php print $submitted; ?>
16
      <?php print $permalink; ?>
17
    </p>
18
19
    <?php print render($title_prefix); ?>
20
    <?php if ($title): ?>
21
      <h3<?php print $title_attributes; ?>>
22
        <?php print $title; ?>
23
        <?php if ($new): ?>
24
          <mark class="new"><?php print $new; ?></mark>
25
        <?php endif; ?>
26
      </h3>
27
    <?php elseif ($new): ?>
28
      <mark class="new"><?php print $new; ?></mark>
29
    <?php endif; ?>
30
    <?php print render($title_suffix); ?>
31
32
    <?php if ($status == 'comment-unpublished'): ?>
33
      <mark class="unpublished"><?php print t('Unpublished'); ?></mark>
34
    <?php endif; ?>
35
  </header>
36
37
  <?php
38
    // We hide the comments and links now so that we can render them later.
39
    hide($content['links']);
40
    print render($content);
41
  ?>
42
43
  <?php if ($signature): ?>
44
    <footer class="user-signature clearfix">
45
      <?php print $signature; ?>
46
    </footer>
47
  <?php endif; ?>
48
49
  <?php print render($content['links']) ?>
50
</article>