Changeset 13180
- Timestamp:
- 02/17/2010 07:28:03 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/style.css
r13179 r13180 115 115 #access .menu, 116 116 #cancel-comment-reply-link, 117 #form-allowed-tags,117 .form-allowed-tags, 118 118 #site-info, 119 119 #site-title, … … 128 128 .entry-title, 129 129 .entry-utility, 130 .form-label,130 #respond label, 131 131 .navigation, 132 132 .page-title, … … 973 973 position: relative; 974 974 } 975 #respond p { 976 margin: 0; 977 } 978 #respond .comment-notes { 979 margin-bottom: 1em; 980 } 975 981 .children #respond { 976 982 margin: 0 48px 0 0; … … 994 1000 font-weight:bold; 995 1001 } 996 .form-sectionlabel {997 color: #888; 998 font-size: 12px; 999 } 1000 .form-sectioninput {1002 #respond label { 1003 color: #888; 1004 font-size: 12px; 1005 } 1006 #respond input { 1001 1007 margin:0 0 9px 0; 1002 1008 width:98%; 1003 1009 } 1004 .form-sectiontextarea {1010 #respond textarea { 1005 1011 width:99%; 1006 1012 } 1007 #form-allowed-tags { 1008 color:#888; 1013 #respond dt, 1014 #respond dd { 1015 color: #888; 1009 1016 font-size: 12px; 1010 1017 line-height: 18px; 1011 1018 } 1012 #form-allowed-tags p { 1013 margin:0; 1014 } 1015 #form-allowed-tags span { 1016 } 1017 #form-allowed-tags code { 1019 #respond dd code { 1018 1020 font-size: 11px; 1019 1021 } 1020 .form-submit { 1021 margin: 12px 0 24px 0; 1022 #respond .form-submit { 1023 margin: 0 0 24px; 1024 } 1025 #respond .form-submit input { 1026 width: auto; 1027 } 1028 #respond dl { 1029 margin: 0 0 10px; 1030 } 1031 #respond dt { 1032 display: inline; 1033 font-weight: normal; 1034 } 1035 #respond dd { 1036 display: inline; 1022 1037 } 1023 1038 -
trunk/wp-includes/comment-template.php
r13171 r13180 1467 1467 $req = get_option( 'require_name_email' ); 1468 1468 $aria_req = ( $req ? " aria-required='true'" : '' ); 1469 $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '< div id="form-section-author" class="form-section">1470 <div class="form-label"><label for="author">' . __( 'Name', 'twentyten' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</div>1471 <div class="form-input"><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1"' . $aria_req . ' /></div>1472 </div><!-- #form-section-author .form-section -->',1473 'email' => '<div id="form-section-email" class="form-section">1474 <div class="form-label"><label for="email">' . __( 'Email', 'twentyten' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</div>1475 <div class="form-input"><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"' . $aria_req . ' /></div>1476 </div><!-- #form-section-email .form-section -->',1477 'url' => '<div id="form-section-url" class="form-section">1478 <div class="form-label"><label for="url">' . __( 'Website', 'twentyten' ) . '</label></div>1479 <div class="form-input"><input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" /></div>1480 </div><!-- #form-section-url .form-section -->' ) ),1481 'comment_field' => '<div id="form-section-comment" class="form-section">1482 <div class="form-label"><label for="comment">' . __( 'Comment', 'twentyten' ) . '</label></div>1483 <div class="form-textarea"><textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea></div>1484 </div><!-- #form-section-comment .form-section -->',1485 'must_log_in' => '<p>' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',1486 'logged_in_as' => '<p>' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ),1487 ' comment_notes_before' => '<p id="comment-notes">' . __( 'Your email is <em>never</em> published nor shared.' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>',1488 ' comment_notes_after' => '<div id="form-allowed-tags" class="form-section">1489 <p><span>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</span> <code>' . allowed_tags() . '</code></p>1490 </div>',1469 $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p class="comment-form-author">' . 1470 '<label for="author">' . __( 'Name' ) . '</label> ' . 1471 ( $req ? '<span class="required">*</span>' : '' ) . 1472 '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1"' . $aria_req . ' />' . 1473 '</p><!-- #form-section-author .form-section -->', 1474 'email' => '<p class="comment-form-email">' . 1475 '<label for="email">' . __( 'Email' ) . '</label> ' . 1476 ( $req ? '<span class="required">*</span>' : '' ) . 1477 '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"' . $aria_req . ' />' . 1478 '</p><!-- #form-section-email .form-section -->', 1479 'url' => '<p class="comment-form-url">' . 1480 '<label for="url">' . __( 'Website' ) . '</label>' . 1481 '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" />' . 1482 '</p><!-- #form-section-url .form-section -->' ) ), 1483 'comment_field' => '<p class="comment-form-comment">' . 1484 '<label for="comment">' . __( 'Comment' ) . '</label>' . 1485 '<textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea>' . 1486 '</p><!-- #form-section-comment .form-section -->', 1487 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1488 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 1489 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email is <em>never</em> published nor shared.' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>', 1490 'comment_notes_after' => '<dl class="form-allowed-tags"><dt>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</dt> <dd><code>' . allowed_tags() . '</code></dd></dl>', 1491 1491 'id_form' => 'commentform', 1492 1492 'id_submit' => 'submit', 1493 1493 'title_reply' => __( 'Leave a Reply' ), 1494 'title_reply_to' => __( 'Leave a Reply to %s' ),1494 'title_reply_to' => __( 'Leave a Reply to %s' ), 1495 1495 'cancel_reply_link' => __( 'Cancel reply' ), 1496 1496 'label_submit' => __( 'Post Comment' ), … … 1524 1524 <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?> 1525 1525 <?php echo $args['comment_notes_after']; ?> 1526 < divclass="form-submit">1526 <p class="form-submit"> 1527 1527 <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" tabindex="<?php echo ( count( $args['fields'] ) + 2 ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> 1528 1528 <?php comment_id_fields(); ?> 1529 </ div>1529 </p> 1530 1530 <?php do_action( 'comment_form', $post_id ); ?> 1531 1531 </form>
Note: See TracChangeset
for help on using the changeset viewer.