node.tpl.php 892 B

12345678910111213141516171819202122232425262728
  1. <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  2. <?php print render($title_prefix); ?>
  3. <?php if (!$page): ?>
  4. <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
  5. <?php endif; ?>
  6. <?php print render($title_suffix); ?>
  7. <?php if ($display_submitted): ?>
  8. <div class="meta submitted">
  9. <?php print $user_picture; ?>
  10. <?php print $submitted; ?>
  11. </div>
  12. <?php endif; ?>
  13. <div class="content"<?php print $content_attributes; ?>>
  14. <?php
  15. // We hide the comments and links now so that we can render them later.
  16. hide($content['comments']);
  17. hide($content['links']);
  18. print render($content);
  19. ?>
  20. </div>
  21. <?php print render($content['links']); ?>
  22. <?php print render($content['comments']); ?>
  23. </div> <!-- /node -->