node--nodeblock.tpl.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @file node-nodeblock-default.tpl.php
  4. *
  5. * Theme implementation to display a nodeblock enabled block. This template is
  6. * provided as a default implementation that will be called if no other node
  7. * template is provided. Any node-[type] templates defined by the theme will
  8. * take priority over this template. Also, a theme can override this template
  9. * file to provide its own default nodeblock theme.
  10. *
  11. * Additional variables:
  12. * - $nodeblock: Flag for the nodeblock context.
  13. */
  14. ?>
  15. <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  16. <?php print $user_picture; ?>
  17. <?php print render($title_prefix); ?>
  18. <?php if (!$page && !$nodeblock): ?>
  19. <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
  20. <?php endif; ?>
  21. <?php print render($title_suffix); ?>
  22. <?php if ($display_submitted): ?>
  23. <div class="submitted">
  24. <?php
  25. print t('Submitted by !username on !datetime',
  26. array('!username' => $name, '!datetime' => $date));
  27. ?>
  28. </div>
  29. <?php endif; ?>
  30. <div class="content"<?php print $content_attributes; ?>>
  31. <?php
  32. // We hide the comments and links now so that we can render them later.
  33. hide($content['comments']);
  34. hide($content['links']);
  35. print render($content);
  36. ?>
  37. </div>
  38. <?php print render($content['links']); ?>
  39. <?php print render($content['comments']); ?>
  40. </div>