node.tpl.php
- 7.x drupal-7.x/modules/node/node.tpl.php
- 7.x drupal-7.x/themes/garland/node.tpl.php
- 7.x drupal-7.x/themes/bartik/templates/node.tpl.php
- 6.x drupal-6.x/modules/node/node.tpl.php
- 6.x drupal-6.x/themes/bluemarine/node.tpl.php
- 6.x drupal-6.x/themes/pushbutton/node.tpl.php
- 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.
File
drupal-7.x/themes/garland/node.tpl.phpView source
- <?php
- ?>
- <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
-
- <?php print $user_picture; ?>
-
- <?php print render($title_prefix); ?>
- <?php if (!$page): ?>
- <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
- <?php endif; ?>
- <?php print render($title_suffix); ?>
-
- <?php if ($display_submitted): ?>
- <span class="submitted"><?php print $submitted ?></span>
- <?php endif; ?>
-
- <div class="content clearfix"<?php print $content_attributes; ?>>
- <?php
- // We hide the comments and links now so that we can render them later.
- hide($content['comments']);
- hide($content['links']);
- print render($content);
- ?>
- </div>
-
- <div class="clearfix">
- <?php if (!empty($content['links'])): ?>
- <div class="links"><?php print render($content['links']); ?></div>
- <?php endif; ?>
-
- <?php print render($content['comments']); ?>
- </div>
-
- </div>
-