File: /mnt/data/kofejob-wp/wp-content/themes/kofejob/comments.php
<?php
if ( post_password_required() )
return;
?>
<?php if ( have_comments() ) : ?>
<div class="blog-comments clearfix pb-0">
<h3 class="pro-title"><?php echo esc_html__( 'Comments', 'kofejob');?> (<?php echo (get_comments_number()) ? get_comments_number() : '';?>) </h3>
<div class="pro-content pt-0 pb-0">
<?php wp_list_comments( array( 'callback' => 'kofejob_custom_comments'));?>
</div>
</div>
<?php endif; ?>
<?php
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="nocomments"><?php esc_html__( 'Comments are closed.', 'kofejob' ); ?></p>
<?php endif;
$user_identity = '';
$aria_req = ( $req ? " aria-required='true'" : '' );
$args = array(
'fields' => apply_filters(
'comment_form_default_fields', array(
'author' =>'
<div class="form-group">
<label for="author">'. esc_html__( 'Name','kofejob' ) . ( $req ? '<span class="required text-danger">*</span>' : '' ) .' </label>
<span class="wrap">
<input type="text" id="author" name="author" class="form-control" value="' .
esc_attr( $commenter['comment_author'] ) . '" '. $aria_req . '>
</span></div>',
'email' => '
<div class="form-group">
<label for="email">'. esc_html__( 'Your Email Address', 'kofejob' ) . ( $req ? '<span class="required text-danger">*</span>' : '' ). '</label>
<span class="wrap">
<input type="text" id="email" name="email" class="form-control" ' . $aria_req .' value="' . esc_attr( $commenter['comment_author_email'] ) .'"></span></div>',
)
),
'comment_field' => '
<div class="form-group">
<label for="comment">'. esc_html__( 'Your Comment', 'kofejob' ) .'<span class="required text-danger">*</span></label>
<span class="wrap">
<textarea id="comment" name="comment" class="form-control" rows="5" required=""></textarea>
</span>
</div>',
'comment_notes_after' => '',
'comment_notes_before' => '',
'title_reply' => '',
'class_submit' => 'btn btn-primary submit-btn',
'label_submit' => esc_html__('Post Comment','kofejob'),
);
if (!comments_open())
{
}
else
{
?>
<div class="new-comment clearfix">
<h4 class="pro-title"><?php echo esc_html__('Leave Comment','kofejob'); ?></h4>
<?php comment_form($args ); ?>
</div>
<?php
}
?>