In Twenty Thirteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised.
See #30641 git-svn-id: https://develop.svn.wordpress.org/trunk@30795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
23d0e8392e
commit
ea614c6841
@ -13,8 +13,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -41,8 +41,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content( sprintf(
|
the_content( sprintf(
|
||||||
esc_html__( 'Continue reading %s', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">→</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
|
||||||
|
@ -475,7 +475,7 @@ function twentythirteen_excerpt_more( $more ) {
|
|||||||
$link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>',
|
$link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>',
|
||||||
esc_url( get_permalink( get_the_ID() ) ),
|
esc_url( get_permalink( get_the_ID() ) ),
|
||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
sprintf( esc_html__( 'Continue reading %s', 'twentythirteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span> <span class="meta-nav">→</span>' )
|
sprintf( __( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
|
||||||
);
|
);
|
||||||
return ' … ' . $link;
|
return ' … ' . $link;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user