diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-04 19:24:24 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-04 19:24:24 +0000 |
commit | 258b5760202eeb7140021cf15e6b7c51eba5127d (patch) | |
tree | 4488d2fe9e4313c1127cb015113bff2cde688e28 /themes | |
parent | b5e64f5a6ed1c7160a6104097185cc486db3aa95 (diff) | |
download | brdo-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 'themes')
-rw-r--r-- | themes/bluemarine/comment.tpl.php | 2 | ||||
-rw-r--r-- | themes/chameleon/chameleon.theme | 2 | ||||
-rw-r--r-- | themes/garland/comment.tpl.php | 2 | ||||
-rw-r--r-- | themes/pushbutton/comment.tpl.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/themes/bluemarine/comment.tpl.php b/themes/bluemarine/comment.tpl.php index 1aa1e193a..bd1249119 100644 --- a/themes/bluemarine/comment.tpl.php +++ b/themes/bluemarine/comment.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?> - <div class="comment<?php if (isset($comment->status) && $comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>"> + <div class="comment<?php print ' '. $status; ?>"> <?php if ($picture) { print $picture; } ?> diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index f86ccfceb..aeac570d9 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -157,7 +157,7 @@ function chameleon_comment($comment, $node, $links = array()) { 'title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))), 'html' => TRUE); - $output = "<div class=\"comment". ($comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n"; + $output = "<div class=\"comment". ' '. $status ."\">\n"; $output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."</h3>\n"; $output .= " <div class=\"content\">". $comment->comment; if (!empty($signature)) { diff --git a/themes/garland/comment.tpl.php b/themes/garland/comment.tpl.php index 07ea0bca6..ea83a24d8 100644 --- a/themes/garland/comment.tpl.php +++ b/themes/garland/comment.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?> -<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print (isset($comment->status) && $comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; print ' '. $zebra; ?>"> +<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status; print ' '. $zebra; ?>"> <div class="clear-block"> <?php if ($submitted): ?> diff --git a/themes/pushbutton/comment.tpl.php b/themes/pushbutton/comment.tpl.php index 5311b6aed..264561b69 100644 --- a/themes/pushbutton/comment.tpl.php +++ b/themes/pushbutton/comment.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?> -<div class="comment<?php if ($comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>"> +<div class="comment<?php print ' '. $status; ?>"> <?php if ($picture) : ?> <?php print $picture ?> <?php endif; ?> |