Ticket #23558: 23558.5.1.diff
File 23558.5.1.diff, 2.2 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/style.css
2263 2263 font-style: normal; 2264 2264 } 2265 2265 2266 .no-avatar .comment-author { 2267 float: none; 2268 margin: 0 0 5px; 2269 max-width: 100%; 2270 } 2271 2272 .no-avatar .comment-author .fn { 2273 line-height: 1.6; 2274 } 2275 2276 .no-avatar .comment-meta, 2277 .no-avatar .comment-content, 2278 .no-avatar .reply { 2279 width: 100%; 2280 } 2281 2266 2282 .bypostauthor .fn:before { 2267 2283 content: '\f408'; 2268 2284 } -
wp-content/themes/twentythirteen/functions.php
490 490 * 1. Custom fonts enabled. 491 491 * 2. Single or multiple authors. 492 492 * 3. Active widgets in the sidebar to change the layout and spacing. 493 * 4. Show avatars disabled. 493 494 * 494 495 * @since Twenty Thirteen 1.0 495 496 * … … 497 498 * @return array Filtered class values. 498 499 */ 499 500 function twentythirteen_body_class( $classes ) { 500 501 501 // Enable custom font class only if the font CSS is queued to load. 502 502 if ( wp_style_is( 'twentythirteen-fonts', 'queue' ) ) 503 503 $classes[] = 'custom-font'; … … 508 508 if ( is_active_sidebar( 'sidebar-1' ) && ! is_attachment() && ! is_404() ) 509 509 $classes[] = 'sidebar'; 510 510 511 if ( ! get_option ( 'show_avatars' ) ) 512 $classes[] = 'no-avatars'; 513 511 514 return $classes; 512 515 } 513 516 add_filter( 'body_class', 'twentythirteen_body_class' ); 514 517 515 518 /** 519 * Extends the default WordPress comment class to add 'no-avatar' class if 520 * avatars are disabled in discussion settings. 521 * 522 * @since Twenty Thirteen 1.0 523 * 524 * @param array $classes Existing class values. 525 * @return array Filtered class values. 526 */ 527 function twentythirteen_comment_class( $classes ) { 528 if ( ! get_option ( 'show_avatars' ) ) 529 $classes[] = 'no-avatar'; 530 531 return $classes; 532 } 533 add_filter( 'comment_class', 'twentythirteen_comment_class' ); 534 535 /** 516 536 * Adjusts content_width value for image post formats, video post formats, and 517 537 * image attachment templates. 518 538 *