-
+ 385A932DF06790B1C0F63315966076F74D2D2FED040814106B254C5E0D165101992D0C5E9B0BECAD5BE6E6ADF9A5C7615EBB74082E9591B2BBFA9853A8438406
mp-wp/wp-admin/edit-form-comment.php
(0 . 0)(1 . 145)
10903 <?php
10904 /**
10905 * Edit comment form for inclusion in another file.
10906 *
10907 * @package WordPress
10908 * @subpackage Administration
10909 */
10910
10911 /**
10912 * @var string
10913 */
10914 $submitbutton_text = __('Edit Comment');
10915 $toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
10916 $form_action = 'editedcomment';
10917 $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment->comment_ID . "' />\n<input type='hidden' name='comment_post_ID' value='" . $comment->comment_post_ID;
10918 ?>
10919
10920 <form name="post" action="comment.php" method="post" id="post">
10921 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
10922 <div class="wrap">
10923 <?php screen_icon(); ?>
10924 <h2><?php _e('Edit Comment'); ?></h2>
10925
10926 <div id="poststuff" class="metabox-holder">
10927 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
10928 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
10929 <?php
10930
10931 $email = attribute_escape( $comment->comment_author_email );
10932 $url = attribute_escape( $comment->comment_author_url );
10933 // add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core');
10934 ?>
10935
10936 <div id="side-info-column" class="inner-sidebar">
10937 <div id="submitdiv" class="stuffbox" >
10938 <h3><span class='hndle'><?php _e('Status') ?></span></h3>
10939 <div class="inside">
10940 <div class="submitbox" id="submitcomment">
10941 <div id="minor-publishing">
10942
10943 <div id="minor-publishing-actions">
10944 <div id="preview-action">
10945 <a class="preview button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View Comment'); ?></a>
10946 </div>
10947 <div class="clear"></div>
10948 </div>
10949
10950 <div id="misc-publishing-actions">
10951
10952 <div class="misc-pub-section" id="comment-status-radio">
10953 <label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php echo _c('Approved|adjective') ?></label><br />
10954 <label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php echo _c('Pending|adjective') ?></label><br />
10955 <label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php echo _c('Spam|adjective'); ?></label>
10956 </div>
10957
10958 <div class="misc-pub-section curtime misc-pub-section-last">
10959 <?php
10960 $datef = _c( 'M j, Y @ G:i|Publish box date format');
10961 $stamp = __('Submitted on: <b>%1$s</b>');
10962 $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
10963 ?>
10964 <span id="timestamp"><?php printf($stamp, $date); ?></span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
10965 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>
10966 </div>
10967 </div> <!-- misc actions -->
10968 <div class="clear"></div>
10969 </div>
10970
10971 <div id="major-publishing-actions">
10972 <div id="delete-action">
10973 <a class='submitdelete deletion' href='<?php echo wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete'); ?></a>
10974 </div>
10975 <div id="publishing-action">
10976 <input type="submit" name="save" value="<?php _e('Update Comment'); ?>" tabindex="4" class="button-primary" />
10977 </div>
10978 <div class="clear"></div>
10979 </div>
10980 </div>
10981 </div>
10982 </div>
10983 </div>
10984
10985 <div id="post-body" class="has-sidebar">
10986 <div id="post-body-content" class="has-sidebar-content">
10987
10988 <div id="namediv" class="stuffbox">
10989 <h3><label for="name"><?php _e( 'Author' ) ?></label></h3>
10990 <div class="inside">
10991 <table class="form-table">
10992 <tbody>
10993 <tr valign="top">
10994 <td class="first"><?php _e( 'Name:' ); ?></td>
10995 <td><input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" /></td>
10996 </tr>
10997 <tr valign="top">
10998 <td class="first">
10999 <?php
11000 if ( $email ) {
11001 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) );
11002 } else {
11003 _e( 'E-mail:' );
11004 }
11005 ?></td>
11006 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $email; ?>" tabindex="2" id="email" /></td>
11007 </tr>
11008 <tr valign="top">
11009 <td class="first">
11010 <?php
11011 $url = get_comment_author_url();
11012 if ( ! empty( $url ) && 'http://' != $url ) {
11013 $link = "<a href='$url' rel='external nofollow' target='_blank'>" . __('visit site') . "</a>";
11014 printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) );
11015 } else {
11016 _e( 'URL:' );
11017 } ?></td>
11018 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo $url; ?>" tabindex="3" /></td>
11019 </tr>
11020 </tbody>
11021 </table>
11022 <br />
11023 </div>
11024 </div>
11025
11026 <div id="postdiv" class="postarea">
11027 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
11028 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
11029 </div>
11030
11031 <?php do_meta_boxes('comment', 'normal', $comment); ?>
11032
11033 <input type="hidden" name="c" value="<?php echo $comment->comment_ID ?>" />
11034 <input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" />
11035 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
11036 <?php wp_original_referer_field(true, 'previous'); ?>
11037 <input type="hidden" name="noredir" value="1" />
11038
11039 </div>
11040 </div>
11041 </div>
11042 </div>
11043 </form>
11044
11045 <script type="text/javascript">
11046 try{document.post.name.focus();}catch(e){}
11047 </script>