You are here

nd.tpl.php in Display Suite 6.3

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

modules/nd/templates/nd.tpl.php
View 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 -->