mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Edit comment form for inclusion in another file.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /**
mp-wp_genesis 10 * @var string
mp-wp_genesis 11 */
mp-wp_genesis 12 $submitbutton_text = __('Edit Comment');
mp-wp_genesis 13 $toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
mp-wp_genesis 14 $form_action = 'editedcomment';
mp-wp_genesis 15 $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;
mp-wp_genesis 16 ?>
mp-wp_genesis 17
mp-wp_genesis 18 <form name="post" action="comment.php" method="post" id="post">
mp-wp_genesis 19 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
mp-wp_genesis 20 <div class="wrap">
mp-wp_genesis 21 <?php screen_icon(); ?>
mp-wp_genesis 22 <h2><?php _e('Edit Comment'); ?></h2>
mp-wp_genesis 23
mp-wp_genesis 24 <div id="poststuff" class="metabox-holder">
mp-wp_genesis 25 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
mp-wp_genesis 26 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
mp-wp_genesis 27 <?php
mp-wp_genesis 28
mp-wp_genesis 29 $email = attribute_escape( $comment->comment_author_email );
mp-wp_genesis 30 $url = attribute_escape( $comment->comment_author_url );
mp-wp_genesis 31 // add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core');
mp-wp_genesis 32 ?>
mp-wp_genesis 33
mp-wp_genesis 34 <div id="side-info-column" class="inner-sidebar">
mp-wp_genesis 35 <div id="submitdiv" class="stuffbox" >
mp-wp_genesis 36 <h3><span class='hndle'><?php _e('Status') ?></span></h3>
mp-wp_genesis 37 <div class="inside">
mp-wp_genesis 38 <div class="submitbox" id="submitcomment">
mp-wp_genesis 39 <div id="minor-publishing">
mp-wp_genesis 40
mp-wp_genesis 41 <div id="minor-publishing-actions">
mp-wp_genesis 42 <div id="preview-action">
mp-wp_genesis 43 <a class="preview button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View Comment'); ?></a>
mp-wp_genesis 44 </div>
mp-wp_genesis 45 <div class="clear"></div>
mp-wp_genesis 46 </div>
mp-wp_genesis 47
mp-wp_genesis 48 <div id="misc-publishing-actions">
mp-wp_genesis 49
mp-wp_genesis 50 <div class="misc-pub-section" id="comment-status-radio">
mp-wp_genesis 51 <label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php echo _c('Approved|adjective') ?></label><br />
mp-wp_genesis 52 <label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php echo _c('Pending|adjective') ?></label><br />
mp-wp_genesis 53 <label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php echo _c('Spam|adjective'); ?></label>
mp-wp_genesis 54 </div>
mp-wp_genesis 55
mp-wp_genesis 56 <div class="misc-pub-section curtime misc-pub-section-last">
mp-wp_genesis 57 <?php
mp-wp_genesis 58 $datef = _c( 'M j, Y @ G:i|Publish box date format');
mp-wp_genesis 59 $stamp = __('Submitted on: <b>%1$s</b>');
mp-wp_genesis 60 $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
mp-wp_genesis 61 ?>
mp-wp_genesis 62 <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>
mp-wp_genesis 63 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>
mp-wp_genesis 64 </div>
mp-wp_genesis 65 </div> <!-- misc actions -->
mp-wp_genesis 66 <div class="clear"></div>
mp-wp_genesis 67 </div>
mp-wp_genesis 68
mp-wp_genesis 69 <div id="major-publishing-actions">
mp-wp_genesis 70 <div id="delete-action">
mp-wp_genesis 71 <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>
mp-wp_genesis 72 </div>
mp-wp_genesis 73 <div id="publishing-action">
mp-wp_genesis 74 <input type="submit" name="save" value="<?php _e('Update Comment'); ?>" tabindex="4" class="button-primary" />
mp-wp_genesis 75 </div>
mp-wp_genesis 76 <div class="clear"></div>
mp-wp_genesis 77 </div>
mp-wp_genesis 78 </div>
mp-wp_genesis 79 </div>
mp-wp_genesis 80 </div>
mp-wp_genesis 81 </div>
mp-wp_genesis 82
mp-wp_genesis 83 <div id="post-body" class="has-sidebar">
mp-wp_genesis 84 <div id="post-body-content" class="has-sidebar-content">
mp-wp_genesis 85
mp-wp_genesis 86 <div id="namediv" class="stuffbox">
mp-wp_genesis 87 <h3><label for="name"><?php _e( 'Author' ) ?></label></h3>
mp-wp_genesis 88 <div class="inside">
mp-wp_genesis 89 <table class="form-table">
mp-wp_genesis 90 <tbody>
mp-wp_genesis 91 <tr valign="top">
mp-wp_genesis 92 <td class="first"><?php _e( 'Name:' ); ?></td>
mp-wp_genesis 93 <td><input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" /></td>
mp-wp_genesis 94 </tr>
mp-wp_genesis 95 <tr valign="top">
mp-wp_genesis 96 <td class="first">
mp-wp_genesis 97 <?php
mp-wp_genesis 98 if ( $email ) {
mp-wp_genesis 99 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) );
mp-wp_genesis 100 } else {
mp-wp_genesis 101 _e( 'E-mail:' );
mp-wp_genesis 102 }
mp-wp_genesis 103 ?></td>
mp-wp_genesis 104 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $email; ?>" tabindex="2" id="email" /></td>
mp-wp_genesis 105 </tr>
mp-wp_genesis 106 <tr valign="top">
mp-wp_genesis 107 <td class="first">
mp-wp_genesis 108 <?php
mp-wp_genesis 109 $url = get_comment_author_url();
mp-wp_genesis 110 if ( ! empty( $url ) && 'http://' != $url ) {
mp-wp_genesis 111 $link = "<a href='$url' rel='external nofollow' target='_blank'>" . __('visit site') . "</a>";
mp-wp_genesis 112 printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) );
mp-wp_genesis 113 } else {
mp-wp_genesis 114 _e( 'URL:' );
mp-wp_genesis 115 } ?></td>
mp-wp_genesis 116 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo $url; ?>" tabindex="3" /></td>
mp-wp_genesis 117 </tr>
mp-wp_genesis 118 </tbody>
mp-wp_genesis 119 </table>
mp-wp_genesis 120 <br />
mp-wp_genesis 121 </div>
mp-wp_genesis 122 </div>
mp-wp_genesis 123
mp-wp_genesis 124 <div id="postdiv" class="postarea">
mp-wp_genesis 125 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
mp-wp_genesis 126 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
mp-wp_genesis 127 </div>
mp-wp_genesis 128
mp-wp_genesis 129 <?php do_meta_boxes('comment', 'normal', $comment); ?>
mp-wp_genesis 130
mp-wp_genesis 131 <input type="hidden" name="c" value="<?php echo $comment->comment_ID ?>" />
mp-wp_genesis 132 <input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" />
mp-wp_genesis 133 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
mp-wp_genesis 134 <?php wp_original_referer_field(true, 'previous'); ?>
mp-wp_genesis 135 <input type="hidden" name="noredir" value="1" />
mp-wp_genesis 136
mp-wp_genesis 137 </div>
mp-wp_genesis 138 </div>
mp-wp_genesis 139 </div>
mp-wp_genesis 140 </div>
mp-wp_genesis 141 </form>
mp-wp_genesis 142
mp-wp_genesis 143 <script type="text/javascript">
mp-wp_genesis 144 try{document.post.name.focus();}catch(e){}
mp-wp_genesis 145 </script>