123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * The template for displaying Author info
- *
- * @package WordPress
- * @subpackage Varia
- * @since 1.0.0
- */
- if ( (bool) get_the_author_meta( 'description' ) ) : ?>
- <div class="author-bio responsive-max-width">
- <h2 class="author-title">
- <span class="author-heading">
- <?php
- printf(
- /* translators: %s: post author */
- __( 'Published by %s', 'varia' ),
- 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', 'varia' ); ?>
- </a>
- </p><!-- .author-description -->
- </div><!-- .author-bio -->
- <?php endif; ?>
|