Skip to content
node.tpl.php 1.21 KiB
Newer Older
Nick Young's avatar
Nick Young committed

<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <?php print $user_picture; ?>
  <?php print render($title_prefix); ?>
  <?php if (!$page): ?>
    <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
  <?php endif; ?>
Nick Young's avatar
Nick Young committed
  <?php print render($title_suffix); ?>

  <?php if ($display_submitted): ?>
    <div class="meta">
      <?php if ($display_submitted): ?>
        <span class="submitted">
          <?php
            print t('Submitted by !username on !datetime',
              array('!username' => $name, '!datetime' => $date));
          ?>
        </span>
      <?php endif; ?>
    </div>
Nick Young's avatar
Nick Young committed
  <?php endif; ?>

  <div class="content"<?php print $content_attributes; ?>>
    <?php
      // We hide the comments and links now so that we can render them later.
      hide($content['comments']);
      hide($content['taxonomy_tags']);
      hide($content['links']);
      print render($content);
    ?>
  </div>
  <div class="node_links">
    <?php print render($content['taxonomy_tags']); ?>
    <?php print render($content['comments']); ?>
    <?php print render($content['links']); ?>
  </div>
</div> <!-- /.node -->