summaryrefslogtreecommitdiff
path: root/themes/engines/phptemplate
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-04-15 04:07:18 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-04-15 04:07:18 +0000
commit8b04c7f0db4a7a483049635f961d1dcba7e568f1 (patch)
tree74f297d5b8609bf9fe4318dc912d1efad2051d4d /themes/engines/phptemplate
parent361c7c7ed89ed340e348ed73310819bda8b23ff0 (diff)
downloadbrdo-8b04c7f0db4a7a483049635f961d1dcba7e568f1.tar.gz
brdo-8b04c7f0db4a7a483049635f961d1dcba7e568f1.tar.bz2
#51002: Admins could not see unpublished comments (plus minor usability enhancements for previewing/unpublished)
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; ?>