From 29753503f52c8a7297a9d4d00d805121aa6c369e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 14 Mar 2013 16:36:14 +0000 Subject: [PATCH] Twenty Thirteen: remove custom comment callback in favor of core `comment_form()` defaults. Props obenland, closes #22005. See #20088. git-svn-id: http://core.svn.wordpress.org/trunk@23696 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentythirteen/comments.php | 9 ++- .../themes/twentythirteen/functions.php | 68 ------------------- wp-content/themes/twentythirteen/rtl.css | 3 +- wp-content/themes/twentythirteen/style.css | 27 +++++--- 4 files changed, 27 insertions(+), 80 deletions(-) diff --git a/wp-content/themes/twentythirteen/comments.php b/wp-content/themes/twentythirteen/comments.php index 85b2afc1c5..d55711831b 100644 --- a/wp-content/themes/twentythirteen/comments.php +++ b/wp-content/themes/twentythirteen/comments.php @@ -30,7 +30,14 @@ if ( post_password_required() )
    - 'twentythirteen_comment', 'style' => 'ol' ) ); ?> + 'ol', + 'format' => 'html5', + 'short_ping' => true, + 'avatar_size' => 74, + ) ); + ?>
comment_type ) : - case 'pingback' : - case 'trackback' : - // Display trackbacks differently than normal comments. - ?> -
  • > -

    ', '' ); ?>

    - -
  • -
    > -
    - - -
    - -
    - ', - esc_url( get_comment_link( $comment->comment_ID ) ), - get_comment_time( 'c' ), - sprintf( _x( '%1$s at %2$s', '1: date, 2: time', 'twentythirteen' ), get_comment_date(), get_comment_time() ) - ); - edit_comment_link( __( 'Edit', 'twentythirteen' ), '', '' ); - ?> -
    - - comment_approved ) : ?> -

    - - -
    - -
    - -
    - __( 'Reply', 'twentythirteen' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
    -
    - ul { } .comment-author { - float: right; margin-left: 50px; margin-right: auto; + left: auto; + right: 0; } diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index 0b3b94e29b..75ee03527e 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -510,7 +510,7 @@ hr { .navigation:after, .nav-links:after, .gallery:after, -.comment:after { +.comment-body:after { clear: both; } @@ -530,8 +530,8 @@ hr { .nav-links:after, .gallery:before, .gallery:after, -.comment:before, -.comment:after { +.comment-body:before, +.comment-body:after { content: ""; display: table; } @@ -2258,14 +2258,15 @@ footer.entry-meta { display: none; } -.comment { +.comment-body { padding: 24px 0; + position: relative; } .comment-author { - float: left; - margin-right: 50px; max-width: 74px; + position: absolute; + left: 0; } .comment-author .avatar { @@ -2274,16 +2275,21 @@ footer.entry-meta { } .comment-author .fn, +.comment-author .url, .comment-reply-link { color: #ed331c; font-size: 14px; font-style: normal; } +.says { + display: none; +} + .no-avatars .comment-author { - float: none; margin: 0 0 5px; max-width: 100%; + position: relative; } .no-avatars .comment-meta, @@ -2329,6 +2335,7 @@ footer.entry-meta { .comment-awaiting-moderation { color: #a2a2a2; + margin: 20px 0 0; } .comment-awaiting-moderation:before { @@ -2349,8 +2356,8 @@ footer.entry-meta { padding: 30px 0; } -.comment + #respond { - margin-bottom: 30px; +.comment #respond { + margin-bottom: 20px; padding: 20px; } @@ -3117,9 +3124,9 @@ footer.entry-meta { /* Comments */ .comment-author { - float: none; margin: 0 0 5px; max-width: 100%; + position: relative; } .comment-author .avatar {