HEX
Server: Apache/2.4.66 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux panel.ynpdigital.com 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64
User: khabarnavis (1004)
PHP: 8.3.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
Upload Files
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 -->