Make WordPress Core


Ignore:
Timestamp:
09/21/2012 04:39:38 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Twelve: change author template markup to use classes instead of IDs, fixes #21937.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/content.php

    r21437 r21941  
    4646            <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    4747            <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
    48                 <div id="author-info">
    49                     <div id="author-avatar">
     48                <div class="author-info">
     49                    <div class="author-avatar">
    5050                        <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?>
    51                     </div><!-- #author-avatar -->
    52                     <div id="author-description">
     51                    </div><!-- .author-avatar -->
     52                    <div class="author-description">
    5353                        <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
    5454                        <p><?php the_author_meta( 'description' ); ?></p>
    55                         <div id="author-link">
     55                        <div class="author-link">
    5656                            <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    5757                                <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() ); ?>
    5858                            </a>
    59                         </div><!-- #author-link -->
    60                     </div><!-- #author-description -->
    61                 </div><!-- #author-info -->
     59                        </div><!-- .author-link -->
     60                    </div><!-- .author-description -->
     61                </div><!-- .author-info -->
    6262            <?php endif; ?>
    6363        </footer><!-- .entry-meta -->
Note: See TracChangeset for help on using the changeset viewer.