<?php 
if (post_password_required()) return; 

?>

<div class="container-fluid">
    <div class="row">
      
        <div id="comments" class="comments">

            <?php if(have_comments()){ ?>
                <h2 class="block-title"> 
                    <?php comments_number( esc_html__('0 Comment', 'helium'), esc_html__( '1 Comment', 'helium' ), esc_html__( '% Comments', 'helium' ) ); ?>
                </h2>
            <?php } ?>

            <?php if (have_comments()) { ?>
                <ul class="commentlists">
                    <?php wp_list_comments('callback=helium_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">
                        <?php esc_html_e( 'Comment navigation', 'helium' ); ?>
                        <div class="previous"><?php previous_comments_link(__('&larr; Older Comments', 'helium')); ?></div>
                        <div class="next right"><?php next_comments_link(__('Newer Comments &rarr;', 'helium')); ?></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.', 'helium' ); ?></p>
                <?php endif; ?>
            <?php } ?>

            <?php
            $aria_req = ($req ? " aria-required='true'" : '');
            $comment_args = array(
                'title_reply' => wp_kses('<h2 class="block-title">' . esc_html__( 'Leave a reply', 'helium' ) . '</h2>', true),
                'fields' => apply_filters('comment_form_default_fields',
                 array(
                    'author' => '<div class="col-md-6 no-padding-left"><input type="text" name="author" value="' . esc_attr($commenter['comment_author']) . '" ' . esc_attr($aria_req) . ' class="form-control" placeholder="'. esc_html__('Name','helium') .'" /></div>',
                    'email' => '<div class="col-md-6 no-padding-right"><input type="text" name="email" value="' . esc_attr($commenter['comment_author_email']) . '" ' . esc_attr($aria_req) . ' class="form-control" placeholder="'. esc_html__('Email','helium') .'" /></div>'            
                )),
                'comment_field' => '<textarea class="form-control" rows="7" name="comment" placeholder="'. esc_html__('Your Comment ...','helium') .'"></textarea>',
                'label_submit' => esc_html__('Add Comment','helium'),
                'comment_notes_before' => '',
                'comment_notes_after' => '',
            );
            ?>

            <?php global $post; ?>
            <?php if ('open' == $post->comment_status) { ?>
                <div class="blog-comment">
                    
                        <?php comment_form($comment_args); ?>
                    
                </div><!-- end commentform -->
            <?php } ?>


        </div><!-- end comments -->

    </div>
</div>


