raw
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_remove-all-... 62 <span id="timestamp"><?php printf($stamp, $date); ?></span>
mp-wp_remove-all-... 63 <div id='timestampdiv'><?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_remove-all-... 71 <a
mp-wp_remove-all-... 72 class='submitdelete deletion'
mp-wp_remove-all-... 73 href='<?php echo wp_nonce_url(
mp-wp_remove-all-... 74 "comment.php?action=deletecomment&amp;c=$comment->comment_ID&amp;_wp_original_http_referer=" . wp_get_referer(),
mp-wp_remove-all-... 75 'delete-comment_' . $comment->comment_ID
mp-wp_remove-all-... 76 )?>'
mp-wp_remove-all-... 77 >
mp-wp_remove-all-... 78 Delete
mp-wp_remove-all-... 79 </a>
mp-wp_genesis 80 </div>
mp-wp_genesis 81 <div id="publishing-action">
mp-wp_genesis 82 <input type="submit" name="save" value="<?php _e('Update Comment'); ?>" tabindex="4" class="button-primary" />
mp-wp_genesis 83 </div>
mp-wp_genesis 84 <div class="clear"></div>
mp-wp_genesis 85 </div>
mp-wp_genesis 86 </div>
mp-wp_genesis 87 </div>
mp-wp_genesis 88 </div>
mp-wp_genesis 89 </div>
mp-wp_genesis 90
mp-wp_genesis 91 <div id="post-body" class="has-sidebar">
mp-wp_genesis 92 <div id="post-body-content" class="has-sidebar-content">
mp-wp_genesis 93
mp-wp_genesis 94 <div id="namediv" class="stuffbox">
mp-wp_genesis 95 <h3><label for="name"><?php _e( 'Author' ) ?></label></h3>
mp-wp_genesis 96 <div class="inside">
mp-wp_genesis 97 <table class="form-table">
mp-wp_genesis 98 <tbody>
mp-wp_genesis 99 <tr valign="top">
mp-wp_genesis 100 <td class="first"><?php _e( 'Name:' ); ?></td>
mp-wp_genesis 101 <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 102 </tr>
mp-wp_genesis 103 <tr valign="top">
mp-wp_genesis 104 <td class="first">
mp-wp_genesis 105 <?php
mp-wp_genesis 106 if ( $email ) {
mp-wp_genesis 107 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) );
mp-wp_genesis 108 } else {
mp-wp_genesis 109 _e( 'E-mail:' );
mp-wp_genesis 110 }
mp-wp_genesis 111 ?></td>
mp-wp_genesis 112 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $email; ?>" tabindex="2" id="email" /></td>
mp-wp_genesis 113 </tr>
mp-wp_genesis 114 <tr valign="top">
mp-wp_genesis 115 <td class="first">
mp-wp_genesis 116 <?php
mp-wp_genesis 117 $url = get_comment_author_url();
mp-wp_genesis 118 if ( ! empty( $url ) && 'http://' != $url ) {
mp-wp_genesis 119 $link = "<a href='$url' rel='external nofollow' target='_blank'>" . __('visit site') . "</a>";
mp-wp_genesis 120 printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) );
mp-wp_genesis 121 } else {
mp-wp_genesis 122 _e( 'URL:' );
mp-wp_genesis 123 } ?></td>
mp-wp_genesis 124 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo $url; ?>" tabindex="3" /></td>
mp-wp_genesis 125 </tr>
mp-wp_genesis 126 </tbody>
mp-wp_genesis 127 </table>
mp-wp_genesis 128 <br />
mp-wp_genesis 129 </div>
mp-wp_genesis 130 </div>
mp-wp_genesis 131
mp-wp_genesis 132 <div id="postdiv" class="postarea">
mp-wp_genesis 133 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
mp-wp_genesis 134 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
mp-wp_genesis 135 </div>
mp-wp_genesis 136
mp-wp_genesis 137 <?php do_meta_boxes('comment', 'normal', $comment); ?>
mp-wp_genesis 138
mp-wp_genesis 139 <input type="hidden" name="c" value="<?php echo $comment->comment_ID ?>" />
mp-wp_genesis 140 <input type="hidden" name="p" value="<?php echo $comment->comment_post_ID ?>" />
mp-wp_genesis 141 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
mp-wp_genesis 142 <?php wp_original_referer_field(true, 'previous'); ?>
mp-wp_genesis 143 <input type="hidden" name="noredir" value="1" />
mp-wp_genesis 144
mp-wp_genesis 145 </div>
mp-wp_genesis 146 </div>
mp-wp_genesis 147 </div>
mp-wp_genesis 148 </div>
mp-wp_genesis 149 </form>
mp-wp_genesis 150