<?php
    $author_data = get_the_author_meta( 'description', get_query_var( 'author' ) );
    $nextbit_write_by = get_the_author_meta( 'nextbit_write_by' );
    $author_bio_avatar_size = 195;
    if ( $author_data != '' ):
?>

    <div class="post_admin_wrap">
        <div class="post_admin_image">
            <a href="<?php print esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>">
                <?php print get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size, '', '', [ 'class' => 'media-object img-circle' ] );?>
            </a>
        </div>
        <div class="post_admin_content">
            <?php if(!empty($nextbit_write_by)) : ?>
            <h3 class="admin_title text-uppercase"><?php print esc_html($nextbit_write_by); ?></h3>
            <?php endif; ?>
            <h4 class="post_admin_name">
                <a href="<?php print esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>"><?php print get_the_author();?></a>
            </h4>
            <p class="mb-0">
                <?php the_author_meta( 'description' );?>
            </p>
        </div>
    </div>

<?php endif;?>