Changeset 1744 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 10/05/2004 07:13:51 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-comments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r1743 r1744 26 26 </script> 27 27 <div class="wrap"> 28 <h2><?php _e('Comments'); ?></h2> 28 29 <form name="searchform" action="" method="get"> 29 30 <fieldset> … … 66 67 if ($comments) { 67 68 echo '<ol class="commentlist">'; 69 $i = 0; 68 70 foreach ($comments as $comment) { 71 ++$i; $class = ''; 69 72 $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); 70 73 $comment_status = wp_get_comment_status($comment->comment_ID); 71 if ('unapproved' == $comment_status) {72 echo '<li class="unapproved">';73 } else {74 echo '<li>';75 }76 ?>74 if ('unapproved' == $comment_status) 75 $class .= ' unapproved'; 76 if ($i % 2) 77 $class .= ' alternate'; 78 echo "<li class='$class'>"; 79 ?> 77 80 <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p> 78 81
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)