node.tpl.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!-- start article.node -->
  2. <article id="node-<?php print $node->nid; ?>" class="node type-<?php print $node->type; ?><?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " unpublished"; } ?>">
  3. <?php if ($page == 0 && isset($title)): ?>
  4. <h1 class="nodetitle">
  5. <?php $types = ['document', 'document_video', 'document_sonor', 'object']; // , 'effectuation' ?>
  6. <?php if (!in_array($node->type, $types)) : ?>
  7. <a href="<?php print $node_url?>"><?php print $title?></a>
  8. <?php else: ?>
  9. <?php print $title?>
  10. <?php endif; ?>
  11. </h1>
  12. <?php endif; ?>
  13. <section class="content">
  14. <?php
  15. hide($content['comments']);
  16. hide($content['links']);
  17. print render($content);
  18. ?>
  19. </section>
  20. <?php if ($submitted): ?>
  21. <aside class="submitted">
  22. <?php print $submitted?>
  23. </aside>
  24. <?php endif; ?>
  25. <?php if ($links = render($content['links'])): ?>
  26. <nav class="nav">
  27. <?php print $links; ?>
  28. </nav>
  29. <?php endif; ?>
  30. </article>
  31. <!-- end article.node -->