summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury German <blueknight@gentoo.org>2019-04-28 21:40:16 -0400
committerYury German <blueknight@gentoo.org>2019-04-28 21:40:16 -0400
commitf74389cedb2f722a6247735c19c986a63977c8c8 (patch)
treeb1e9522d59551f05a8c85be9460d508909eaf1e0 /themes/twentynineteen/template-parts/post/author-bio.php
parentUpdating the themes (diff)
downloadblogs-gentoo-f74389cedb2f722a6247735c19c986a63977c8c8.tar.gz
blogs-gentoo-f74389cedb2f722a6247735c19c986a63977c8c8.tar.bz2
blogs-gentoo-f74389cedb2f722a6247735c19c986a63977c8c8.zip
Adding Twentyninetten
Signed-off-by: Yury German <blueknight@gentoo.org>
Diffstat (limited to 'themes/twentynineteen/template-parts/post/author-bio.php')
-rw-r--r--themes/twentynineteen/template-parts/post/author-bio.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/themes/twentynineteen/template-parts/post/author-bio.php b/themes/twentynineteen/template-parts/post/author-bio.php
new file mode 100644
index 00000000..edda62c7
--- /dev/null
+++ b/themes/twentynineteen/template-parts/post/author-bio.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * The template for displaying Author info
+ *
+ * @package WordPress
+ * @subpackage Twenty_Nineteen
+ * @since 1.0.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; ?>