You are here

talkpage.tpl.php in Talk 7

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

Overridable template file for talk page.

Available variables: $comment_count represents the number of comments on the node. $comments represents the rendered comments, form, and/or link. $node represents the node whose comments we're displaying. $title represents the title of the talk page. Defaults to "Talk".

File

talkpage.tpl.php
View source
<?php

/**
 * @file
 * Overridable template file for talk page.
 *
 * Available variables:
 *   $comment_count represents the number of comments on the node.
 *   $comments represents the rendered comments, form, and/or link.
 *   $node represents the node whose comments we're displaying.
 *   $title represents the title of the talk page. Defaults to "Talk".
 */
?>
<div class="talk-page">
  <?php

if ($comment_count == 0) {
  ?>
    <div class="talk-page-empty-message">
      <?php

  print t('There are currently no comments on this page.');
  ?>
    </div>
  <?php

}
?>
  <?php

print $comments;
?>
</div>