Changeset 30389
- Timestamp:
- 11/19/2014 06:26:17 PM (10 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/content-aside.php
r26258 r30389 44 44 <div class="entry-content"> 45 45 <?php 46 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 46 /* translators: %s: Name of current post */ 47 the_content( sprintf( 48 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 49 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 50 ) ); 51 47 52 wp_link_pages( array( 48 53 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/content-audio.php
r26258 r30389 44 44 <div class="entry-content"> 45 45 <?php 46 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 46 /* translators: %s: Name of current post */ 47 the_content( sprintf( 48 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 49 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 50 ) ); 51 47 52 wp_link_pages( array( 48 53 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/content-gallery.php
r26258 r30389 44 44 <div class="entry-content"> 45 45 <?php 46 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 46 /* translators: %s: Name of current post */ 47 the_content( sprintf( 48 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 49 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 50 ) ); 51 47 52 wp_link_pages( array( 48 53 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/content-image.php
r26258 r30389 44 44 <div class="entry-content"> 45 45 <?php 46 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 46 /* translators: %s: Name of current post */ 47 the_content( sprintf( 48 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 49 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 50 ) ); 51 47 52 wp_link_pages( array( 48 53 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/content-link.php
r26258 r30389 44 44 <div class="entry-content"> 45 45 <?php 46 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 46 /* translators: %s: Name of current post */ 47 the_content( sprintf( 48 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 49 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 50 ) ); 51 47 52 wp_link_pages( array( 48 53 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/content-quote.php
r26258 r30389 44 44 <div class="entry-content"> 45 45 <?php 46 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 46 /* translators: %s: Name of current post */ 47 the_content( sprintf( 48 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 49 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 50 ) ); 51 47 52 wp_link_pages( array( 48 53 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/content-video.php
r26258 r30389 44 44 <div class="entry-content"> 45 45 <?php 46 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 46 /* translators: %s: Name of current post */ 47 the_content( sprintf( 48 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 49 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 50 ) ); 51 47 52 wp_link_pages( array( 48 53 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/content.php
r26258 r30389 52 52 <div class="entry-content"> 53 53 <?php 54 the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyfourteen' ) ); 54 /* translators: %s: Name of current post */ 55 the_content( sprintf( 56 esc_html__( 'Continue reading %s', 'twentyfourteen' ), 57 the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false ) 58 ) ); 59 55 60 wp_link_pages( array( 56 61 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>', -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r30387 r30389 195 195 the_post_thumbnail( 'twentyfourteen-full-width' ); 196 196 } else { 197 the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); 197 the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); 198 198 } 199 199 ?> … … 202 202 <?php endif; // End is_singular() 203 203 } 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;
Note: See TracChangeset
for help on using the changeset viewer.