<?php if ( post_password_required() ) return; ?>

<div id="comments" class="mt-5 comment-content">
    <?php if ( have_comments() ) : ?>
        <h3 class="mb-4">
            <?php
            $comments_number = get_comments_number();
            echo esc_html( $comments_number ) . ' Comment' . ( $comments_number !== 1 ? 's' : '' );
        // comment_author();
            ?>
        </h3>

        
        <ul class="list-unstyled">
            <?php
            wp_list_comments( array(
                'style'       => 'ul',
                'short_ping'  => true,
                'avatar_size' => 64,
                'callback'    => 'howcan_bootstrap_comment'
            ) );
            ?>
        </ul>

        <?php the_comments_navigation(); ?>
    <?php endif; ?>

    <?php if ( comments_open() ) : ?>
        <div class="comment-form mt-5">
            <?php comment_form(); ?>
        </div>
    <?php endif; ?>
