| | 204 | |
| | 205 | if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) : |
| | 206 | /** |
| | 207 | * Replaces "[...]" (appended to automatically generated excerpts) with ... |
| | 208 | * and a Continue reading link. |
| | 209 | * |
| | 210 | * @since Twenty Fourteen 1.3 |
| | 211 | * |
| | 212 | * @param string $more Default Read More excerpt link. |
| | 213 | * @return string Filtered Read More excerpt link. |
| | 214 | */ |
| | 215 | function twentyfourteen_excerpt_more( $more ) { |
| | 216 | $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>', |
| | 217 | esc_url( get_permalink( get_the_ID() ) ), |
| | 218 | /* translators: %s: Name of current post */ |
| | 219 | sprintf( esc_html__( 'Continue reading %s', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span> <span class="meta-nav">→</span>' ) |
| | 220 | ); |
| | 221 | return ' … ' . $link; |
| | 222 | } |
| | 223 | add_filter( 'excerpt_more', 'twentyfourteen_excerpt_more' ); |
| | 224 | endif; |