Changeset 6213 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 10/09/2007 10:49:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r6026 r6213 103 103 $start = " start='$offset'"; 104 104 105 echo "<ol id='the-comment-list' class=' commentlist' $start>\n";105 echo "<ol id='the-comment-list' class='list:comment commentlist' $start>\n"; 106 106 $i = 0; 107 107 foreach ( $comments as $comment ) { … … 113 113 if ( $extra_comments ) : ?> 114 114 <div id="extra-comments" style="display:none"> 115 < ul id="the-extra-comment-list" class="commentlist">115 <ol id="the-extra-comment-list" class="list:comment commentlist" style="color:red"> 116 116 <?php 117 117 foreach ( $extra_comments as $comment ) { 118 118 get_comment( $comment ); // Cache it 119 _wp_comment_list_item( $comment->comment_ID, ++$i ); 120 } 121 ?> 122 </ul> 119 _wp_comment_list_item( $comment->comment_ID, 0 ); 120 } 121 ?> 122 </ol> 123 <form action="" method="get" id="get-extra-comments" class="add:the-extra-comment-list:"> 124 <input type="hidden" name="page" value="<?php echo $page; ?>" /> 125 <input type="hidden" name="s" value="<?php echo attribute_escape(@$_GET['s']); ?>" /> 126 <?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?> 123 127 </div> 124 128 <?php endif; // $extra_comments ?> … … 150 154 <th scope="col" colspan="3" style="text-align: center">' . __('Actions') . '</th> 151 155 </tr> 152 </thead>'; 156 </thead> 157 <tbody id="the-comment-list" class="list:comment">'; 153 158 foreach ($comments as $comment) { 154 159 $post = get_post($comment->comment_post_ID); … … 160 165 <tr id="comment-<?php echo $comment->comment_ID; ?>" class='<?php echo $class; ?>'> 161 166 <td style="text-align: center"><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td> 162 <td ><?php comment_author_link() ?></td>167 <td class="comment-author"><?php comment_author_link() ?></td> 163 168 <td><?php comment_author_email_link() ?></td> 164 169 <td><a href="edit-comments.php?s=<?php comment_author_IP() ?>&mode=edit"><?php comment_author_IP() ?></a></td> … … 174 179 echo "<a href='comment.php?action=editcomment&c=$comment->comment_ID' class='edit'>" . __('Edit') . "</a>"; } ?></td> 175 180 <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 176 echo "<a href=\"comment.php?action=deletecomment&p=".$comment->comment_post_ID."&c=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to delete this comment by '%s'. \n 'Cancel' to stop, 'OK' to delete."), $comment->comment_author )) . "', theCommentList );\" class='delete'>" . __('Delete') . "</a> "; 181 $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 182 echo "<a href='$url' class='delete:the-comment-list:comment-$comment->comment_ID delete'>" . __('Delete') . "</a> "; 177 183 } ?></td> 178 184 </tr> 179 185 <?php 180 186 } // end foreach 181 ?></table> 187 ?></tbody> 188 </table> 182 189 <p class="submit"><input type="submit" name="delete_button" class="delete" value="<?php _e('Delete Checked Comments »') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to delete")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to delete %s comments permanently \n 'Cancel' to stop, 'OK' to delete.")), "' + numchecked + '"); ?>')" /> 183 190 <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam »') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to mark as spam")); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to mark %s comments as spam \n 'Cancel' to stop, 'OK' to mark as spam.")), "' + numchecked + '"); ?>')" /></p>
Note: See TracChangeset
for help on using the changeset viewer.