Make WordPress Core

Ticket #26723: 26723.diff

File 26723.diff, 3.9 KB (added by slobodanmanic, 11 years ago)
  • wp-content/themes/twentyfourteen/content-featured-post.php

     
    3030                <?php endif; ?>
    3131
    3232                <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' ); ?>
     33
     34                <?php twentyfourteen_posted_on(); ?>
    3335        </header><!-- .entry-header -->
    3436</article><!-- #post-## -->
  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    110110        }
    111111
    112112        // Set up and print post meta information.
    113         printf( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>',
     113        if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
     114                $time_string = '<time class="entry-date" datetime="%2$s">%3$s</time><time class="updated" datetime="%6$s">%7$s</time>';
     115        } else {
     116                $time_string = '<time class="entry-date updated" datetime="%2$s">%3$s</time>';
     117        }
     118       
     119        printf( '<span class="entry-date"><a href="%1$s" rel="bookmark">' . $time_string . '</a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>',
    114120                esc_url( get_permalink() ),
    115121                esc_attr( get_the_date( 'c' ) ),
    116122                esc_html( get_the_date() ),
    117123                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    118                 get_the_author()
     124                get_the_author(),
     125                esc_attr( get_the_modified_date( 'c' ) ),
     126                esc_html( get_the_modified_date() )
    119127        );
     128
    120129}
    121130endif;
    122131
  • wp-content/themes/twentyfourteen/inc/widgets.php

     
    177177                                        <header class="entry-header">
    178178                                                <div class="entry-meta">
    179179                                                        <?php
    180                                                                 if ( ! has_post_format( 'link' ) ) :
    181                                                                         the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    182                                                                 endif;
     180                                                                the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    183181
    184                                                                 printf( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>',
    185                                                                         esc_url( get_permalink() ),
    186                                                                         esc_attr( get_the_date( 'c' ) ),
    187                                                                         esc_html( get_the_date() ),
    188                                                                         esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    189                                                                         get_the_author()
    190                                                                 );
     182                                                                twentyfourteen_posted_on();
    191183
    192184                                                                if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
    193185                                                        ?>
  • wp-content/themes/twentyfourteen/style.css

     
    11601160        color: #41a62a;
    11611161}
    11621162
    1163 .byline {
     1163.byline,
     1164.updated:not(.entry-date) {
    11641165        display: none;
    11651166}
    11661167
     
    23852386        font-weight: 400;
    23862387}
    23872388
     2389.widget_twentyfourteen_ephemera .format-link .entry-title {
     2390        display: none;
     2391}
     2392
    23882393.widget_twentyfourteen_ephemera .entry-meta {
    23892394        margin-bottom: 18px;
    23902395}
     
    28352840        text-transform: uppercase;
    28362841}
    28372842
     2843.featured-content .entry-date {
     2844        display: none;
     2845}
    28382846
     2847
    28392848/* Slider */
    28402849
    28412850.slider .featured-content .hentry {