node.tpl.php

  1. 7.x drupal-7.x/modules/node/node.tpl.php
  2. 7.x drupal-7.x/themes/garland/node.tpl.php
  3. 7.x drupal-7.x/themes/bartik/templates/node.tpl.php
  4. 6.x drupal-6.x/modules/node/node.tpl.php
  5. 6.x drupal-6.x/themes/bluemarine/node.tpl.php
  6. 6.x drupal-6.x/themes/pushbutton/node.tpl.php
  7. 6.x drupal-6.x/themes/garland/node.tpl.php
6 theme calls to node.tpl.php
book_node_export in drupal-7.x/modules/book/book.module
Generates printer-friendly HTML for a node.
comment_links in drupal-7.x/modules/comment/comment.module
Helper function, build links for an individual comment.
comment_node_view in drupal-7.x/modules/comment/comment.module
Implements hook_node_view().
node_preview in drupal-7.x/modules/node/node.pages.inc
Generates a node preview.
node_view in drupal-7.x/modules/node/node.module
Generates an array for rendering the given node.

... See full list

File

drupal-7.x/themes/garland/node.tpl.php
View source
  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>