2022-08-19 16:16:27 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying Author info
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Nineteen
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*/
|
|
|
|
|
2022-11-24 13:41:02 +00:00
|
|
|
if ( (bool) get_the_author_meta( 'description' ) ) :
|
|
|
|
?>
|
2022-08-19 16:16:27 +00:00
|
|
|
<div class="author-bio">
|
|
|
|
<h2 class="author-title">
|
|
|
|
<span class="author-heading">
|
|
|
|
<?php
|
|
|
|
printf(
|
|
|
|
/* translators: %s: Post author. */
|
|
|
|
__( 'Published by %s', 'twentynineteen' ),
|
|
|
|
esc_html( get_the_author() )
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
</span>
|
|
|
|
</h2>
|
|
|
|
<p class="author-description">
|
|
|
|
<?php the_author_meta( 'description' ); ?>
|
|
|
|
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
|
|
|
<?php _e( 'View more posts', 'twentynineteen' ); ?>
|
|
|
|
</a>
|
|
|
|
</p><!-- .author-description -->
|
|
|
|
</div><!-- .author-bio -->
|
2022-11-24 13:41:02 +00:00
|
|
|
<?php
|
|
|
|
endif;
|