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:
parent
cf19d7f24c
commit
40e849f631
|
@ -28,13 +28,12 @@ get_header(); ?>
|
||||||
*/
|
*/
|
||||||
the_post();
|
the_post();
|
||||||
|
|
||||||
printf( __( 'All posts by %s', 'twentyfourteen' ), sprintf(
|
printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
|
||||||
'<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()
|
|
||||||
) );
|
|
||||||
?>
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
|
<?php if ( get_the_author_meta( 'description' ) ) : ?>
|
||||||
|
<div class="author-description"><?php the_author_meta( 'description' ); ?></div>
|
||||||
|
<?php endif; ?>
|
||||||
</header><!-- .archive-header -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1651,20 +1651,34 @@ a.post-thumbnail:hover {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taxonomy-description {
|
.taxonomy-description,
|
||||||
|
.author-description {
|
||||||
color: #767676;
|
color: #767676;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1.2857142857;
|
line-height: 1.2857142857;
|
||||||
|
padding-top: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taxonomy-description p {
|
.taxonomy-description p,
|
||||||
|
.author-description p {
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taxonomy-description p:last-child {
|
.taxonomy-description p:last-child,
|
||||||
|
.author-description p:last-child {
|
||||||
margin-bottom: 0;
|
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
|
* 6.10 Contributor Page
|
||||||
|
|
Loading…
Reference in New Issue