node.tpl.php in Drupal 5
1 theme call to node.tpl.php
- node_view in modules/node/node.module
- Generate a display of the given node.
File
themes/engines/phptemplate/node.tpl.php
View source
<div id="node-<?php
print $node->nid;
?>" class="node<?php
if ($sticky) {
print ' sticky';
}
if (!$status) {
print ' node-unpublished';
}
?> clear-block">
<?php
print $picture;
?>
<?php
if ($page == 0) {
?>
<h2><a href="<?php
print $node_url;
?>" title="<?php
print $title;
?>"><?php
print $title;
?></a></h2>
<?php
}
?>
<div class="meta">
<?php
if ($submitted) {
?>
<span class="submitted"><?php
print $submitted;
?></span>
<?php
}
?>
<?php
if ($terms) {
?>
<span class="terms"><?php
print $terms;
?></span>
<?php
}
?>
</div>
<div class="content">
<?php
print $content;
?>
</div>
<?php
if ($links) {
print $links;
}
?>
</div>