Ticket #31326: 31326.3.new-links-text.patch
File 31326.3.new-links-text.patch, 7.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/common.css
2015 2015 margin-top: 0; 2016 2016 } 2017 2017 2018 .edit-comment-section .edit-comment-author { 2019 margin: 0; 2020 padding: 20px 22px 0 10px; 2021 font-size: 14px; 2022 line-height: 1.4; 2023 font-weight: 600; 2024 color: #222; 2025 } 2026 2018 2027 #namediv h3 label { 2019 2028 vertical-align: baseline; 2020 2029 } … … 2023 2032 width: 100%; 2024 2033 } 2025 2034 2035 .edit-comment-section #namediv td { 2036 vertical-align: top; 2037 } 2038 2026 2039 #namediv td.first { 2027 2040 width: 10px; 2028 2041 white-space: nowrap; 2029 2042 } 2030 2043 2044 .edit-comment-section #namediv td.first { 2045 padding-top: 20px; 2046 } 2047 2031 2048 #namediv input { 2032 2049 width: 98%; 2033 2050 } … … 2036 2053 margin: 10px 0; 2037 2054 } 2038 2055 2056 #namediv .edit-comment-send-email, 2057 #namediv .edit-comment-visit-site { 2058 margin-bottom: -10px; 2059 } 2060 2039 2061 #submitdiv h3 { 2040 2062 margin-bottom: 0 !important; 2041 2063 } … … 3203 3225 #comments-form .checkforspam { 3204 3226 display: none; 3205 3227 } 3228 3229 .edit-comment-section .edit-comment-author { 3230 padding-left: 0; 3231 } 3232 3233 .edit-comment-section .form-table td { 3234 margin-bottom: 0; 3235 } 3236 3237 .edit-comment-section .form-table td.first { 3238 padding-bottom: 5px; 3239 } 3206 3240 } 3207 3241 3208 3242 /* Smartphone */ -
src/wp-admin/edit-form-comment.php
21 21 <input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" /> 22 22 23 23 <div id="post-body" class="metabox-holder columns-2"> 24 <div id="post-body-content" class="edit-form-section ">24 <div id="post-body-content" class="edit-form-section edit-comment-section"> 25 25 <div id="namediv" class="stuffbox"> 26 <h3><label for="name"><?php _e( 'Author' ) ?></label></h3>27 26 <div class="inside"> 27 <fieldset> 28 <legend class="edit-comment-author"><?php _e( 'Author' ) ?></legend> 28 29 <table class="form-table editcomment"> 29 30 <tbody> 30 31 <tr> 31 <td class="first">< ?php _e( 'Name:' ); ?></td>32 <td class="first"><label for="name"><?php _e( 'Name:' ); ?></label></td> 32 33 <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td> 33 34 </tr> 34 35 <tr> 35 <td class="first"> 36 < ?php37 if ( $comment->comment_author_email ) {38 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) );39 } else{40 _e( 'E-mail:' );41 }42 ?></td>43 < td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" /></td>36 <td class="first"><label for="email"><?php _e( 'E-mail:' ); ?></label></td> 37 <td> 38 <input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" /> 39 <?php 40 if ( $comment->comment_author_email ) { 41 echo '<p class="edit-comment-send-email">' . get_comment_author_email_link( __( 'Email comment author' ), '', '' ) . '</p>'; 42 } 43 ?> 44 </td> 44 45 </tr> 45 46 <tr> 46 <td class="first"> 47 <?php 48 if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) { 49 $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>'; 50 $author = get_comment_author( $comment->comment_ID ); 51 /** This filter is documented in wp-includes/comment-template.php */ 52 printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link, $author, $comment->comment_ID ) ); 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); ?>" /></td> 47 <td class="first"><label for="newcomment_author_url"><?php _e( 'URL:' ); ?></label></td> 48 <td> 49 <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" /> 50 <?php 51 if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) { 52 $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __( 'Visit comment author’s website' ) . '</a>'; 53 $author = get_comment_author( $comment->comment_ID ); 54 /** This filter is documented in wp-includes/comment-template.php */ 55 echo '<p class="edit-comment-visit-site">' . apply_filters( 'get_comment_author_link', $link, $author, $comment->comment_ID ) . '</p>'; 56 } 57 ?> 58 </td> 57 59 </tr> 58 60 </tbody> 59 61 </table> 60 62 <br /> 63 </fieldset> 61 64 </div> 62 65 </div> 63 66 67 64 68 <div id="postdiv" class="postarea"> 65 69 <?php 70 echo '<label for="content" class="screen-reader-text">' . __( 'Comment' ) . '</label>'; 66 71 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); 67 72 wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); 68 73 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> … … 85 90 86 91 <div id="misc-publishing-actions"> 87 92 88 <div class="misc-pub-section misc-pub-comment-status" id="comment-status-radio"> 93 <fieldset class="misc-pub-section misc-pub-comment-status" id="comment-status-radio"> 94 <legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend> 89 95 <label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php /* translators: comment type radio button */ _ex('Approved', 'adjective') ?></label><br /> 90 96 <label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php /* translators: comment type radio button */ _ex('Pending', 'adjective') ?></label><br /> 91 97 <label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?></label> 92 </ div>98 </fieldset> 93 99 94 100 <?php if ( $ip = get_comment_author_IP() ) : ?> 95 101 <div class="misc-pub-section misc-pub-comment-author-ip"> 96 < ?php _e( 'IP address:' ); ?> <strong><a href="<?php echo esc_url( sprintf( 'http://whois.arin.net/rest/ip/%s', $ip ) ); ?>"><?php echo esc_html( $ip ); ?></a></strong>102 <span aria-hidden="true"><?php _e( 'IP address:' ); ?></span> <strong><a href="<?php echo esc_url( sprintf( 'http://whois.arin.net/rest/ip/%s', $ip ) ); ?>"> <span class="screen-reader-text"><?php _e( 'IP address:' ); ?> </span><?php echo esc_html( $ip ); ?></a></strong> 97 103 </div> 98 104 <?php endif; ?> 99 105 … … 104 110 $stamp = __('Submitted on: <b>%1$s</b>'); 105 111 $date = date_i18n( $datef, strtotime( $comment->comment_date ) ); 106 112 ?> 107 <span id="timestamp"><?php printf($stamp, $date); ?></span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a> 113 <span id="timestamp"><?php printf( $stamp, $date ); ?></span> 114 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a> 108 115 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0); ?></div> 109 116 </div> 110 117