Make WordPress Core

Ticket #25045: 25045.diff

File 25045.diff, 6.3 KB (added by obenland, 13 years ago)
  • wp-content/themes/twentyfourteen/functions.php

     
    4343         */
    4444        add_theme_support( 'automatic-feed-links' );
    4545
     46        add_theme_support( 'html5' );
     47
    4648        /**
    4749         * Enable support for Post Thumbnails
    4850         */
  • wp-content/themes/twentyfourteen/comments.php

     
    4040                        wp_list_comments( array(
    4141                                'style'      => 'ol',
    4242                                'short_ping' => true,
    43 
    44                                 // TODO: Remove callback and update styles.
    45                                 'callback'=>'twentyfourteen_comment',
    4643                        ) );
    4744                ?>
    4845        </ol><!-- .comment-list -->
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    7373}
    7474endif; // twentyfourteen_content_nav
    7575
    76 if ( ! function_exists( 'twentyfourteen_comment' ) ) :
    77 /**
    78  * Template for comments and pingbacks.
    79  *
    80  * Used as a callback by wp_list_comments() for displaying the comments.
    81  *
    82  */
    83 function twentyfourteen_comment( $comment, $args, $depth ) {
    84         $GLOBALS['comment'] = $comment;
    85         switch ( $comment->comment_type ) :
    86                 case 'pingback' :
    87                 case 'trackback' :
    88         ?>
    89         <li class="post pingback">
    90                 <p><?php _e( 'Pingback:', 'twentyfourteen' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyfourteen' ), ' ' ); ?></p>
    91         <?php
    92                         break;
    93                 default :
    94         ?>
    95         <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    96                 <article id="comment-<?php comment_ID(); ?>" class="comment">
    97                         <footer>
    98                                 <div class="comment-author vcard">
    99                                         <span class="comment-author-avatar"><?php echo get_avatar( $comment, 32 ); ?></span>
    100                                         <?php printf( __( '%s', 'twentyfourteen' ), sprintf( '<cite class="fn">%s</cite> says:', get_comment_author_link() ) ); ?>
    101                                 </div><!-- .comment-author .vcard -->
    102                         </footer>
    103 
    104                         <div class="comment-content">
    105                                 <?php comment_text(); ?>
    106                                 <?php if ( $comment->comment_approved == '0' ) : ?>
    107                                         <p><em><?php _e( 'Your comment is awaiting moderation.', 'twentyfourteen' ); ?></em></p>
    108                                 <?php endif; ?>
    109                         </div>
    110 
    111                         <div class="comment-meta commentmetadata">
    112                                 <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>">
    113                                 <?php
    114                                         /* translators: 1: date, 2: time */
    115                                         printf( __( '%1$s at %2$s', 'twentyfourteen' ), get_comment_date(), get_comment_time() ); ?>
    116                                 </time></a>
    117                                 <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    118                                 <?php edit_comment_link( __( 'Edit', 'twentyfourteen' ), ' ' );
    119                                 ?>
    120                         </div><!-- .comment-meta .commentmetadata -->
    121                 </article><!-- #comment-## -->
    122 
    123         <?php
    124                         break;
    125         endswitch;
    126 }
    127 endif; // ends check for twentyfourteen_comment()
    128 
    12976if ( ! function_exists( 'twentyfourteen_posted_on' ) ) :
    13077/**
    13178 * Prints HTML with meta information for the current post-date/time and author.
  • wp-content/themes/twentyfourteen/style.css

     
    18731873        margin: 0 0 48px 0;
    18741874        margin: 0 0 4.8rem 0;
    18751875}
    1876 .comment-meta,
     1876.comment-metadata,
    18771877.comment-author {
    18781878        font-size: 14px;
    18791879        font-size: 1.4rem;
    18801880        line-height: 1.7142857142;
    18811881}
    1882 .comment-author cite {
     1882.comment-author .fn {
    18831883        font-weight: 900;
    18841884        text-transform: uppercase;
    18851885}
    18861886.comment-author a {
    18871887        color: #2b2b2b;
    18881888}
    1889 .comment-meta a,
     1889.comment-metadata a,
    18901890.comment-list li.trackback a,
    18911891.comment-list li.pingback a {
    18921892        color: #8c8c8c;
    18931893}
    18941894.comment-author a:hover,
    1895 .comment-meta a:hover,
     1895.comment-metadata a:hover,
    18961896.comment-list li.trackback a:hover,
    18971897.comment-list li.pingback a:hover {
    18981898        color: #41a62a;
    18991899        text-decoration: none;
    19001900}
    1901 .comment-edit-link:before,
    1902 .comment-reply-link:before {
     1901.comment-edit-link:before {
    19031902        color: rgba(0, 0, 0, 0.2);
    19041903        content: '\007c\0020';
    19051904}
     
    19191918        background: none;
    19201919        min-height: 48px;
    19211920        min-height: 4.8rem;
    1922         position: relative;
    19231921}
    19241922.comment-author {
    19251923        padding-left: 36px;
    19261924        padding-left: 3.6rem;
    19271925        position: relative;
    19281926}
    1929 .comment-author .comment-author-avatar {
     1927.comment-author .avatar {
    19301928        border: 1px solid rgba(0, 0, 0, 0.1);
    19311929        padding: 2px;
    19321930        padding: 0.2rem;
     
    19391937        height: 22px;
    19401938        height: 2.2rem;
    19411939}
    1942 .bypostauthor > article .comment-author .comment-author-avatar {
     1940.bypostauthor .avatar {
    19431941        background-color: #41a62a;
    19441942}
    1945 .comment-author cite {
     1943.comment-author .fn {
    19461944        font-style: normal;
    19471945}
    19481946.comment-author .avatar {
     
    19561954        height: 22px;
    19571955        height: 2.2rem;
    19581956}
    1959 .comment-meta,
     1957.comment-metadata,
    19601958.comment-content {
    19611959        padding-left: 36px;
    19621960        padding-left: 3.6rem;
     
    27062704        #primary span.entry-date a:before,
    27072705        #primary .byline a:before,
    27082706        #primary .comments-link a:before,
    2709         #primary .edit-link a:before,
     2707        .entry-content .edit-link a:before,
    27102708        .attachment span.entry-date:before,
    27112709        #primary .full-size-link a:before,
    27122710        #primary .parent-post-link a:before {
     
    27692767                margin: -1px 2px 0 0;
    27702768                margin: -0.1rem 0.2rem 0 0;
    27712769        }
    2772         #primary .edit-link a:before {
     2770        .entry-content .edit-link a:before {
    27732771                content: '\F411';
    27742772                margin: -1px 2px 0 0;
    27752773                margin: -0.1rem 0.2rem 0 0;
     
    27802778        #primary .parent-post-link a:before {
    27812779                content: '\F301';
    27822780        }
    2783         .page #primary .edit-link a:before {
     2781        .page .entry-content .edit-link a:before {
    27842782                margin: 5px 2px 0 0;
    27852783                margin: 0.5rem 0.2rem 0 0;
    27862784        }
     
    29102908                padding-top: 36px;
    29112909                padding-top: 3.6rem;
    29122910        }
    2913         .comment-author {
    2914                 padding-left: 60px;
    2915                 padding-left: 6.0rem;
    2916         }
    2917         .comment-author .comment-author-avatar,
    29182911        .comment-author .avatar {
    29192912                width: 32px;
    29202913                width: 3.2rem;
    29212914                height: 32px;
    29222915                height: 3.2rem;
    29232916        }
    2924         .comment-meta,
     2917        .comment-author,
     2918        .comment-metadata,
    29252919        .comment-content {
    29262920                padding-left: 60px;
    29272921                padding-left: 6.0rem;