summaryrefslogtreecommitdiff
path: root/themes/engines/phptemplate
diff options
context:
space:
mode:
Diffstat (limited to 'themes/engines/phptemplate')
-rw-r--r--themes/engines/phptemplate/comment.tpl.php2
-rw-r--r--themes/engines/phptemplate/node.tpl.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/themes/engines/phptemplate/comment.tpl.php b/themes/engines/phptemplate/comment.tpl.php
index 69962aeb4..2456c5819 100644
--- a/themes/engines/phptemplate/comment.tpl.php
+++ b/themes/engines/phptemplate/comment.tpl.php
@@ -1,4 +1,4 @@
-<div class="comment <?php print ($comment->new) ? 'comment-new' : '' ?>">
+<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?>">
<?php if ($comment->new) : ?>
<a id="new"></a>
<span class="new"><?php print $new ?></span>
diff --git a/themes/engines/phptemplate/node.tpl.php b/themes/engines/phptemplate/node.tpl.php
index 6f00cdb1f..028aeb3ce 100644
--- a/themes/engines/phptemplate/node.tpl.php
+++ b/themes/engines/phptemplate/node.tpl.php
@@ -1,4 +1,4 @@
-<div class="node<?php print ($sticky) ? " sticky" : ""; ?>">
+<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
<?php if ($page == 0): ?>
<h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>