summaryrefslogtreecommitdiff
path: root/modules/comment/comment.tpl.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-20 08:51:13 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-20 08:51:13 +0000
commit7d0cf742f7761b9c2a2fe2f22d40f96dd08d95fd (patch)
tree2ea1b24f773022851d99cdc032869cc6e2916ba1 /modules/comment/comment.tpl.php
parent1cd02d7ec1c472344df811bfd0fe09bae3c194fb (diff)
downloadbrdo-7d0cf742f7761b9c2a2fe2f22d40f96dd08d95fd.tar.gz
brdo-7d0cf742f7761b9c2a2fe2f22d40f96dd08d95fd.tar.bz2
- Patch #160589 by dvessel: tpl-ify the comment module's theme functions.
Diffstat (limited to 'modules/comment/comment.tpl.php')
-rw-r--r--modules/comment/comment.tpl.php32
1 files changed, 28 insertions, 4 deletions
diff --git a/modules/comment/comment.tpl.php b/modules/comment/comment.tpl.php
index ac4eeb88a..cd6ad25c1 100644
--- a/modules/comment/comment.tpl.php
+++ b/modules/comment/comment.tpl.php
@@ -1,10 +1,34 @@
+<?php
+// $Id
+/**
+ * @file comment.tpl.php
+ * Default theme implementation for comments.
+ *
+ * Available variables:
+ * - $author: Comment author. Can be link or plain text.
+ * - $content: Body of the post.
+ * - $date: Date and time of posting.
+ * - $links: Various operational links.
+ * - $new: New comment marker.
+ * - $picture: Authors picture.
+ * - $signature: Authors signature.
+ * - $submitted: By line with date and time.
+ * - $title: Linked title.
+ *
+ * These two variables are provided for context.
+ * - $comment: Full comment object.
+ * - $node: Node object the comments are attached to.
+ *
+ * @see template_preprocess_comment()
+ * @see theme_comment()
+ */
+?>
<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
<?php print $picture ?>
-<?php if ($comment->new) : ?>
- <a id="new"></a>
- <span class="new"><?php print $new ?></span>
-<?php endif; ?>
+ <?php if ($comment->new): ?>
+ <span class="new"><?php print $new ?></span>
+ <?php endif; ?>
<h3><?php print $title ?></h3>