| | 298 | endif; |
| | 299 | |
| | 300 | if ( ! function_exists( 'twentyfifteen_excerpt_more' ) ) : |
| | 301 | /** |
| | 302 | * Replaces "[...]" (appended to automatically generated excerpts) with 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> <span class="meta-nav">→</span>' ) |
| | 312 | ); |
| | 313 | } |
| | 314 | add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' ); |