1468 | | $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<div id="form-section-author" class="form-section"> |
1469 | | <div class="form-label"><label for="author">' . __( 'Name', 'twentyten' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</div> |
1470 | | <div class="form-input"><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1"' . $aria_req . ' /></div> |
1471 | | </div><!-- #form-section-author .form-section -->', |
1472 | | 'email' => '<div id="form-section-email" class="form-section"> |
1473 | | <div class="form-label"><label for="email">' . __( 'Email', 'twentyten' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</div> |
1474 | | <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> |
1475 | | </div><!-- #form-section-email .form-section -->', |
1476 | | 'url' => '<div id="form-section-url" class="form-section"> |
1477 | | <div class="form-label"><label for="url">' . __( 'Website', 'twentyten' ) . '</label></div> |
1478 | | <div class="form-input"><input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" /></div> |
1479 | | </div><!-- #form-section-url .form-section -->' ) ), |
1480 | | 'comment_field' => '<div id="form-section-comment" class="form-section"> |
1481 | | <div class="form-label"><label for="comment">' . __( 'Comment', 'twentyten' ) . '</label></div> |
1482 | | <div class="form-textarea"><textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea></div> |
1483 | | </div><!-- #form-section-comment .form-section -->', |
1484 | | '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>', |
1485 | | '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 ) ) ) ), |
1486 | | '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>', |
1487 | | 'comment_notes_after' => '<div id="form-allowed-tags" class="form-section"> |
1488 | | <p><span>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</span> <code>' . allowed_tags() . '</code></p> |
1489 | | </div>', |
1490 | | 'id_form' => 'commentform', |
1491 | | 'id_submit' => 'submit', |
1492 | | 'title_reply' => __( 'Leave a Reply' ), |
1493 | | 'title_reply_to' => __( 'Leave a Reply to %s'), |
1494 | | 'cancel_reply_link' => __( 'Cancel reply' ), |
1495 | | 'label_submit' => __( 'Post Comment' ), |
1496 | | ); |
| 1472 | $defaults = array( |
| 1473 | 'fields' => apply_filters( 'comment_form_default_fields', array( |
| 1474 | 'author' => '<p id="form-section-author" class="form-section"><label for="author">' . __( 'Name', 'twentyten' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . ' <input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1"' . $aria_req . ' /></p><!-- #form-section-author .form-section -->', |
| 1475 | 'email' => '<p id="form-section-email" class="form-section"><label for="email">' . __( 'Email', 'twentyten' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . ' <input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"' . $aria_req . ' /></p><!-- #form-section-email .form-section -->', |
| 1476 | 'url' => '<p id="form-section-url" class="form-section"><label for="url">' . __( 'Website', 'twentyten' ) . '</label> <input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" /></p><!-- #form-section-url .form-section -->' ) |
| 1477 | ), |
| 1478 | 'comment_field' => '<p id="form-section-comment" class="form-section"><label for="comment">' . __( 'Comment', 'twentyten' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea></p><!-- #form-section-comment .form-section -->', |
| 1479 | 'must_log_in' => '<p class="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>', |
| 1480 | 'logged_in_as' => '<p class="logged-in">' . 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 ) ) ) ), |
| 1481 | '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>', |
| 1482 | 'comment_notes_after' => '<p id="form-allowed-tags" class="form-section"><span>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</span> <code>' . allowed_tags() . '</code></p>', |
| 1483 | 'id_form' => 'commentform', |
| 1484 | 'form_title' => '<h3 id="reply-title">' . comment_form_title( __( 'Leave a Reply' ), __( 'Leave a Reply to %s'), true, false ) . '</h3>', |
| 1485 | 'cancel_reply' => '<p class="cancel-reply">' . get_cancel_comment_reply_link( __( 'Cancel reply' ) ) . '</p>', |
| 1486 | 'submit' => '<p class="form-submit"><input name="submit" type="submit" id="submit" value="' . __( 'Post Comment' ) . '" /></p>' |
| 1487 | ); |