summaryrefslogtreecommitdiffstats
path: root/wp-content/themes/default/comments.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-23 15:47:59 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-23 15:47:59 +0000
commit132f53ddaeb250222a4ac85ebc0bf4dd780db60e (patch)
treed3deccaeee2dd2460dc36fef83685262ef0b64fc /wp-content/themes/default/comments.php
parent5235dfe56983b253c4ea3ec91bc436e5ffb2660a (diff)
WP Merge to 4929
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@899 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content/themes/default/comments.php')
-rw-r--r--wp-content/themes/default/comments.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-content/themes/default/comments.php b/wp-content/themes/default/comments.php
index 1108de8..0ff43b4 100644
--- a/wp-content/themes/default/comments.php
+++ b/wp-content/themes/default/comments.php
@@ -14,7 +14,7 @@
}
/* This variable is for alternating comment background */
- $oddcomment = 'alt';
+ $oddcomment = 'class="alt" ';
?>
<!-- You can start editing here. -->
@@ -26,7 +26,7 @@
<?php foreach ($comments as $comment) : ?>
- <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
+ <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite> Says:
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
@@ -39,9 +39,9 @@
</li>
- <?php /* Changes every other comment to a different class */
- if ('alt' == $oddcomment) $oddcomment = '';
- else $oddcomment = 'alt';
+ <?php
+ /* Changes every other comment to a different class */
+ $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
?>
<?php endforeach; /* end for each comment */ ?>