Changeset 20272 for trunk/wp-admin/edit-form-comment.php
- Timestamp:
- 03/23/2012 09:41:00 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-comment.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-comment.php
r20196 r20272 17 17 <h2><?php _e('Edit Comment'); ?></h2> 18 18 19 <div id="poststuff" class="metabox-holder has-right-sidebar">19 <div id="poststuff"> 20 20 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID; ?>" /> 21 21 <input type="hidden" name="action" value="editedcomment" /> … … 23 23 <input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" /> 24 24 25 <div id="side-info-column" class="inner-sidebar"> 25 <div id="post-body" class="metabox-holder columns-2"> 26 <div id="post-body-content"> 27 <div id="namediv" class="stuffbox"> 28 <h3><label for="name"><?php _e( 'Author' ) ?></label></h3> 29 <div class="inside"> 30 <table class="form-table editcomment"> 31 <tbody> 32 <tr valign="top"> 33 <td class="first"><?php _e( 'Name:' ); ?></td> 34 <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td> 35 </tr> 36 <tr valign="top"> 37 <td class="first"> 38 <?php 39 if ( $comment->comment_author_email ) { 40 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) ); 41 } else { 42 _e( 'E-mail:' ); 43 } 44 ?></td> 45 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td> 46 </tr> 47 <tr valign="top"> 48 <td class="first"> 49 <?php 50 if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) { 51 $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>'; 52 printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) ); 53 } else { 54 _e( 'URL:' ); 55 } ?></td> 56 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></td> 57 </tr> 58 </tbody> 59 </table> 60 <br /> 61 </div> 62 </div> 63 64 <div id="postdiv" class="postarea"> 65 <?php 66 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ); 67 wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); 68 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 69 </div> 70 </div><!-- /post-body-content --> 71 72 <div id="postbox-container-1" class="postbox-container"> 26 73 <div id="submitdiv" class="stuffbox" > 27 74 <h3><span class='hndle'><?php _e('Status') ?></span></h3> … … 70 117 </div> 71 118 </div> 72 </div> 119 </div><!-- /submitdiv --> 73 120 </div> 74 121 75 <div id="post-body"> 76 <div id="post-body-content"> 77 <div id="namediv" class="stuffbox"> 78 <h3><label for="name"><?php _e( 'Author' ) ?></label></h3> 79 <div class="inside"> 80 <table class="form-table editcomment"> 81 <tbody> 82 <tr valign="top"> 83 <td class="first"><?php _e( 'Name:' ); ?></td> 84 <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td> 85 </tr> 86 <tr valign="top"> 87 <td class="first"> 88 <?php 89 if ( $comment->comment_author_email ) { 90 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) ); 91 } else { 92 _e( 'E-mail:' ); 93 } 94 ?></td> 95 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td> 96 </tr> 97 <tr valign="top"> 98 <td class="first"> 99 <?php 100 if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) { 101 $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>'; 102 printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) ); 103 } else { 104 _e( 'URL:' ); 105 } ?></td> 106 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></td> 107 </tr> 108 </tbody> 109 </table> 110 <br /> 111 </div> 112 </div> 122 <div id="postbox-container-2" class="postbox-container"> 123 <?php 113 124 114 <div id="postdiv" class="postarea">115 <?php116 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' );117 wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) );118 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>119 </div>120 121 <?php122 125 do_action('add_meta_boxes', 'comment', $comment); 123 126 do_action('add_meta_boxes_comment', $comment); 124 127 125 128 do_meta_boxes(null, 'normal', $comment); 129 126 130 ?> 131 </div> 132 127 133 <input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" /> 128 134 <input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" /> … … 131 137 <input type="hidden" name="noredir" value="1" /> 132 138 133 </div> 134 </div> 139 </div><!-- /post-body --> 135 140 </div> 136 141 </div>
Note: See TracChangeset
for help on using the changeset viewer.