Projet

Général

Profil

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

root / drupal7 / sites / all / themes / danland / node.tpl.php @ 4b706e38

1 85ad3d82 Assos Assos
<?php
2
// $Id: node.tpl.php,v 1.3.2.1 2010/11/11 13:52:44 danprobo Exp $
3
?>
4
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
5
6
  <?php print render($title_prefix); ?>
7
  <?php if (!$page): ?>
8
    <h2<?php print $title_attributes; ?> class="title">
9
      <a href="<?php print $node_url; ?>"><?php print $title; ?></a>
10
    </h2>
11
  <?php endif; ?>
12
  <?php print render($title_suffix); ?>
13
14
  <?php if ($display_submitted): ?>
15
    <div class="meta submitted">
16
      <?php print $user_picture; ?>
17
      <?php
18
        print t('published by !username on !datetime',
19
          array('!username' => $name, '!datetime' => $date));
20
      ?>
21
    </div>
22
  <?php endif; ?>
23
24
  <div class="content clearfix"<?php print $content_attributes; ?>>
25
    <?php
26
      hide($content['comments']);
27
      hide($content['links']);
28
      print render($content);
29
    ?>
30
  </div>
31
32
  <?php
33
    if ($teaser || !empty($content['comments']['comment_form'])) {
34
      unset($content['links']['comment']['#links']['comment-add']);
35
    }
36
    // Only display the wrapper div if there are links.
37
    $links = render($content['links']);
38
    if ($links):
39
  ?>
40
    <div class="links">
41
      <?php print $links; ?>
42
    </div>
43
  <?php endif; ?>
44
45
  <?php print render($content['comments']); ?>
46
47
</div>