/[drupal]/contributions/modules/talk/talkpage.tpl.php
ViewVC logotype

Contents of /contributions/modules/talk/talkpage.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Mon Jan 14 23:51:27 2008 UTC (22 months, 1 week ago) by cwgordon7
Branch: MAIN
CVS Tags: DRUPAL-6--1-4, DRUPAL-6--1-5, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +2 -1 lines
File MIME type: text/x-php
New features:
-Title of the "talk" page is customizable.

Bug fixes:
-Undefined variable error when there were no links to add to a node.
-Fixed duplication of "Add new comment" link when adding a new comment through implementation of hook_link_alter.
1 <?php /* $Id: talkpage.tpl.php,v 1.1 2007/12/31 01:13:44 cwgordon7 Exp $ */ ?>
2 <?php
3 /**
4 * Available variables:
5 * $node represents the node whose comments we're displaying.
6 * $comments represents the rendered comments.
7 * $comment_link represents an "add new comment" link.
8 * $add_comments is TRUE if the user has permission to add comments.
9 * $redisplay is TRUE if the "add new comment" link should be redisplayed at the bottom of the page.
10 * $title represents the title of the talk page. Defaults to "Talk".
11 */
12 ?>
13 <p>
14 <?php print $comment_link; ?>
15 </p>
16 <br />
17 <?php print $comments; ?>
18 <?php if ($redisplay): ?>
19 <p>
20 <?php print $comment_link; ?>
21 </p>
22 <?php endif; ?>

  ViewVC Help
Powered by ViewVC 1.1.2