Ticket #23558: 23558.3.diff
File 23558.3.diff, 2.4 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentythirteen/style.css
2223 2223 } 2224 2224 2225 2225 .comment-author .fn, 2226 .comment-meta .fn, 2226 2227 .comment-reply-link { 2227 2228 color: #ed331c; 2228 2229 font-size: 14px; 2229 2230 font-style: normal; 2230 2231 } 2231 2232 2233 .comment-meta .fn a { 2234 color: #f94a0a; 2235 } 2236 2232 2237 .bypostauthor .fn:before { 2233 2238 content: '\f408'; 2234 2239 } … … 2246 2251 width: calc(100% - 124px); 2247 2252 } 2248 2253 2254 .comment.no-avatar .comment-meta, 2255 .comment.no-avatar .comment-content, 2256 .comment.no-avatar .reply { 2257 width: 100%; 2258 } 2259 2249 2260 .comment-meta, 2250 2261 .comment-meta a { 2251 2262 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 $show_avatars = get_option( 'show_avatars' ); ?> 346 347 <article id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>> 348 <?php if ( $show_avatars ) : ?> 347 349 <div class="comment-author vcard"> 348 350 <?php echo get_avatar( $comment, 74 ); ?> 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 ( ! $show_avatars ) : ?> 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.