You are here

talkpage.tpl.php in Talk 6

Same filename and directory in other branches
  1. 7 talkpage.tpl.php

Overridable template file for talk page.

Available variables: $node represents the node whose comments we're displaying. $comments represents the rendered comments. $comment_link represents an "add new comment" link. $add_comments is TRUE if the user has permission to add comments. $redisplay is TRUE if the "add new comment" link should be redisplayed at the bottom of the page. $title represents the title of the talk page. Defaults to "Talk".

File

talkpage.tpl.php
View source
<?php

// $Id$

/**
 * @file
 * Overridable template file for talk page.
 *
 * Available variables:
 *   $node represents the node whose comments we're displaying.
 *   $comments represents the rendered comments.
 *   $comment_link represents an "add new comment" link.
 *   $add_comments is TRUE if the user has permission to add comments.
 *   $redisplay is TRUE if the "add new comment" link should be redisplayed at the bottom of the page.
 *   $title represents the title of the talk page. Defaults to "Talk".
 */
if ($comment_link) {
  ?>
  <p>
    <?php

  print $comment_link;
  ?>
  </p>
  <br />
<?php

}
print $comments;
if ($comment_link && $redisplay) {
  ?>
  <p>
  <?php

  print $comment_link;
  ?>
  </p>
<?php

}