'; if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; } $args = array( 'walker' => new Breviter_Comment_Walker(), 'max_depth' => '', 'style' => 'ul', 'callback' => null, 'end-callback' => null, 'type' => 'all', 'reply_text' => '', 'page' => '', 'per_page' => '', 'avatar_size' => 75, 'reverse_top_level' => null, 'reverse_children' => '', 'format' => 'html5', //or html5 @since 3.6 'short_ping' => true // @since 3.6 ); echo '<' . $args['style'].' id="comments" class="clean-list comments-list">'; wp_list_comments($args); echo ''; printf('
%s
' , paginate_comments_links( array('prev_next' => false, 'echo' => false) ) ); echo ''; } $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $html_req = ( $req ? " required='required'" : '' ); $fields = array( 'author' => sprintf( '
' , esc_attr( $commenter['comment_author'] ) , __( 'Your name *', 'breviter' ) , $aria_req . $html_req ), 'email' => sprintf( '
' , esc_attr( $commenter['comment_author_email'] ) , __( 'Your email *', 'breviter' ) , $aria_req . $html_req ), 'url' => sprintf( '
' , esc_attr( $commenter['comment_author_url'] ) , __( 'Your URL', 'breviter' ) , $aria_req . $html_req ) ); $args = array( 'fields' => $fields, 'id_form' => 'commentform', 'class_form' => 'comment-form', 'id_submit' => 'comment-submit', 'title_reply_before' => '

', 'title_reply_after' => '

', 'title_reply' => __( 'Leave a comment', 'breviter' ), 'title_reply_to' => __( 'Leave a comment to %s', 'breviter' ), 'cancel_reply_link' => __( 'Cancel reply', 'breviter' ), 'label_submit' => __( 'Leave a comment', 'breviter' ), 'class_submit' => 'btn submit-btn', 'submit_button' => '', 'submit_field' => '
%1$s %2$s
', 'comment_field' => sprintf( '
', __( 'Your comment', 'breviter' ) ), 'format' => 'html5' ); ob_start(); comment_form($args); echo str_replace( '"comment-respond"', '"comment-respond respond-area box"', ob_get_clean() );