Changeset 21941
- Timestamp:
- 09/21/2012 04:39:38 PM (12 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/author.php
r21618 r21941 42 42 // If a user has filled out their description, show a bio on their entries. 43 43 if ( get_the_author_meta( 'description' ) ) : ?> 44 <div id="author-info">45 <div id="author-avatar">44 <div class="author-info"> 45 <div class="author-avatar"> 46 46 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 60 ) ); ?> 47 </div><!-- #author-avatar -->48 <div id="author-description">47 </div><!-- .author-avatar --> 48 <div class="author-description"> 49 49 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 50 50 <p><?php the_author_meta( 'description' ); ?></p> 51 </div><!-- #author-description -->52 </div><!-- #author-info -->51 </div><!-- .author-description --> 52 </div><!-- .author-info --> 53 53 <?php endif; ?> 54 54 -
trunk/wp-content/themes/twentytwelve/content.php
r21437 r21941 46 46 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> 47 47 <?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"> 50 50 <?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"> 53 53 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> 54 54 <p><?php the_author_meta( 'description' ); ?></p> 55 <div id="author-link">55 <div class="author-link"> 56 56 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> 57 57 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> 58 58 </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 --> 62 62 <?php endif; ?> 63 63 </footer><!-- .entry-meta --> -
trunk/wp-content/themes/twentytwelve/rtl.css
r21933 r21941 44 44 45 45 /* Author profiles */ 46 #author-avatar {47 float: right; 48 } 49 #author-description {46 .author-avatar { 47 float: right; 48 } 49 .author-description { 50 50 float: right; 51 51 margin-right: 15px; -
trunk/wp-content/themes/twentytwelve/style.css
r21933 r21941 325 325 .widget img, 326 326 img.header-image, 327 #author-avatar img,327 .author-avatar img, 328 328 img.wp-post-image { 329 329 /* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */ … … 411 411 margin-bottom: 1.714285714rem; 412 412 } 413 #author-info {413 .author-info { 414 414 border-top: 1px solid #ededed; 415 415 margin: 24px 0; … … 419 419 overflow: hidden; 420 420 } 421 #author-description p {421 .author-description p { 422 422 color: #777; 423 423 font-size: 13px; … … 425 425 line-height: 1.846153846; 426 426 } 427 .author.archive #author-info {427 .author.archive .author-info { 428 428 border-top: 0; 429 429 margin: 0 0 48px; 430 430 margin: 0 0 3.428571429rem; 431 431 } 432 .author.archive #author-avatar {432 .author.archive .author-avatar { 433 433 margin-top: 0; 434 434 } … … 1341 1341 /* Minimum width of 600 pixels. */ 1342 1342 @media screen and (min-width: 600px) { 1343 #author-avatar {1343 .author-avatar { 1344 1344 float: left; 1345 1345 margin-top: 8px; 1346 1346 margin-top: 0.571428571rem; 1347 1347 } 1348 #author-description {1348 .author-description { 1349 1349 float: right; 1350 1350 width: 80%; … … 1542 1542 .entry-content img, 1543 1543 .comment-content img, 1544 #author-avatar img,1544 .author-avatar img, 1545 1545 img.wp-post-image { 1546 1546 border-radius: 0; … … 1568 1568 text-align: left; 1569 1569 } 1570 #author-avatar,1570 .author-avatar, 1571 1571 #colophon, 1572 1572 #respond, … … 1616 1616 font-size: 10pt; 1617 1617 } 1618 #author-description {1618 .author-description { 1619 1619 float: none; 1620 1620 width: auto;
Note: See TracChangeset
for help on using the changeset viewer.