<?php
if ( function_exists( \'coauthors\' ) ) {
foreach( get_coauthors() as $coauthor ): ?>
<section id="author-info" class="test22">
<header>
<h3>
<?php echo \'About the Author: \';?>
<a href="<?php echo get_author_posts_url( $coauthor->ID ); ?>"><?php echo $coauthor->display_name; ?></a>
</h3>
</header>
<div>
<p id="author-avatar"><?php echo get_avatar( $coauthor->user_email, \'80\' ); ?></p>
<p id="author-description"><?php echo $coauthor->description; ?></p>
</div>
</section>
<?php endforeach;
}
else { ;?>
<section id="author-info">
<header>
<h3>
<?php
printf( __( \'About the Author: <a href="%s" rel="author">%s</a>\', \'btp_theme\' ),
esc_url( get_author_posts_url( get_the_author_meta( \'ID\' ) ) ),
get_the_author()
);
?>
</h3>
</header>
<div>
<p id="author-avatar"><?php echo get_avatar( get_the_author_meta(\'email\'), 80 ); ?></p>
<p id="author-description"><?php the_author_meta(\'description\'); ?></p>
</div>
</section>
<?php
}
?>