Projet

Général

Profil

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

root / drupal7 / sites / all / themes / zen / templates / node.tpl.php @ 87dbc3bf

1
<?php
2
/**
3
 * @file
4
 * Returns the HTML for a node.
5
 *
6
 * Complete documentation for this file is available online.
7
 * @see https://drupal.org/node/1728164
8
 */
9
?>
10
<article class="node-<?php print $node->nid; ?> <?php print $classes; ?> clearfix"<?php print $attributes; ?>>
11

    
12
  <?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || !$page && $title): ?>
13
    <header>
14
      <?php print render($title_prefix); ?>
15
      <?php if (!$page && $title): ?>
16
        <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
17
      <?php endif; ?>
18
      <?php print render($title_suffix); ?>
19

    
20
      <?php if ($display_submitted): ?>
21
        <p class="submitted">
22
          <?php print $user_picture; ?>
23
          <?php print $submitted; ?>
24
        </p>
25
      <?php endif; ?>
26

    
27
      <?php if ($unpublished): ?>
28
        <mark class="unpublished"><?php print t('Unpublished'); ?></mark>
29
      <?php endif; ?>
30
    </header>
31
  <?php endif; ?>
32

    
33
  <?php
34
    // We hide the comments and links now so that we can render them later.
35
    hide($content['comments']);
36
    hide($content['links']);
37
    print render($content);
38
  ?>
39

    
40
  <?php print render($content['links']); ?>
41

    
42
  <?php print render($content['comments']); ?>
43

    
44
</article>