aboutsummaryrefslogtreecommitdiff
path: root/templates/node.tpl.php
blob: 64fca2a1f263e1951247ef5b0573cb6f0506e410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
// $Id$
/**
 * @file
 * Output for nodes.
 */

hide($content['comments']);
hide($content['links']);
?>
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <?php print render($title_prefix); ?>
  <?php if(!empty($user_picture) || !$page || (!empty($submitted) && $display_submitted)): ?>
  <header class="clearfix<?php $user_picture ? print ' with-picture' : ''; ?>">
    <?php print $user_picture; ?>
    <?php if (!$page): ?>
      <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
    <?php endif; ?>
    <?php if ($display_submitted): ?>
      <span class="meta" role="contentinfo"><?php print $submitted; ?></span>
    <?php endif; ?>
    <?php if (!empty($content['field_tags'])): ?>
      <?php print render($content['field_tags']);  ?>
    <?php endif; ?>
  </header>
  <?php endif; ?>
  <?php print render($title_suffix); ?>
  <div class="content clearfix">
    <?php print render($content); ?>
  </div>
  <?php if (!empty($content['links'])): ?>
    <footer>
      <nav class="links">
        <?php print render($content['links']); ?>
      </nav>
    </footer>
  <?php endif; ?>
</article>

<?php if ($content['comments'] && $page): ?>
<section class="comments">
  <?php print render($content['comments']); ?>
</section>
<?php endif; ?>