Ticket #23558: 23558.4.diff
File 23558.4.diff, 2.4 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/style.css
2257 2257 } 2258 2258 2259 2259 .comment-author .fn, 2260 .comment-meta .fn, 2260 2261 .comment-reply-link { 2261 2262 color: #ed331c; 2262 2263 font-size: 14px; 2263 2264 font-style: normal; 2264 2265 } 2265 2266 2267 .comment-meta .fn a { 2268 color: #f94a0a; 2269 } 2270 2266 2271 .bypostauthor .fn:before { 2267 2272 content: '\f408'; 2268 2273 } … … 2280 2285 width: calc(100% - 124px); 2281 2286 } 2282 2287 2288 .comment.no-avatar .comment-meta, 2289 .comment.no-avatar .comment-content, 2290 .comment.no-avatar .reply { 2291 width: 100%; 2292 } 2293 2283 2294 .comment-meta, 2284 2295 .comment-meta a { 2285 2296 color: #a2a2a2; -
wp-content/themes/twentythirteen/functions.php
343 343 // Proceed with normal comments. 344 344 ?> 345 345 <li id="li-comment-<?php comment_ID(); ?>"> 346 <?php $avatar = get_avatar( $comment, 74 ); ?> 346 347 <article id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>> 348 <?php if ( $avatar ) : ?> 347 349 <div class="comment-author vcard"> 348 <?php echo get_avatar( $comment, 74 ); ?>350 <?php echo $avatar; ?> 349 351 <cite class="fn"><?php comment_author_link(); ?></cite> 350 352 </div><!-- .comment-author --> 353 <?php endif; ?> 351 354 352 355 <header class="comment-meta"> 356 <?php if ( ! $avatar ) : ?> 357 <cite class="fn"><?php comment_author_link(); ?></cite> · 358 <?php endif; ?> 353 359 <?php 354 360 printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>', 355 361 esc_url( get_comment_link( $comment->comment_ID ) ), … … 378 384 } 379 385 endif; 380 386 387 /** 388 * Extends the default WordPress comment class to denote whether showing avatars 389 * is enabled. 390 * 391 * @since Twenty Thirteen 1.0 392 * 393 * @param array $classes Existing class values. 394 * @return array Filtered class values. 395 */ 396 function twentythirteen_comment_class( $classes ) { 397 if ( ! get_option( 'show_avatars' ) ) 398 $classes[] = 'no-avatar'; 399 400 return $classes; 401 } 402 add_filter( 'comment_class', 'twentythirteen_comment_class' ); 403 381 404 if ( ! function_exists( 'twentythirteen_entry_meta' ) ) : 382 405 /** 383 406 * Prints HTML with meta information for current post: categories, tags, permalink, author, and date.