Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.63 KB | None | 0 0
  1. <?php
  2. $custom_comment_form = array( 'fields' => apply_filters( 'comment_form_default_fields', array(
  3.     'author' => '<div class="form_fields"><p class="comment-form-author">' .
  4.             '<input id="author" name="author" type="text" value="' .
  5.             esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' class="required" />' .
  6.             '<label for="author">' . __( 'Имя' , 'wpzoom' ) . '</label> ' .
  7.             ( $req ? '<span class="required_lab">*</span>' : '' ) .
  8.             '</p>',
  9.     'email'  => '<p class="comment-form-email">' .
  10.             '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' class="required email" />' .
  11.             '<label for="email">' . __( 'Email' , 'wpzoom' ) . '</label> ' .
  12.             ( $req ? '<span class="required_lab">*</span>' : '' ) .
  13.             '</p>',
  14.  
  15.         '</p></div><div class="clear"></div>') ),  
  16.     'comment_field' => '<p class="comment-form-comment">' .
  17.             '<textarea id="comment" name="comment" cols="35" rows="8" aria-required="true" class="required"></textarea>' .
  18.             '</p><div class="clear"></div>',
  19.     'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
  20.     'title_reply' => __( 'Добавить комментарий' , 'wpzoom' ),
  21.     'cancel_reply_link' => __( 'Cancel' , 'wpzoom' ),
  22.     'label_submit' => __( 'Отправить' , 'wpzoom' ),
  23.     'comment_form_after' => '<div class="clear"></div>',
  24. );
  25. comment_form($custom_comment_form);
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement