Advertisement
kevinweber

TwentyXS, WordPress Theme, Request: http://bit.ly/HKCqLi

Apr 11th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. <?php $fields = array(
  2. 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
  3. '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
  4. 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
  5. '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
  6. 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' .
  7. '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
  8. );
  9.  
  10. $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
  11. $defaults = array(
  12. 'fields' => apply_filters( 'comment_form_default_fields', $fields ),
  13. 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
  14. '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>',
  15. 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
  16. 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
  17. 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
  18. 'id_form' => 'commentform',
  19. 'id_submit' => 'submit',
  20. 'title_reply' => __( 'Leave a Reply' ),
  21. 'title_reply_to' => __( 'Leave a Reply to %s' ),
  22. 'cancel_reply_link' => __( 'Cancel reply' ),
  23. 'label_submit' => __( 'Post Comment' ),
  24. );
  25.  
  26. $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
  27.  
  28. comment_form($args); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement