You are here

node--answer.tpl.php in Answers 7.3

The Answers Module overrides the default node theme implementation.

Overrides implemented: The title of an answers node is no longer linked to the node page (generally not relevant for answers nodes)

File

node--answer.tpl.php
View source
<?php

/**
 * @file
 * The Answers Module overrides the default node theme implementation.
 *
 * Overrides implemented:
 *   The title of an answers node is no longer linked to the node page
 *   (generally not relevant for answers nodes)
 */
?>
<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;
  ?>><?php

  print $title;
  ?></h2>
  <?php

}
?>
  <?php

print render($title_suffix);
?>

  <?php

if ($display_submitted) {
  ?>
    <div class="submitted">
      <?php

  print $submitted;
  ?>
    </div>
  <?php

}
?>

  <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['links']);
print render($content);
?>
  </div>

  <?php

print render($content['links']);
?>

  <?php

print render($content['comments']);
?>

</div>