Ticket #3787: 3787.3.diff
| File 3787.3.diff, 1.1 kB (added by rob1n, 2 years ago) |
|---|
-
wp-content/themes/default/comments.php
old new 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> … … 39 39 40 40 </li> 41 41 42 <?php /* Changes every other comment to a different class */43 if ('alt' == $oddcomment) $oddcomment = '';44 else $oddcomment = 'alt';42 <?php 43 /* Changes every other comment to a different class */ 44 $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : ''; 45 45 ?> 46 46 47 47 <?php endforeach; /* end for each comment */ ?>
