mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-29 04:28:07 +01:00
43b86a246c
Welcome to the bundled themes family! Theme development to this point has taken place on GitHub. See: https://github.com/WordPress/twentytwenty/. Props anlino, ianbelanger, audrasjb, nielslange, fabiankaegy, mukesh27, poena, joyously, emiluzelac, williampatton, dingo-d, dkarfa, acosmin, rabmalin, kafleg, jeffpaul, hareesh-pillai, burhandodhy, afercia, juanfra, soean, presskopp, justinahinon, jrf, netweb, garyj, pento, flixos90, vbaimas, zebulan, byalextran, mor10, kjellr, allancole, tdh, karmatosed, mapk, matt, andrewtaylor-1, ismailelkorchi, garrett-eclipse, gsayed786, dianeco, celloexpressions, aristath, nadir, cbravobernal, intimez, hometowntrailers, collet, littlebigthing, tobifjellner, kevinkovadia, jarretc. See #48110. Built from https://develop.svn.wordpress.org/trunk@46271 git-svn-id: http://core.svn.wordpress.org/trunk@46083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
34 lines
922 B
PHP
34 lines
922 B
PHP
<?php
|
|
/**
|
|
* The template for displaying Author info
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Twenty
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
if ( (bool) get_the_author_meta( 'description' ) ) : ?>
|
|
<div class="author-bio">
|
|
<h2 class="author-title heading-size-4">
|
|
<div class="author-avatar vcard">
|
|
<?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
|
|
</div>
|
|
<span class="author-name">
|
|
<?php
|
|
printf(
|
|
/* Translators: %s: post author */
|
|
esc_html( 'By %s', 'twentytwenty' ),
|
|
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 esc_html_e( 'View Archive →', 'twentytwenty' ); ?>
|
|
</a>
|
|
</p><!-- .author-description -->
|
|
</div><!-- .author-bio -->
|
|
<?php endif; ?>
|