<?php

/**
 * The template for displaying Author bios
 * @package Storytime
 * @since 1.0.0
 */
?>
<div id="author-info" class="media">
    <div id="author-avatar">
        <?php $author_bio_avatar_size = apply_filters('storytime_author_bio_avatar_size', 100);
        echo get_avatar(get_the_author_meta('user_email'), $author_bio_avatar_size);
        ?>
    </div>
    <div id="author-description" class="media-body">
        <h3 id="author-title">
            <?php echo get_the_author(); ?>
        </h3>
        <p id="author-bio">
            <?php the_author_meta('description'); ?>
            <a id="author-link" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author">
                <?php
                /* translators: %s: Author name */
                printf(esc_html__('Read articles by %s', 'storytime'), get_the_author()); ?>
            </a>
        </p>
    </div>
</div>