Ticket #24863: 24863.5.diff
| File 24863.5.diff, 5.2 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentyfourteen/style.css
326 326 *overflow: visible; /* Corrects inner spacing displayed oddly in IE6/7 */ 327 327 } 328 328 button, 329 .contributor-posts-link, 329 330 html input[type="button"], 330 331 input[type="reset"], 331 332 input[type="submit"] { … … 343 344 vertical-align: top; 344 345 } 345 346 button:hover, 347 .contributor-posts-link:hover, 346 348 html input[type="button"]:hover, 347 349 input[type="reset"]:hover, 348 350 input[type="submit"]:hover, … … 351 353 input[type="reset"]:focus, 352 354 input[type="submit"]:focus { 353 355 background-color: #24890d; 356 color: #fff; 354 357 cursor: pointer; 355 358 } 356 359 button:active, 360 .contributor-posts-link:active, 357 361 html input[type="button"]:active, 358 362 input[type="reset"]:active, 359 363 input[type="submit"]:active { … … 1715 1719 margin: 24px 0 0; 1716 1720 margin: 2.4rem 0 0; 1717 1721 } 1722 1718 1723 .post-navigation [rel="prev"], 1719 1724 .post-navigation [rel="next"], 1720 1725 .image-navigation .previous-image, 1721 1726 .image-navigation .next-image { 1722 1727 border-bottom: 1px solid rgba(0, 0, 0, 0.1); 1723 1728 -moz-box-sizing: border-box; 1724 box-sizing: border-box;1729 box-sizing: border-box; 1725 1730 float: none; 1726 1731 padding: 11px 10px; 1727 1732 padding: 1.1rem 1.0rem; … … 2301 2306 width: 198px; 2302 2307 } 2303 2308 2309 2310 /* =Contributor Page 2311 ----------------------------------------------- */ 2312 2313 .contributor { 2314 border-bottom: 1px solid rgba(0, 0, 0, 0.1); 2315 -moz-box-sizing: border-box; 2316 box-sizing: border-box; 2317 padding: 48px 0; 2318 padding: 4.8rem 0; 2319 } 2320 .contributor-avatar { 2321 float: left; 2322 padding: 2px; 2323 padding: 0.2rem; 2324 border: 1px solid rgba(0, 0, 0, 0.1); 2325 margin-right: 30px; 2326 margin-right: 3.0rem; 2327 } 2328 .contributor-avatar .avatar { 2329 vertical-align: middle; 2330 } 2331 .contributor-summary { 2332 float: left; 2333 max-width: 474px; 2334 max-width: 47.4rem; 2335 width: -webkit-calc(100% - 164px); 2336 width: calc(100% - 164px); 2337 } 2338 .contributor-name { 2339 font-size: 16px; 2340 font-size: 1.6rem; 2341 font-weight: 900; 2342 line-height: 1.5; 2343 margin-bottom: 0; 2344 text-transform: uppercase; 2345 } 2346 .contributor-bio { 2347 color: #767676; 2348 } 2349 .contributor-posts-link { 2350 display: inline-block; 2351 } 2352 .contributor-posts-link:before { 2353 margin: -3px 5px -2px -3px; 2354 margin: -0.3rem 0.5rem -0.2rem -0.3rem; 2355 } 2356 2357 2304 2358 /* =Media Queries 2305 2359 ----------------------------------------------- */ 2306 2360 … … 2384 2438 .parent-post-link:before { 2385 2439 content: ''; 2386 2440 } 2441 2387 2442 .content-area .featured-post:before, 2388 2443 .content-area .post-format a:before, 2389 2444 .content-area .post-format + .entry-date a:before, … … 2401 2456 margin: 0 2px 0 0; 2402 2457 margin: 0 0.2rem 0 0; 2403 2458 text-transform: none; 2404 vertical-align: top;2405 2459 } 2406 2460 .content-area .entry-meta > span { 2407 2461 margin-right: 10px; … … 2676 2730 .error404 .content-area .page-header { 2677 2731 margin: 0 8.03571428% 0 12.5%; 2678 2732 } 2733 .contributor, 2679 2734 .content-area .full-width .entry-header, 2680 2735 .content-area .full-width .entry-content, 2681 2736 .content-area .full-width footer.entry-meta { … … 2894 2949 padding: 0 0 12px; 2895 2950 padding: 0 0 1.2rem; 2896 2951 } 2952 .contributor, 2897 2953 .content-area .full-width .entry-header, 2898 2954 .content-area .full-width .entry-content, 2899 2955 .content-area .full-width .page-content, … … 3015 3071 .error404 .content-area .page-header { 3016 3072 margin: 0 8.03571428% 0 12.5%; 3017 3073 } 3074 .contributor, 3018 3075 .content-area .full-width .entry-header, 3019 3076 .content-area .full-width .entry-content, 3020 3077 .content-area .full-width .page-content, … … 3055 3112 .ephemera { 3056 3113 padding-right: 0; 3057 3114 } 3115 .contributor, 3058 3116 .content-area .full-width .entry-header, 3059 3117 .content-area .full-width .entry-content, 3060 3118 .content-area .full-width .page-content, -
wp-content/themes/twentyfourteen/functions.php
340 340 } 341 341 endif; 342 342 343 if ( ! function_exists( 'twentyfourteen_list_authors' ) ) : 343 344 /** 345 * Prints a list of all site contributors who published at least one post. 346 * 347 * @return void 348 */ 349 function twentyfourteen_list_authors() { 350 $contributor_ids = get_users( array( 351 'fields' => 'ID', 352 'orderby' => 'post_count', 353 'who' => 'authors', 354 ) ); 355 356 foreach ( $contributor_ids as $contributor_id ) : 357 $post_count = count_user_posts( $contributor_id ); 358 359 // Move on if user has not published a post (yet). 360 if ( ! $post_count ) 361 continue; 362 ?> 363 364 <div class="contributor clear"> 365 <div class="contributor-avatar"><?php echo get_avatar( $contributor_id, 132 ); ?></div> 366 <div class="contributor-summary"> 367 <h2 class="contributor-name"><?php echo get_the_author_meta( 'display_name', $contributor_id ); ?></h2> 368 <p class="contributor-bio"> 369 <?php echo get_the_author_meta( 'description', $contributor_id ); ?> 370 </p> 371 <a class="contributor-posts-link genericon-document" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>"> 372 <?php printf( __( '%d Articles', 'twentyfourteen' ), $post_count ); ?> 373 </a> 374 </div> 375 </div><!-- .contributor --> 376 377 <?php 378 endforeach; 379 } 380 endif; 381 382 /** 344 383 * Gets recent formatted posts that are not featured in FC plugin. 345 384 * 346 385 */
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)