Make WordPress Core


Ignore:
Timestamp:
12/05/2013 02:32:46 AM (11 years ago)
Author:
lancewillett
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/author.php

    r26556 r26654  
    2929                        the_post();
    3030
    31                         printf( __( 'All posts by %s', 'twentyfourteen' ), sprintf(
    32                                 '<span class="vcard"><a class="url fn n" href="%1$s" rel="me">%2$s</a></span>',
    33                                 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    34                                 get_the_author()
    35                         ) );
     31                        printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
    3632                    ?>
    3733                </h1>
     34                <?php if ( get_the_author_meta( 'description' ) ) : ?>
     35                <div class="author-description"><?php the_author_meta( 'description' ); ?></div>
     36                <?php endif; ?>
    3837            </header><!-- .archive-header -->
    3938
Note: See TracChangeset for help on using the changeset viewer.