Changeset 46614 for branches/5.3/src/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php
- Timestamp:
- 10/29/2019 04:40:34 PM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php
r46571 r46614 10 10 if ( (bool) get_the_author_meta( 'description' ) ) : ?> 11 11 <div class="author-bio"> 12 <?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?> 13 <div class="author-info"> 14 <h2 class="author-title heading-size-4"> 15 <?php 16 printf( 17 /* translators: %s: Author name */ 18 __( 'By %s', 'twentytwenty' ), 19 esc_html( get_the_author() ) 20 ); 21 ?> 22 </h2> 23 <p class="author-description"> 24 <?php the_author_meta( 'description' ); ?> 25 <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 26 <?php _e( 'View Archive →', 'twentytwenty' ); ?> 27 </a> 28 </p><!-- .author-description --> 12 <div class="author-title-wrapper"> 13 <div class="author-avatar vcard"> 14 <?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?> 29 15 </div> 16 <h2 class="author-title heading-size-4"> 17 <?php 18 printf( 19 /* translators: %s: Author name */ 20 __( 'By %s', 'twentytwenty' ), 21 esc_html( get_the_author() ) 22 ); 23 ?> 24 </h2> 25 </div><!-- .author-name --> 26 <div class="author-description"> 27 <?php echo wp_kses_post( wpautop( get_the_author_meta( 'description' ) ) ); ?> 28 <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 29 <?php _e( 'View Archive <span aria-hidden="true">→</span>', 'twentytwenty' ); ?> 30 </a> 31 </div><!-- .author-description --> 30 32 </div><!-- .author-bio --> 31 33 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.