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
1 theme call to node.tpl.php
node_view in drupal-6.x/modules/node/node.module
Generate a display of the given node.

File

drupal-6.x/themes/garland/node.tpl.php
View source
  1. <?php
  2. ?>
  3. <div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
  4. <?php print $picture ?>
  5. <?php if ($page == 0): ?>
  6. <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
  7. <?php endif; ?>
  8. <?php if ($submitted): ?>
  9. <span class="submitted"><?php print $submitted; ?></span>
  10. <?php endif; ?>
  11. <div class="content clear-block">
  12. <?php print $content ?>
  13. </div>
  14. <div class="clear-block">
  15. <div class="meta">
  16. <?php if ($taxonomy): ?>
  17. <div class="terms"><?php print $terms ?></div>
  18. <?php endif;?>
  19. </div>
  20. <?php if ($links): ?>
  21. <div class="links"><?php print $links; ?></div>
  22. <?php endif; ?>
  23. </div>
  24. </div>