| 48 | | |
|---|
| 49 | | echo "<div class='wrap'>\n"; |
|---|
| 50 | | if ( 'spam' == $_GET['delete_type'] ) |
|---|
| 51 | | echo "<p>" . __('<strong>Caution:</strong> You are about to mark the following comment as spam:') . "</p>\n"; |
|---|
| 52 | | elseif ( 'confirmdeletecomment' == $action ) |
|---|
| 53 | | echo "<p>" . __('<strong>Caution:</strong> You are about to delete the following comment:') . "</p>\n"; |
|---|
| 54 | | else |
|---|
| 55 | | echo "<p>" . __('<strong>Caution:</strong> You are about to approve the following comment:') . "</p>\n"; |
|---|
| 56 | | echo "<table border='0'>\n"; |
|---|
| 57 | | echo "<tr><td>" . __('Author:') . "</td><td>$comment->comment_author</td></tr>\n"; |
|---|
| 58 | | echo "<tr><td>" . __('E-mail:') . "</td><td>$comment->comment_author_email</td></tr>\n"; |
|---|
| 59 | | echo "<tr><td>". __('URL:') . "</td><td>$comment->comment_author_url</td></tr>\n"; |
|---|
| 60 | | echo "<tr><td>". __('Comment:') . "</td><td>$comment->comment_content</td></tr>\n"; |
|---|
| 61 | | echo "</table>\n"; |
|---|
| 62 | | echo "<p>" . __('Are you sure you want to do that?') . "</p>\n"; |
|---|
| 63 | | |
|---|
| 64 | | echo "<form action='".get_option('siteurl')."/wp-admin/comment.php' method='get'>\n"; |
|---|
| 65 | | wp_nonce_field($nonce_action); |
|---|
| 66 | | echo "<input type='hidden' name='action' value='$formaction' />\n"; |
|---|
| 67 | | if ( 'spam' == $_GET['delete_type'] ) |
|---|
| 68 | | echo "<input type='hidden' name='delete_type' value='spam' />\n"; |
|---|
| 69 | | echo "<input type='hidden' name='p' value='$p' />\n"; |
|---|
| 70 | | echo "<input type='hidden' name='comment' value='{$comment->comment_ID}' />\n"; |
|---|
| 71 | | echo "<input type='hidden' name='noredir' value='1' />\n"; |
|---|
| 72 | | echo "<input type='submit' value='" . __('Yes') . "' />"; |
|---|
| 73 | | echo " "; |
|---|
| 74 | | echo "<input type='button' value='" . __('No') . "' onclick=\"self.location='". get_option('siteurl') ."/wp-admin/edit-comments.php';\" />\n"; |
|---|
| 75 | | echo "</form>\n"; |
|---|
| 76 | | echo "</div>\n"; |
|---|
| 77 | | |
|---|
| | 48 | ?> |
|---|
| | 49 | <div class='wrap'> |
|---|
| | 50 | |
|---|
| | 51 | <div class="narrow"> |
|---|
| | 52 | <?php if ( 'spam' == $_GET['delete_type'] ) { ?> |
|---|
| | 53 | <p><?php _e('<strong>Caution:</strong> You are about to mark the following comment as spam:'); ?></p> |
|---|
| | 54 | <?php } elseif ( 'confirmdeletecomment' == $action ) { ?> |
|---|
| | 55 | <p><?php _e('<strong>Caution:</strong> You are about to delete the following comment:'); ?></p> |
|---|
| | 56 | <?php } else { ?> |
|---|
| | 57 | <p><?php _e('<strong>Caution:</strong> You are about to approve the following comment:'); ?></p> |
|---|
| | 58 | <?php } ?> |
|---|
| | 59 | |
|---|
| | 60 | <p><?php _e('Are you sure you want to do that?'); ?></p> |
|---|
| | 61 | |
|---|
| | 62 | <form action='<?php echo get_option('siteurl'); ?>/wp-admin/comment.php' method='get'> |
|---|
| | 63 | |
|---|
| | 64 | <table width="100%"> |
|---|
| | 65 | <tr> |
|---|
| | 66 | <td><input type='button' value='<?php _e('No'); ?>' onclick="self.location='<?php echo get_option('siteurl'); ?>/wp-admin/edit-comments.php';" /></td> |
|---|
| | 67 | <td align="right"><input type='submit' value='<?php _e('Yes'); ?>' /></td> |
|---|
| | 68 | </tr> |
|---|
| | 69 | </table> |
|---|
| | 70 | |
|---|
| | 71 | <?php wp_nonce_field($nonce_action); ?> |
|---|
| | 72 | <input type='hidden' name='action' value='<?php echo $formaction; ?>' /> |
|---|
| | 73 | <?php if ( 'spam' == $_GET['delete_type'] ) { ?> |
|---|
| | 74 | <input type='hidden' name='delete_type' value='spam' /> |
|---|
| | 75 | <?php } ?> |
|---|
| | 76 | <input type='hidden' name='p' value='<?php echo $comment->comment_post_ID; ?>' /> |
|---|
| | 77 | <input type='hidden' name='comment' value='<?php echo $comment->comment_ID; ?>' /> |
|---|
| | 78 | <input type='hidden' name='noredir' value='1' /> |
|---|
| | 79 | </form> |
|---|
| | 80 | |
|---|
| | 81 | <table class="editform" cellpadding="5"> |
|---|
| | 82 | <tr class="alt"> |
|---|
| | 83 | <th scope="row"><?php _e('Author:'); ?></th> |
|---|
| | 84 | <td><?php echo $comment->comment_author; ?></td> |
|---|
| | 85 | </tr> |
|---|
| | 86 | <?php if ( $comment->comment_author_email ) { ?> |
|---|
| | 87 | <tr> |
|---|
| | 88 | <th scope="row"><?php _e('E-mail:'); ?></th> |
|---|
| | 89 | <td><?php echo $comment->comment_author_email; ?></td> |
|---|
| | 90 | </tr> |
|---|
| | 91 | <?php } ?> |
|---|
| | 92 | <?php if ( $comment->comment_author_url ) { ?> |
|---|
| | 93 | <tr> |
|---|
| | 94 | <th scope="row"><?php _e('URL:'); ?></th> |
|---|
| | 95 | <td><?php echo $comment->comment_author_url; ?></td> |
|---|
| | 96 | </tr> |
|---|
| | 97 | <?php } ?> |
|---|
| | 98 | <tr> |
|---|
| | 99 | <th scope="row" valign="top"><p><?php _e('Comment:'); ?></p></th> |
|---|
| | 100 | <td><?php echo apply_filters( 'comment_text', $comment->comment_content ); ?></td> |
|---|
| | 101 | </tr> |
|---|
| | 102 | </table> |
|---|
| | 103 | |
|---|
| | 104 | </div> |
|---|
| | 105 | </div> |
|---|
| | 106 | <?php |
|---|