Ticket #30135: 30135.5.patch
File 30135.5.patch, 2.8 KB (added by , 10 years ago) |
---|
-
wp-content/themes/twentyfifteen/inc/template-tags.php
295 295 296 296 return $has_url ? $has_url : apply_filters( 'the_permalink', get_permalink() ); 297 297 } 298 endif; 299 No newline at end of file 298 endif; 299 300 if ( ! function_exists( 'twentyfifteen_excerpt_more' ) && ! is_admin() ) : 301 /** 302 * Replaces "[...]" (appended to automatically generated excerpts) with ... and a Continue reading link. 303 * 304 * @since Twenty Fifteen 1.0 305 * 306 */ 307 function twentyfifteen_excerpt_more( $more ) { 308 return sprintf( ' … <a href="%1$s" class="more-link">%2$s</a>', 309 esc_url( get_permalink( get_the_ID() ) ), 310 /* translators: %s: Name of current post */ 311 sprintf( esc_html__( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 312 ); 313 } 314 add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' ); 315 endif; -
wp-content/themes/twentyfifteen/style.css
179 179 .image-navigation a:after, 180 180 .format-link .entry-title a:after, 181 181 .entry-content .more-link:after, 182 .entry-summary .more-link:after, 182 183 .author-link:after { 183 184 -moz-osx-font-smoothing: grayscale; 184 185 -webkit-font-smoothing: antialiased; … … 1718 1719 color: rgba(51, 51, 51, 0.7); 1719 1720 } 1720 1721 1721 .entry-content .more-link { 1722 .entry-content .more-link, 1723 .entry-summary .more-link:after { 1722 1724 white-space: nowrap; 1723 1725 } 1724 1726 1725 .entry-content .more-link:after { 1727 .entry-content .more-link:after, 1728 .entry-summary .more-link:after { 1726 1729 content: "\f429"; 1727 1730 font-size: 16px; 1728 1731 position: relative; … … 3116 3119 margin-bottom: 1.6471em; 3117 3120 } 3118 3121 3119 .entry-content .more-link:after { 3122 .entry-content .more-link:after, 3123 .entry-summary .more-link:after { 3120 3124 font-size: 24px; 3121 3125 top: 2px; 3122 3126 } … … 3651 3655 margin-bottom: 1.6842em; 3652 3656 } 3653 3657 3654 .entry-content .more-link:after { 3658 .entry-content .more-link:after, 3659 .entry-summary .more-link:after { 3655 3660 top: 3px; 3656 3661 } 3657 3662 … … 4287 4292 margin-bottom: 1.6em; 4288 4293 } 4289 4294 4290 .entry-content .more-link:after { 4295 .entry-content .more-link:after, 4296 .entry-summary .more-link:after { 4291 4297 font-size: 16px; 4292 4298 top: 5px; 4293 4299 } … … 4822 4828 margin-bottom: 1.6471em; 4823 4829 } 4824 4830 4825 .entry-content .more-link:after { 4831 .entry-content .more-link:after, 4832 .entry-summary .more-link:after { 4826 4833 font-size: 24px; 4827 4834 top: 2px; 4828 4835 } … … 5334 5341 margin-bottom: 1.6842em; 5335 5342 } 5336 5343 5337 .entry-content .more-link:after { 5344 .entry-content .more-link:after, 5345 .entry-summary .more-link:after { 5338 5346 top: 3px; 5339 5347 } 5340 5348