Same filename in this branch
  1. 5.x themes/pushbutton/node.tpl.php
  2. 5.x themes/garland/node.tpl.php
  3. 5.x themes/engines/phptemplate/node.tpl.php
  4. 5.x themes/bluemarine/node.tpl.php
Same filename and directory in other branches
  1. 6.x themes/garland/node.tpl.php
  2. 7.x themes/garland/node.tpl.php
1 theme call to node.tpl.php
node_view in modules/node/node.module
Generate a display of the given node.

File

themes/garland/node.tpl.php
View source
<?php

phptemplate_comment_wrapper(NULL, $node->type);
?>

<div id="node-<?php

print $node->nid;
?>" class="node<?php

if ($sticky) {
  print ' sticky';
}
if (!$status) {
  print ' node-unpublished';
}
?>">

<?php

print $picture;
?>

<?php

if ($page == 0) {
  ?>
  <h2><a href="<?php

  print $node_url;
  ?>" title="<?php

  print $title;
  ?>"><?php

  print $title;
  ?></a></h2>
<?php

}
?>

  <?php

if ($submitted) {
  ?>
    <span class="submitted"><?php

  print t('!date — !username', array(
    '!username' => theme('username', $node),
    '!date' => format_date($node->created),
  ));
  ?></span>
  <?php

}
?>

  <div class="content">
    <?php

print $content;
?>
  </div>

  <div class="clear-block clear">
    <div class="meta">
    <?php

if ($taxonomy) {
  ?>
      <div class="terms"><?php

  print $terms;
  ?></div>
    <?php

}
?>
    </div>

    <?php

if ($links) {
  ?>
      <div class="links"><?php

  print $links;
  ?></div>
    <?php

}
?>
  </div>

</div>