File: /mnt/data/ifa-wp/wp-content/themes/dreamsrent/comments.php
<?php if (post_password_required()) return; ?>
<?php if (have_comments()) { ?>
<div class="review-sec mb-0">
<div class="review-header">
<h4><?php echo esc_html__('Comments','dreamsrent'); ?> <span>(<?php printf( number_format_i18n( get_comments_number() ) ); ?>)</span></h4>
</div>
<ul class="commentlists ">
<?php wp_list_comments('callback=dreamsrent_theme_comment'); ?>
</ul>
<?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="nav_comment_text"><?php echo esc_html__( 'Comment navigation','dreamsrent' ); ?></div>
<div class="previous"><?php previous_comments_link(__('← Older Comments','dreamsrent' )); ?></div>
<div class="next right"><?php next_comments_link(__('Newer Comments →' ,'dreamsrent')); ?></div>
</footer><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if (!comments_open() && get_comments_number()) : ?>
<p class="no-comments"><?php echo esc_html__( 'Comments are closed.','dreamsrent' ); ?></p>
<?php endif; ?>
</div>
<?php } ?>
<div class="content_comments">
<div id="comments" class="comments">
<?php
$aria_req = ($req ? " aria-required='true'" : '');
$comment_args = array(
'title_reply' => wp_kses('<div class="review-header"><h4>' . esc_html__( 'Leave a reply' ,'dreamsrent') . '</h4></div>', true),
'title_reply_to' => esc_html__( 'Leave a Reply to %s','dreamsrent' ),
'fields' => apply_filters('comment_form_default_fields', array(
'author' => '<div class="row"><div class="col-md-6 "><div class="input-block"><label>Full Name <span class="text-danger">*</span></label><input type="text" name="author" value="' . esc_attr($commenter['comment_author']) . '" ' . esc_attr($aria_req) . ' class="form-control" placeholder="'. esc_attr('Name','dreamsrent') .'" /></div></div>',
'email' => '<div class="col-md-6 "><div class="input-block"><label>Email Address <span class="text-danger">*</span></label><input type="text" name="email" value="' . esc_attr($commenter['comment_author_email']) . '" ' . esc_attr($aria_req) . ' class="form-control" placeholder="'. esc_html__('Email','dreamsrent') .'" /></div></div></div>',
)),
'comment_field' => '<div class="row"><div class="col-md-12 "><div class="input-block"><label>Comments</label><textarea class="form-control" rows="7" name="comment" placeholder="'. esc_html__('Your Comment ...','dreamsrent') .'"></textarea></div></div></div>',
'label_submit' => esc_html__('Submit Comment','dreamsrent'),
'comment_notes_before' => '',
'comment_notes_after' => '',
'class_submit' => 'btn btn-primary submit-review',
'submit_before' => '<div class="submit-section">',
'submit_after' => '</div>',
);
?>
<?php global $post; ?>
<?php if ('open' == $post->comment_status) { ?>
<div class="commentform">
<div class="review-sec mb-0">
<?php comment_form($comment_args); ?>
</div>
</div><!-- end commentform -->
<?php } ?>
<!-- end comments -->
</div>
</div>