node.tpl.php 992 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. ?>
  3. <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
  4. <?php print $user_picture; ?>
  5. <?php print render($title_prefix); ?>
  6. <?php if (!$page): ?>
  7. <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
  8. <?php endif; ?>
  9. <?php print render($title_suffix); ?>
  10. <?php if ($display_submitted): ?>
  11. <span class="submitted"><?php print $submitted ?></span>
  12. <?php endif; ?>
  13. <div class="content clearfix"<?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. <div class="clearfix">
  22. <?php if (!empty($content['links'])): ?>
  23. <div class="links"><?php print render($content['links']); ?></div>
  24. <?php endif; ?>
  25. <?php print render($content['comments']); ?>
  26. </div>
  27. </div>