Twenty Fourteen: add author description below author name on author archive view, and update styles for archive header area. Props iamtakashi, closes #26420.

Built from https://develop.svn.wordpress.org/trunk@26654


git-svn-id: http://core.svn.wordpress.org/trunk@26544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-12-05 02:33:10 +00:00
parent cf19d7f24c
commit 40e849f631
2 changed files with 21 additions and 8 deletions

View File

@ -28,13 +28,12 @@ get_header(); ?>
*/
the_post();
printf( __( 'All posts by %s', 'twentyfourteen' ), sprintf(
'<span class="vcard"><a class="url fn n" href="%1$s" rel="me">%2$s</a></span>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author()
) );
printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
?>
</h1>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-description"><?php the_author_meta( 'description' ); ?></div>
<?php endif; ?>
</header><!-- .archive-header -->
<?php

View File

@ -1651,20 +1651,34 @@ a.post-thumbnail:hover {
margin: 0;
}
.taxonomy-description {
.taxonomy-description,
.author-description {
color: #767676;
font-size: 14px;
line-height: 1.2857142857;
padding-top: 18px;
}
.taxonomy-description p {
.taxonomy-description p,
.author-description p {
margin-bottom: 18px;
}
.taxonomy-description p:last-child {
.taxonomy-description p:last-child,
.author-description p:last-child {
margin-bottom: 0;
}
.taxonomy-description a,
.author-description a {
text-decoration: underline;
}
.taxonomy-description a:hover,
.author-description a:hover {
text-decoration: none;
}
/**
* 6.10 Contributor Page