summaryrefslogtreecommitdiff
path: root/modules/comment/comment.tpl.php
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-04 19:24:24 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-04 19:24:24 +0000
commit258b5760202eeb7140021cf15e6b7c51eba5127d (patch)
tree4488d2fe9e4313c1127cb015113bff2cde688e28 /modules/comment/comment.tpl.php
parentb5e64f5a6ed1c7160a6104097185cc486db3aa95 (diff)
downloadbrdo-258b5760202eeb7140021cf15e6b7c51eba5127d.tar.gz
brdo-258b5760202eeb7140021cf15e6b7c51eba5127d.tar.bz2
#199809 by theborg: comment templates were not checking status properly (fix notice, allows themes to theme in-preview comments differently)
Diffstat (limited to 'modules/comment/comment.tpl.php')
-rw-r--r--modules/comment/comment.tpl.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/comment.tpl.php b/modules/comment/comment.tpl.php
index 0a5f9579b..68cc55268 100644
--- a/modules/comment/comment.tpl.php
+++ b/modules/comment/comment.tpl.php
@@ -13,6 +13,8 @@
* - $new: New comment marker.
* - $picture: Authors picture.
* - $signature: Authors signature.
+ * - $status: Comment status. Possible values are:
+ * comment-unpublished, comment-published or comment-review.
* - $submitted: By line with date and time.
* - $title: Linked title.
*
@@ -24,7 +26,7 @@
* @see theme_comment()
*/
?>
-<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
+<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status ?> clear-block">
<?php print $picture ?>
<?php if ($comment->new): ?>