<?php if ( ! function_exists( 'kasuari_comment' ) ) :
function kasuari_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
default :
?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
<article id="comment-<?php comment_ID(); ?>" class="comment-body clearfix">
<?php echo get_avatar( $comment, 50 ); ?>
<div class="meta-comment">
<div class="comment-author vcard">
<?php printf( esc_html__( '%s', 'kasuari' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
<time datetime="<?php comment_time( 'c' ); ?>">
<?php printf( _x( '%1$s', '1: date', 'kasuari' ), get_comment_date()); ?>
</time>
</div><!-- .comment-author .vcard -->
<?php if ( $comment->comment_approved == '0' ) : ?>
<div class="waiting-moderation">
<em><?php esc_html_e( 'Your comment is awaiting moderation.', 'kasuari' ); ?></em>
</div>
<?php endif; ?>
<div class="comment-content"><?php comment_text(); ?></div>
<div class="comment-action">
<span class="edit-comment-link"><?php edit_comment_link( esc_html__( 'Edit', 'kasuari' ), '<span class="edit-link">', '<span>' ); ?></span>
<span class="reply-container"><?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?></span>
</div><!-- .comment-action -->
</div><!-- meta comment -->
</article><!-- #comment-## -->
<?php
break;
endswitch;
}
endif;
function kasuari_comment_form(){
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );
$comments_args = array(
'class_submit' => 'submit button-normal green',
'author' => '<p>' . '<input id="author" name="author" placeholder="Name" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="50"' . $aria_req . ' />
<label for="author">Name</label> ' . ( $req ? '<span>*</span>' : '' ) . '</p>',
'email' => '<p><input id="email" name="email" placeholder="Email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' />' . ( $req ? '<span>*</span>' : '' ) . '</p>',
'url' => '<p><input id="url" name="url" placeholder="Website" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" />' . '</p>',
// change the title of send button
'label_submit'=>'Post Comment',
// change the title of the reply section
'title_reply'=>'Leave a Reply',
// remove "Text or HTML to be displayed after the set of comment fields"
'comment_notes_after' => '',
// redefine your own textarea (the comment body)
'comment_field' => '<p class="comment-form-comment">
<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" placeholder="Comment*"></textarea></p>',
);
comment_form($comments_args);
}