Ticket #26723: 26723.diff
File 26723.diff, 3.9 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentyfourteen/content-featured-post.php
30 30 <?php endif; ?> 31 31 32 32 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' ); ?> 33 34 <?php twentyfourteen_posted_on(); ?> 33 35 </header><!-- .entry-header --> 34 36 </article><!-- #post-## --> -
wp-content/themes/twentyfourteen/inc/template-tags.php
110 110 } 111 111 112 112 // 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>', 114 120 esc_url( get_permalink() ), 115 121 esc_attr( get_the_date( 'c' ) ), 116 122 esc_html( get_the_date() ), 117 123 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() ) 119 127 ); 128 120 129 } 121 130 endif; 122 131 -
wp-content/themes/twentyfourteen/inc/widgets.php
177 177 <header class="entry-header"> 178 178 <div class="entry-meta"> 179 179 <?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>' ); 183 181 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(); 191 183 192 184 if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : 193 185 ?> -
wp-content/themes/twentyfourteen/style.css
1160 1160 color: #41a62a; 1161 1161 } 1162 1162 1163 .byline { 1163 .byline, 1164 .updated:not(.entry-date) { 1164 1165 display: none; 1165 1166 } 1166 1167 … … 2385 2386 font-weight: 400; 2386 2387 } 2387 2388 2389 .widget_twentyfourteen_ephemera .format-link .entry-title { 2390 display: none; 2391 } 2392 2388 2393 .widget_twentyfourteen_ephemera .entry-meta { 2389 2394 margin-bottom: 18px; 2390 2395 } … … 2835 2840 text-transform: uppercase; 2836 2841 } 2837 2842 2843 .featured-content .entry-date { 2844 display: none; 2845 } 2838 2846 2847 2839 2848 /* Slider */ 2840 2849 2841 2850 .slider .featured-content .hentry {