Changeset 4922
- Timestamp:
- 02/23/07 00:55:52 (1 year ago)
- Files:
-
- trunk/wp-content/themes/default/comments.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-content/themes/default/comments.php
r4901 r4922 15 15 16 16 /* This variable is for alternating comment background */ 17 $oddcomment = ' alt';17 $oddcomment = 'class="alt" '; 18 18 ?> 19 19 … … 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') : ?> … … 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
