File: /home/khabarnavis/web/khabarnavis.com/public_html/wp-content/themes/khabarnavis/comments.php
<?php
if (post_password_required()) {
return;
}
?>
<div id="comments" class="comments-area">
<?php if (have_comments()) : ?>
<h3 class="comments-title">
<?php
$count = get_comments_number();
printf(
esc_html(_nx('%s Comment', '%s Comments', $count, 'comments title', 'khabarnavis')),
number_format_i18n($count)
);
?>
</h3>
<div class="comment-list">
<?php
wp_list_comments([
'callback' => 'khabarnavis_comment_template',
'style' => 'div',
]);
?>
</div>
<!-- Comment Pagination -->
<?php
the_comments_navigation([
'prev_text' => __('Older Comments', 'khabarnavis'),
'next_text' => __('Newer Comments', 'khabarnavis'),
]);
?>
<?php endif; // have_comments() ?>
<?php if (!comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?>
<p class="no-comments"><?php esc_html_e('Comments are closed.', 'khabarnavis'); ?></p>
<?php endif; ?>
<!-- Comment Form -->
<?php
comment_form([
'title_reply' => '<h3>' . __('Leave a Comment', 'khabarnavis') . '</h3>',
'comment_notes_before' => '',
'comment_notes_after' => '',
'class_form' => 'comment-form',
'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="submit %3$s" value="%4$s">',
'submit_field' => '<div class="form-submit">%1$s %2$s</div>',
'class_submit' => 'submit',
'label_submit' => __('Post Comment', 'khabarnavis'),
'fields' => [
'author' => '<div class="comment-form-author"><label for="author">' . __('Name', 'khabarnavis') . '</label><input id="author" name="author" type="text" required></div>',
'email' => '<div class="comment-form-email"><label for="email">' . __('Email', 'khabarnavis') . '</label><input id="email" name="email" type="email" required></div>',
'url' => '',
],
'comment_field' => '<label for="comment">' . __('Comment', 'khabarnavis') . '</label><textarea id="comment" name="comment" rows="5" required placeholder="' . esc_attr__('Join the conversation...', 'khabarnavis') . '"></textarea>',
]);
?>
</div><!-- #comments -->