Changeset 1454
- Timestamp:
- 07/06/2004 06:14:42 PM (22 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
-
admin-functions.php (modified) (1 diff)
-
edit-comments.php (modified) (1 diff)
-
edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r1448 r1454 118 118 $pad = str_repeat('— ', $level); 119 119 120 $ bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';121 echo "<tr style='background-color: $bgcolor'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>120 $class = ('alternate' == $class) ? '' : 'alternate'; 121 echo "<tr class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td> 122 122 <td>$category->category_description</td> 123 123 <td>$count</td> -
trunk/wp-admin/edit-comments.php
r1429 r1454 121 121 foreach ($comments as $comment) { 122 122 $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); 123 $ bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';123 $class = ('alternate' == $class) ? '' : 'alternate'; 124 124 ?> 125 <tr style='background-color: <?php echo $bgcolor; ?>'>125 <tr class='<?php echo $class; ?>'> 126 126 <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td> 127 127 <td><?php comment_author_link() ?></td> -
trunk/wp-admin/edit.php
r1429 r1454 95 95 $bgcolor = ''; 96 96 foreach ($posts as $post) { start_wp(); 97 $ bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';97 $class = ('alternate' == $class) ? '' : 'alternate'; 98 98 ?> 99 <tr style='background-color: <?php echo $bgcolor; ?>'>99 <tr class='<?php echo $class; ?>'> 100 100 <th scope="row"><?php echo $id ?></th> 101 101 <td><?php the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td>
Note: See TracChangeset
for help on using the changeset viewer.