mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-08 20:01:12 +01:00
e539bb94dc
To help avoid issues with trailing whitespace, omitting the closing PHP tag at the end of a file is preferred. Props netweb, dd32, yahil, milindmore22, vishalkakadiya, NomNom99, manishsongirkar36, sabernhardt, audrasjb, desrosj. See #40039. Built from https://develop.svn.wordpress.org/trunk@53880 git-svn-id: http://core.svn.wordpress.org/trunk@53439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
33 lines
792 B
PHP
33 lines
792 B
PHP
<?php
|
|
/**
|
|
* The template for displaying Author info
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Nineteen
|
|
* @since Twenty Nineteen 1.0
|
|
*/
|
|
|
|
if ( (bool) get_the_author_meta( 'description' ) ) :
|
|
?>
|
|
<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 -->
|
|
<?php
|
|
endif;
|