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