MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/themes/ri-colias/comments.php
<?php

if ( post_password_required() ){
    return;
}
?>
<div id="comments">
    <div class="comments-list">
        <h5 class="heading"><span><?php comments_number( esc_html__('0 Comment', 'ri-colias'), esc_html__('1 Comment', 'ri-colias'), esc_html__('% Comments', 'ri-colias') ); ?></span></h5>
            <?php if ( have_comments() ) { ?>
                <div class="comment-lists">
                    <ol class="comment-list list-unstyled">
                        <?php wp_list_comments('callback=rit_list_comments'); ?>
                    </ol>
                    <?php
                    // Are there comments to navigate through?
                    if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
                        ?>
                        <footer class="navigation comment-navigation" role="navigation">
                            <div class="previous"><?php previous_comments_link( esc_html__( '&larr; Older Comments', 'ri-colias' ) ); ?></div>
                            <div class="next right"><?php next_comments_link( esc_html__( 'Newer Comments &rarr;', 'ri-colias' ) ); ?></div>
                        </footer><!-- .comment-navigation -->
                    <?php endif; // Check for comment navigation ?>

                    <?php if ( ! comments_open() && get_comments_number() ) : ?>
                        <p class="no-comments"><?php esc_html_e( 'Comments are closed.' , 'ri-colias' ); ?></p>
                    <?php endif; ?>
                </div>
            <?php } ?>
    </div>


    <?php
    $aria_req = ( $req ? " aria-required='true'" : '' );
    $comment_args = array(
        'title_reply'=> '<h4 class="heading"><span>'.__('Leave a Comment','ri-colias').'</span></h3>',
        'comment_field' => '<div class="form-group">
                                                <label class="field-label" for="comment">Comment:</label>
                                                <textarea rows="8" id="comment" class="form-control"  name="comment"'.$aria_req.'></textarea>
                                            </div>',
        'fields' => apply_filters(
            'comment_form_default_fields',
            array(
                'author' => '<div class="row"><div class="col-md-6"><div class="form-group">
                                            <label for="author">Name:</label>
                                            <input type="text" name="author" class="form-control" id="author" value="' . esc_attr( $commenter['comment_author'] ) . '" ' . $aria_req . ' />
                                            </div></div>',
                'email' => '<div class="col-md-6"><div class="form-group">
                                            <label for="email">Email:</label>
                                            <input id="email" name="email" class="form-control" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" ' . $aria_req . ' />
                                            </div></div></div>',
                'url' => '<div class="form-group">
                                            <label for="url">Website:</label>
                                            <input id="url" name="url" class="form-control" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '"  />
                                            </div>',
            )),
        'label_submit' => 'Post Comment',
        'comment_notes_before' => '<p class="h-info">'.__('Your email address will not be published.','ri-colias').'</p>',
        'comment_notes_after' => '',
    );
    ?>
    <?php global $post; ?>
    <?php if('open' == $post->comment_status){ ?>
        <div class="commentform">
            <?php rit_comment_form($comment_args,'btn-primary'); ?>
        </div><!-- end commentform -->
    <?php } ?>
</div><!-- end comments -->