Changeset 30237
- Timestamp:
- 11/04/2014 09:18:22 PM (10 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfifteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php
r30232 r30237 221 221 } 222 222 endif; 223 224 if ( ! function_exists( 'twentyfifteen_excerpt_more' ) && ! is_admin() ) : 225 /** 226 * Replaces "[...]" (appended to automatically generated excerpts) with ... and a Continue reading link. 227 * 228 * @since Twenty Fifteen 1.0 229 * 230 */ 231 function twentyfifteen_excerpt_more( $more ) { 232 $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>', 233 esc_url( get_permalink( get_the_ID() ) ), 234 /* translators: %s: Name of current post */ 235 sprintf( esc_html__( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 236 ); 237 return ' … ' . $link; 238 } 239 add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' ); 240 endif; -
trunk/src/wp-content/themes/twentyfifteen/style.css
r30229 r30237 181 181 .format-link .entry-title a:after, 182 182 .entry-content .more-link:after, 183 .entry-summary .more-link:after, 183 184 .author-link:after { 184 185 -moz-osx-font-smoothing: grayscale; … … 1757 1758 } 1758 1759 1759 .entry-content .more-link { 1760 .entry-content .more-link, 1761 .entry-summary .more-link:after { 1760 1762 white-space: nowrap; 1761 1763 } 1762 1764 1763 .entry-content .more-link:after { 1765 .entry-content .more-link:after, 1766 .entry-summary .more-link:after { 1764 1767 content: "\f429"; 1765 1768 font-size: 16px; … … 3207 3210 } 3208 3211 3209 .entry-content .more-link:after { 3212 .entry-content .more-link:after, 3213 .entry-summary .more-link:after { 3210 3214 font-size: 24px; 3211 3215 top: 2px; … … 3742 3746 } 3743 3747 3744 .entry-content .more-link:after { 3748 .entry-content .more-link:after, 3749 .entry-summary .more-link:after { 3745 3750 top: 3px; 3746 3751 } … … 4378 4383 } 4379 4384 4380 .entry-content .more-link:after { 4385 .entry-content .more-link:after, 4386 .entry-summary .more-link:after { 4381 4387 font-size: 16px; 4382 4388 top: 5px; … … 4913 4919 } 4914 4920 4915 .entry-content .more-link:after { 4921 .entry-content .more-link:after, 4922 .entry-summary .more-link:after { 4916 4923 font-size: 24px; 4917 4924 top: 2px; … … 5425 5432 } 5426 5433 5427 .entry-content .more-link:after { 5434 .entry-content .more-link:after, 5435 .entry-summary .more-link:after { 5428 5436 top: 3px; 5429 5437 }
Note: See TracChangeset
for help on using the changeset viewer.