File: /home/aprilnet/public_html/operationreality.org/wp-content/themes/boal/comments.php
<?php
if ( post_password_required() ){
return;
}
$comments_facebook = get_theme_mod('boal_comments_single_facebook',false);
?>
<div id="comments" class="box box-comment">
<?php if($comments_facebook){?>
<div id="fb-comments" class="fb-comments" order_by="reverse_time" data-width="100%" data-href="<?php echo esc_url(get_permalink()) ?>" data-num-posts="10"></div>
<?php }
else{ ?>
<div class="comments-list">
<?php comments_number( '', '<h5 class="heading"><span>'.esc_html__('1 Comment','boal').'</span></h5>', '<h5 class="heading"><span>'.esc_html__('% Comments','boal').'</span></h5>' ); ?>
<?php if ( have_comments() ) { ?>
<div class="comment-lists">
<ol class="comment-list list-unstyled">
<?php wp_list_comments('callback=boal_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">
<div class="previous"><?php previous_comments_link( esc_html__( '← Older Comments', 'boal' ) ); ?></div>
<div class="next right"><?php next_comments_link( esc_html__( 'Newer Comments →', 'boal' ) ); ?></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.' , 'boal' ); ?></p>
<?php endif; ?>
</div>
<?php } ?>
</div>
<?php
$aria_req = ( $req ? " aria-required='true'" : '' );
$comment_args = array(
'title_reply'=> '<span class="heading widgettitles">'.esc_html__('Leave a Comment','boal').'</span>',
'comment_field' => '<div class="form-group">
<textarea rows="8" id="comment" class="form-control" placeholder="'.esc_html__('Comment*', 'boal').'" name="comment"'.$aria_req.'></textarea>
</div>',
'fields' => apply_filters(
'comment_form_default_fields',
array(
'author' => '<div class="row"><div class="form-group col-md-6">
<input type="text" name="author" placeholder="'.esc_html__('Name*', 'boal').'" class="form-control" id="author" value="' . esc_attr( $commenter['comment_author'] ) . '" ' . $aria_req . ' />
</div>',
'email' => '<div class="form-group col-md-6">
<input id="email" name="email" class="form-control" placeholder="'.esc_html__('Email*', 'boal').'" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" ' . $aria_req . ' />
</div> </div>',
'url' => '<div class="form-group">
<input id="url" name="url" class="form-control" placeholder="'.esc_html__('Website', 'boal').'" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" />
</div>',
)),
'label_submit' =>esc_html__('Post Comment','boal'),
'comment_notes_before' => '<p class="h-info">'.__('Your email address will not be published.','boal').'</p>',
'comment_notes_after' => '',
);
?>
<?php if('open' == $post->comment_status){ ?>
<div class="commentform">
<?php boal_comment_form($comment_args,'btn-variant'); ?>
</div><!-- end commentform -->
<?php } ?>
<?php }?>
</div><!-- end comments -->