nd.tpl.php in Node displays 7
Same filename and directory in other branches
This template is optimized for use with the Node displays module.
Differences with the default node.tpl.php
- Uses only the $content variable.
- Extra check on $sticky because this node might be build with another build mode.
File
templates/nd.tpl.phpView source
<?php
/**
* @file
* This template is optimized for use with the Node displays module.
*
* Differences with the default node.tpl.php
* - Uses only the $content variable.
* - Extra check on $sticky because this node might be build with another build mode.
*/
?>
<div class="buildmode-<?php
print $node->build_mode;
?>">
<div class="node node-type-<?php
print $node->type;
?> <?php
if (isset($node_classes)) {
print $node_classes;
}
if ($sticky && $node->build_mode == 'sticky') {
print ' sticky';
}
if (!$status) {
print ' node-unpublished';
}
?> clear-block">
<?php
print $content;
?>
</div> <!-- /node -->
</div> <!-- /buildmode -->