Ticket #3787: 3787.diff
| File 3787.diff, 1.1 KB (added by , 19 years ago) |
|---|
-
wp-content/themes/default/comments.php
14 14 } 15 15 16 16 /* This variable is for alternating comment background */ 17 $oddcomment = ' alt';17 $oddcomment = 'class="alt" '; 18 18 ?> 19 19 20 20 <!-- You can start editing here. --> … … 26 26 27 27 <?php foreach ($comments as $comment) : ?> 28 28 29 <li class="<?php echo $oddcomment; ?>"id="comment-<?php comment_ID() ?>">29 <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> 30 30 <cite><?php comment_author_link() ?></cite> Says: 31 31 <?php if ($comment->comment_approved == '0') : ?> 32 32 <em>Your comment is awaiting moderation.</em> … … 40 40 </li> 41 41 42 42 <?php /* Changes every other comment to a different class */ 43 if (' alt' == $oddcomment) $oddcomment = '';44 else $oddcomment = ' alt';43 if ('class="alt" ' == $oddcomment) $oddcomment = ''; 44 else $oddcomment = 'class="alt" '; 45 45 ?> 46 46 47 47 <?php endforeach; /* end for each comment */ ?>