Beispiel #1
0
            <?php 
    /* start the loop */
    ?>
            <?php 
    while (have_posts()) {
        the_post();
        ?>
                <?php 
        get_template_part('partials/content');
        ?>
            <?php 
    }
    ?>

            <?php 
    teaberry_content_nav('nav-below');
    ?>

        <?php 
} else {
    ?>
            <?php 
    get_template_part('partials/content', 'none');
    ?>
        <?php 
}
?>

        </div><!-- #content -->
    </div><!-- #primary -->
    <h1 class="archive-title">
        <?php 
$author = '<span class="vcard">' . get_the_author() . '</span>';
printf(__('Author Archives: %s', 'teaberry'), $author);
?>
    </h1>

</header>

<?php 
/* since we called the_post() */
rewind_posts();
?>

<?php 
teaberry_content_nav('nav-above');
?>

<?php 
/* if a user has filled out their description */
if (get_the_author_meta('description')) {
    ?>

    <div class="author-info">

        <div class="author-avatar">
            <?php 
    $image = apply_filters('teaberry_author_bio_avatar_size', 68);
    $email = get_the_author_meta('user_email');
    echo get_avatar($email, $image);
    ?>