node.tpl.php 981 B

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