Coding Standards: Add missing translator comments to the default themes.
All default themes now have translator comments for all strings with placeholders! See #46732. git-svn-id: https://develop.svn.wordpress.org/trunk@45609 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dd8fa6dc05
commit
9a54b94b4a
@ -31,7 +31,10 @@
|
||||
<p class="author-bio">
|
||||
<?php the_author_meta( 'description' ); ?>
|
||||
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
||||
<?php printf( __( 'View all posts by %s', 'twentyfifteen' ), get_the_author() ); ?>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'View all posts by %s', 'twentyfifteen' ), get_the_author() );
|
||||
?>
|
||||
</a>
|
||||
</p><!-- .author-bio -->
|
||||
|
||||
|
@ -26,9 +26,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s', 'twentyfifteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -19,7 +19,12 @@
|
||||
|
||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||
|
||||
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %s: post editor URL */
|
||||
printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) );
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
|
||||
|
@ -28,9 +28,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s', 'twentyfifteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -28,7 +28,10 @@
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfifteen' ) ); ?>" class="imprint">
|
||||
<?php printf( __( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' ); ?>
|
||||
<?php
|
||||
/* translators: %s: WordPress */
|
||||
printf( __( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- .site-footer -->
|
||||
|
@ -34,6 +34,7 @@ add_action( 'after_switch_theme', 'twentyfifteen_switch_theme' );
|
||||
* @since Twenty Fifteen 1.0
|
||||
*/
|
||||
function twentyfifteen_upgrade_notice() {
|
||||
/* translators: %s: WordPress version */
|
||||
$message = sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] );
|
||||
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||
}
|
||||
@ -45,6 +46,7 @@ function twentyfifteen_upgrade_notice() {
|
||||
*/
|
||||
function twentyfifteen_customize() {
|
||||
wp_die(
|
||||
/* translators: %s: WordPress version */
|
||||
sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] ),
|
||||
'',
|
||||
array(
|
||||
@ -61,6 +63,7 @@ add_action( 'load-customize.php', 'twentyfifteen_customize' );
|
||||
*/
|
||||
function twentyfifteen_preview() {
|
||||
if ( isset( $_GET['preview'] ) ) {
|
||||
/* translators: %s: WordPress version */
|
||||
wp_die( sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] ) );
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,12 @@ get_header(); ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfifteen' ), get_search_query() ); ?></h1>
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
/* translators: %s: search query */
|
||||
printf( __( 'Search Results for: %s', 'twentyfifteen' ), get_search_query() );
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
|
@ -27,20 +27,19 @@ get_header(); ?>
|
||||
<header class="page-header">
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
if ( is_day() ) :
|
||||
if ( is_day() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
|
||||
|
||||
elseif ( is_month() ) :
|
||||
printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
|
||||
|
||||
elseif ( is_year() ) :
|
||||
printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
|
||||
|
||||
else :
|
||||
_e( 'Archives', 'twentyfourteen' );
|
||||
|
||||
endif;
|
||||
?>
|
||||
} elseif ( is_month() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
|
||||
} elseif ( is_year() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
|
||||
} else {
|
||||
_e( 'Archives', 'twentyfourteen' );
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
|
@ -28,6 +28,7 @@ get_header(); ?>
|
||||
*/
|
||||
the_post();
|
||||
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
|
||||
?>
|
||||
</h1>
|
||||
|
@ -17,7 +17,12 @@ get_header(); ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: %s: category title */
|
||||
printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php
|
||||
// Show an optional term description.
|
||||
|
@ -43,9 +43,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -43,9 +43,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -43,9 +43,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -43,9 +43,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -43,9 +43,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -15,7 +15,12 @@
|
||||
<div class="page-content">
|
||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||
|
||||
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %s: post editor URL */
|
||||
printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) );
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
|
||||
|
@ -43,9 +43,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -43,9 +43,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -52,9 +52,9 @@
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -24,7 +24,10 @@
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>" class="imprint">
|
||||
<?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?>
|
||||
<?php
|
||||
/* translators: %s: WordPress */
|
||||
printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
|
@ -504,7 +504,10 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
|
||||
<?php echo get_the_author_meta( 'description', $contributor_id ); ?>
|
||||
</p>
|
||||
<a class="button contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>">
|
||||
<?php printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?>
|
||||
<?php
|
||||
/* translators: %d: post count */
|
||||
printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- .contributor-summary -->
|
||||
</div><!-- .contributor-info -->
|
||||
@ -623,6 +626,7 @@ function twentyfourteen_wp_title( $title, $sep ) {
|
||||
|
||||
// Add a page number if necessary.
|
||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||
/* translators: %s: page number */
|
||||
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@ add_action( 'after_switch_theme', 'twentyfourteen_switch_theme' );
|
||||
* @since Twenty Fourteen 1.0
|
||||
*/
|
||||
function twentyfourteen_upgrade_notice() {
|
||||
/* translators: %s: WordPress version */
|
||||
$message = sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] );
|
||||
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||
}
|
||||
@ -45,6 +46,7 @@ function twentyfourteen_upgrade_notice() {
|
||||
*/
|
||||
function twentyfourteen_customize() {
|
||||
wp_die(
|
||||
/* translators: %s: WordPress version */
|
||||
sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ),
|
||||
'',
|
||||
array(
|
||||
@ -61,6 +63,7 @@ add_action( 'load-customize.php', 'twentyfourteen_customize' );
|
||||
*/
|
||||
function twentyfourteen_preview() {
|
||||
if ( isset( $_GET['preview'] ) ) {
|
||||
/* translators: %s: WordPress version */
|
||||
wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ) );
|
||||
}
|
||||
}
|
||||
|
@ -60,6 +60,7 @@ function twentyfourteen_customize_register( $wp_customize ) {
|
||||
array(
|
||||
'title' => __( 'Featured Content', 'twentyfourteen' ),
|
||||
'description' => sprintf(
|
||||
/* translators: 1: featured tag editor URL, 2: post editor URL */
|
||||
__( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
|
||||
esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
|
||||
admin_url( 'edit.php?show_sticky=1' )
|
||||
@ -159,8 +160,11 @@ function twentyfourteen_contextual_help() {
|
||||
'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
|
||||
'content' =>
|
||||
'<ul>' .
|
||||
/* translators: 1: featured tag editor URL, 2: post editor URL, 3: customizer URL, 4: post editor URL */
|
||||
'<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by a <a href="%1$s">tag</a>; you can change the tag and layout in <a href="%2$s">Appearance → Customize</a>. If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), admin_url( 'customize.php' ), admin_url( 'edit.php?show_sticky=1' ) ) . '</li>' .
|
||||
/* translators: %s: featured images documentation URL */
|
||||
'<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you’d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages—above the title—and in the Featured Content area on the home page.', 'twentyfourteen' ), 'https://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
|
||||
/* translators: %s: Twenty Fourteen documentation URL */
|
||||
'<li>' . sprintf( __( 'For an in-depth tutorial, and more tips and tricks, visit the <a href="%s">Twenty Fourteen documentation</a>.', 'twentyfourteen' ), 'https://codex.wordpress.org/Twenty_Fourteen' ) . '</li>' .
|
||||
'</ul>',
|
||||
)
|
||||
|
@ -380,6 +380,7 @@ class Featured_Content {
|
||||
array(
|
||||
'title' => __( 'Featured Content', 'twentyfourteen' ),
|
||||
'description' => sprintf(
|
||||
/* translators: 1: featured tag editor URL, 2: post editor URL */
|
||||
__( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
|
||||
esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
|
||||
admin_url( 'edit.php?show_sticky=1' )
|
||||
|
@ -189,6 +189,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
|
||||
<p class="wp-caption-text">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: post permalink, 2: number of images in the gallery */
|
||||
_n( 'This gallery contains <a href="%1$s" rel="bookmark">%2$s photo</a>.', 'This gallery contains <a href="%1$s" rel="bookmark">%2$s photos</a>.', $total_images, 'twentyfourteen' ),
|
||||
esc_url( get_permalink() ),
|
||||
number_format_i18n( $total_images )
|
||||
|
@ -15,7 +15,12 @@ get_header(); ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1>
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
/* translators: %s: search query */
|
||||
printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() );
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
|
@ -19,7 +19,12 @@ get_header(); ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: %s: tag title */
|
||||
printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php
|
||||
// Show an optional term description.
|
||||
|
@ -54,8 +54,8 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
|
||||
}
|
||||
|
||||
printf(
|
||||
/* translators: %s: comment author link */
|
||||
wp_kses(
|
||||
/* translators: %s: comment author link */
|
||||
__( '%s <span class="screen-reader-text says">says:</span>', 'twentynineteen' ),
|
||||
array(
|
||||
'span' => array(
|
||||
|
@ -36,6 +36,7 @@ add_action( 'after_switch_theme', 'twentynineteen_switch_theme' );
|
||||
* @global string $wp_version WordPress version.
|
||||
*/
|
||||
function twentynineteen_upgrade_notice() {
|
||||
/* translators: %s: WordPress version */
|
||||
$message = sprintf( __( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ), $GLOBALS['wp_version'] );
|
||||
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||
}
|
||||
@ -50,6 +51,7 @@ function twentynineteen_upgrade_notice() {
|
||||
function twentynineteen_customize() {
|
||||
wp_die(
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
__( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ),
|
||||
$GLOBALS['wp_version']
|
||||
),
|
||||
@ -70,6 +72,7 @@ add_action( 'load-customize.php', 'twentynineteen_customize' );
|
||||
*/
|
||||
function twentynineteen_preview() {
|
||||
if ( isset( $_GET['preview'] ) ) {
|
||||
/* translators: %s: WordPress version */
|
||||
wp_die( sprintf( __( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ), $GLOBALS['wp_version'] ) );
|
||||
}
|
||||
}
|
||||
|
@ -31,15 +31,20 @@ if ( have_posts() ) {
|
||||
?>
|
||||
|
||||
<h1 class="page-title">
|
||||
<?php if ( is_day() ) : ?>
|
||||
<?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
|
||||
<?php elseif ( is_month() ) : ?>
|
||||
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
|
||||
<?php elseif ( is_year() ) : ?>
|
||||
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
|
||||
<?php else : ?>
|
||||
<?php _e( 'Blog Archives', 'twentyten' ); ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if ( is_day() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() );
|
||||
} elseif ( is_month() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) );
|
||||
} elseif ( is_year() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) );
|
||||
} else {
|
||||
_e( 'Blog Archives', 'twentyten' );
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php
|
||||
|
@ -26,7 +26,12 @@ if ( have_posts() ) {
|
||||
}
|
||||
?>
|
||||
|
||||
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
|
||||
<h1 class="page-title author">
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'Author Archives: %s', 'twentyten' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php
|
||||
// If a user has filled out their description, show a bio on their entries.
|
||||
@ -46,7 +51,12 @@ if ( get_the_author_meta( 'description' ) ) :
|
||||
?>
|
||||
</div><!-- #author-avatar -->
|
||||
<div id="author-description">
|
||||
<h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
|
||||
<h2>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'About %s', 'twentyten' ), get_the_author() );
|
||||
?>
|
||||
</h2>
|
||||
<?php the_author_meta( 'description' ); ?>
|
||||
</div><!-- #author-description -->
|
||||
</div><!-- #entry-author-info -->
|
||||
|
@ -14,6 +14,7 @@ get_header(); ?>
|
||||
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
/* translators: %s: category title */
|
||||
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||
?>
|
||||
</h1>
|
||||
|
@ -41,8 +41,8 @@
|
||||
'<em>' . get_the_title() . '</em>'
|
||||
);
|
||||
} else {
|
||||
/* translators: %1$s: The number of comments. %2$s: The post title. */
|
||||
printf(
|
||||
/* translators: %1$s: The number of comments. %2$s: The post title. */
|
||||
_n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
|
||||
number_format_i18n( get_comments_number() ),
|
||||
'<em>' . get_the_title() . '</em>'
|
||||
|
@ -44,7 +44,10 @@
|
||||
do_action( 'twentyten_credits' );
|
||||
?>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyten' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>">
|
||||
<?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?>
|
||||
<?php
|
||||
/* translators: %s: WordPress */
|
||||
printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- #site-generator -->
|
||||
|
||||
|
@ -423,7 +423,10 @@ if ( ! function_exists( 'twentyten_comment' ) ) :
|
||||
<div id="comment-<?php comment_ID(); ?>">
|
||||
<div class="comment-author vcard">
|
||||
<?php echo get_avatar( $comment, 40 ); ?>
|
||||
<?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) );
|
||||
?>
|
||||
</div><!-- .comment-author .vcard -->
|
||||
<?php if ( $comment->comment_approved == '0' ) : ?>
|
||||
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
|
||||
@ -588,6 +591,7 @@ if ( ! function_exists( 'twentyten_posted_on' ) ) :
|
||||
*/
|
||||
function twentyten_posted_on() {
|
||||
printf(
|
||||
/* translators: 1: CSS classes, 2: date, 3: author display name */
|
||||
__( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
|
||||
'meta-prep meta-prep-author',
|
||||
sprintf(
|
||||
@ -599,6 +603,7 @@ if ( ! function_exists( 'twentyten_posted_on' ) ) :
|
||||
sprintf(
|
||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
|
||||
get_author_posts_url( get_the_author_meta( 'ID' ) ),
|
||||
/* translators: %s: author display name */
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
)
|
||||
@ -616,10 +621,13 @@ if ( ! function_exists( 'twentyten_posted_in' ) ) :
|
||||
// Retrieves tag list of current post, separated by commas.
|
||||
$tag_list = get_the_tag_list( '', ', ' );
|
||||
if ( $tag_list && ! is_wp_error( $tag_list ) ) {
|
||||
/* translators: 1: category name, 2: tag name, 3: post permalink, 4: post title */
|
||||
$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||
} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
|
||||
/* translators: 1: category name, 3: post permalink, 4: post title */
|
||||
$posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||
} else {
|
||||
/* translators: 3: post permalink, 4: post title */
|
||||
$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||
}
|
||||
// Prints the string, replacing the placeholders.
|
||||
|
@ -32,6 +32,7 @@ if ( $site_description && ( is_home() || is_front_page() ) ) {
|
||||
|
||||
// Add a page number if necessary:
|
||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||
/* translators: %s: page number */
|
||||
echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) );
|
||||
}
|
||||
|
||||
|
@ -21,10 +21,14 @@ if ( have_posts() ) {
|
||||
the_post();
|
||||
?>
|
||||
|
||||
<?php if ( ! empty( $post->post_parent ) ) : ?>
|
||||
<p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery">
|
||||
<?php
|
||||
if ( ! empty( $post->post_parent ) ) :
|
||||
/* translators: %s: post title */
|
||||
$post_tile = sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) );
|
||||
?>
|
||||
<p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="gallery">
|
||||
<?php
|
||||
/* translators: %s - title of parent post */
|
||||
/* translators: %s: title of parent post */
|
||||
printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
|
||||
?>
|
||||
</a></p>
|
||||
@ -36,11 +40,13 @@ if ( have_posts() ) {
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: author display name */
|
||||
__( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
|
||||
'meta-prep meta-prep-author',
|
||||
sprintf(
|
||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
||||
get_author_posts_url( get_the_author_meta( 'ID' ) ),
|
||||
/* translators: %s: author display name */
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
)
|
||||
@ -49,6 +55,7 @@ if ( have_posts() ) {
|
||||
<span class="meta-sep">|</span>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: CSS classes: 2: date */
|
||||
__( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
|
||||
'meta-prep meta-prep-entry-date',
|
||||
sprintf(
|
||||
@ -61,6 +68,7 @@ if ( have_posts() ) {
|
||||
echo ' <span class="meta-sep">|</span> ';
|
||||
$metadata = wp_get_attachment_metadata();
|
||||
printf(
|
||||
/* translators: %s: image dimensions */
|
||||
__( 'Full size is %s pixels', 'twentyten' ),
|
||||
sprintf(
|
||||
'<a href="%1$s" title="%2$s">%3$s × %4$s</a>',
|
||||
|
@ -54,11 +54,19 @@ if ( have_posts() ) {
|
||||
?>
|
||||
</div><!-- #author-avatar -->
|
||||
<div id="author-description">
|
||||
<h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
|
||||
<h2>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'About %s', 'twentyten' ), get_the_author() );
|
||||
?>
|
||||
</h2>
|
||||
<?php the_author_meta( 'description' ); ?>
|
||||
<div id="author-link">
|
||||
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
||||
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- #author-link -->
|
||||
</div><!-- #author-description -->
|
||||
|
@ -86,7 +86,9 @@ while ( have_posts() ) :
|
||||
<p><em>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: HTML tag attributes, 2: image count */
|
||||
_n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ),
|
||||
/* translators: %s: post title */
|
||||
'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
|
||||
number_format_i18n( $total_images )
|
||||
);
|
||||
@ -167,7 +169,10 @@ while ( have_posts() ) :
|
||||
<div class="entry-utility">
|
||||
<?php if ( count( get_the_category() ) ) : ?>
|
||||
<span class="cat-links">
|
||||
<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
|
||||
<?php
|
||||
/* translators: 1: CSS classes, 2: catgory list */
|
||||
printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) );
|
||||
?>
|
||||
</span>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php endif; ?>
|
||||
@ -176,7 +181,10 @@ while ( have_posts() ) :
|
||||
if ( $tags_list ) :
|
||||
?>
|
||||
<span class="tag-links">
|
||||
<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
|
||||
<?php
|
||||
/* translators: 1: CSS classes, 2: catgory list */
|
||||
printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
|
||||
?>
|
||||
</span>
|
||||
<span class="meta-sep">|</span>
|
||||
<?php endif; ?>
|
||||
|
@ -13,7 +13,12 @@ get_header(); ?>
|
||||
<div id="content" role="main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
/* translators: %s: search query */
|
||||
printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' );
|
||||
?>
|
||||
</h1>
|
||||
<?php
|
||||
/*
|
||||
* Run the loop for the search to output the results.
|
||||
|
@ -14,6 +14,7 @@ get_header(); ?>
|
||||
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
/* translators: %s: tag title */
|
||||
printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||
?>
|
||||
</h1>
|
||||
|
@ -26,16 +26,19 @@ get_header(); ?>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
if ( is_day() ) :
|
||||
if ( is_day() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
|
||||
elseif ( is_month() ) :
|
||||
printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
|
||||
elseif ( is_year() ) :
|
||||
printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
|
||||
else :
|
||||
_e( 'Archives', 'twentythirteen' );
|
||||
endif;
|
||||
?>
|
||||
} elseif ( is_month() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
|
||||
} elseif ( is_year() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
|
||||
} else {
|
||||
_e( 'Archives', 'twentythirteen' );
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .archive-header -->
|
||||
|
||||
|
@ -23,11 +23,19 @@
|
||||
?>
|
||||
</div><!-- .author-avatar -->
|
||||
<div class="author-description">
|
||||
<h2 class="author-title"><?php printf( __( 'About %s', 'twentythirteen' ), get_the_author() ); ?></h2>
|
||||
<h2 class="author-title">
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'About %s', 'twentythirteen' ), get_the_author() );
|
||||
?>
|
||||
</h2>
|
||||
<p class="author-bio">
|
||||
<?php the_author_meta( 'description' ); ?>
|
||||
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
||||
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentythirteen' ), get_the_author() ); ?>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentythirteen' ), get_the_author() );
|
||||
?>
|
||||
</a>
|
||||
</p>
|
||||
</div><!-- .author-description -->
|
||||
|
@ -28,7 +28,12 @@ get_header(); ?>
|
||||
?>
|
||||
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'All posts by %s', 'twentythirteen' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .archive-header -->
|
||||
|
||||
<?php
|
||||
|
@ -16,7 +16,12 @@ get_header(); ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: category title */
|
||||
printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php if ( category_description() ) : // Show an optional category description ?>
|
||||
<div class="archive-meta"><?php echo category_description(); ?></div>
|
||||
|
@ -11,9 +11,9 @@
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -22,9 +22,9 @@
|
||||
<div class="entry-content">
|
||||
<div class="audio-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -21,9 +21,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -25,6 +25,7 @@
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: post title */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -21,9 +21,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -22,9 +22,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -15,7 +15,12 @@
|
||||
<div class="page-content">
|
||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||
|
||||
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentythirteen' ), admin_url( 'post-new.php' ) ); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %s: new post URL */
|
||||
printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentythirteen' ), admin_url( 'post-new.php' ) );
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
|
||||
|
@ -11,9 +11,9 @@
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -11,9 +11,9 @@
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -21,9 +21,9 @@
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -39,9 +39,9 @@
|
||||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
/* translators: %s: Name of current post */
|
||||
the_content(
|
||||
sprintf(
|
||||
/* translators: %s: Name of current post */
|
||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||
)
|
||||
|
@ -22,7 +22,10 @@
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>" class="imprint">
|
||||
<?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?>
|
||||
<?php
|
||||
/* translators: %s: WordPress */
|
||||
printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
|
@ -361,6 +361,7 @@ function twentythirteen_wp_title( $title, $sep ) {
|
||||
|
||||
// Add a page number if necessary.
|
||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||
/* translators: %s: page number */
|
||||
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) );
|
||||
}
|
||||
|
||||
@ -496,6 +497,7 @@ if ( ! function_exists( 'twentythirteen_entry_meta' ) ) :
|
||||
printf(
|
||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
/* translators: %s: author display name */
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
);
|
||||
@ -516,6 +518,7 @@ if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
|
||||
*/
|
||||
function twentythirteen_entry_date( $echo = true ) {
|
||||
if ( has_post_format( array( 'chat', 'status' ) ) ) {
|
||||
/* translators: 1: post format name, 2: date */
|
||||
$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' );
|
||||
} else {
|
||||
$format_prefix = '%2$s';
|
||||
@ -524,6 +527,7 @@ if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
|
||||
$date = sprintf(
|
||||
'<span class="date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span>',
|
||||
esc_url( get_permalink() ),
|
||||
/* translators: %s: post title */
|
||||
esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )
|
||||
|
@ -26,8 +26,9 @@ get_header(); ?>
|
||||
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
$published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
|
||||
$post_title = get_the_title( $post->post_parent );
|
||||
/* translators: 1: date, 2: date, 3, parent permalink, 4, post title, 5: post title */
|
||||
$published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
|
||||
$post_title = get_the_title( $post->post_parent );
|
||||
if ( empty( $post_title ) || 0 == $post->post_parent ) {
|
||||
$published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ add_action( 'after_switch_theme', 'twentythirteen_switch_theme' );
|
||||
* @since Twenty Thirteen 1.0
|
||||
*/
|
||||
function twentythirteen_upgrade_notice() {
|
||||
/* translators: %s: WordPress version */
|
||||
$message = sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] );
|
||||
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||
}
|
||||
@ -45,6 +46,7 @@ function twentythirteen_upgrade_notice() {
|
||||
*/
|
||||
function twentythirteen_customize() {
|
||||
wp_die(
|
||||
/* translators: %s: WordPress version */
|
||||
sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ),
|
||||
'',
|
||||
array(
|
||||
@ -61,6 +63,7 @@ add_action( 'load-customize.php', 'twentythirteen_customize' );
|
||||
*/
|
||||
function twentythirteen_preview() {
|
||||
if ( isset( $_GET['preview'] ) ) {
|
||||
/* translators: %s: WordPress version */
|
||||
wp_die( sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ) );
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,12 @@ get_header(); ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentythirteen' ), get_search_query() ); ?></h1>
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
/* translators: %s: search query */
|
||||
printf( __( 'Search Results for: %s', 'twentythirteen' ), get_search_query() );
|
||||
?>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<?php /* The loop */ ?>
|
||||
|
@ -18,7 +18,12 @@ get_header(); ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentythirteen' ), single_tag_title( '', false ) ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: tag title */
|
||||
printf( __( 'Tag Archives: %s', 'twentythirteen' ), single_tag_title( '', false ) );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php if ( tag_description() ) : // Show an optional tag description ?>
|
||||
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
||||
|
@ -20,7 +20,12 @@ get_header(); ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( '%s Archives', 'twentythirteen' ), '<span>' . esc_html( get_post_format_string( get_post_format() ) ) . '</span>' ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: %s: post format name */
|
||||
printf( __( '%s Archives', 'twentythirteen' ), '<span>' . esc_html( get_post_format_string( get_post_format() ) ) . '</span>' );
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .archive-header -->
|
||||
|
||||
<?php /* The loop */ ?>
|
||||
|
@ -26,16 +26,19 @@ get_header(); ?>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
if ( is_day() ) :
|
||||
if ( is_day() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
|
||||
elseif ( is_month() ) :
|
||||
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
elseif ( is_year() ) :
|
||||
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
else :
|
||||
_e( 'Archives', 'twentytwelve' );
|
||||
endif;
|
||||
?>
|
||||
} elseif ( is_month() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
} elseif ( is_year() ) {
|
||||
/* translators: %s: date */
|
||||
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||
} else {
|
||||
_e( 'Archives', 'twentytwelve' );
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .archive-header -->
|
||||
|
||||
|
@ -29,7 +29,12 @@ get_header(); ?>
|
||||
?>
|
||||
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: author display name */
|
||||
printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .archive-header -->
|
||||
|
||||
<?php
|
||||
@ -61,7 +66,12 @@ get_header(); ?>
|
||||
?>
|
||||
</div><!-- .author-avatar -->
|
||||
<div class="author-description">
|
||||
<h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
|
||||
<h2>
|
||||
<?php
|
||||
/* translators: author display name */
|
||||
printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
|
||||
?>
|
||||
</h2>
|
||||
<p><?php the_author_meta( 'description' ); ?></p>
|
||||
</div><!-- .author-description -->
|
||||
</div><!-- .author-info -->
|
||||
|
@ -18,7 +18,12 @@ get_header(); ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: %s: category title */
|
||||
printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php if ( category_description() ) : // Show an optional category description ?>
|
||||
<div class="archive-meta"><?php echo category_description(); ?></div>
|
||||
|
@ -6,6 +6,9 @@
|
||||
* @subpackage Twenty_Twelve
|
||||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
|
||||
/* translators: %s: post title */
|
||||
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
@ -17,7 +20,7 @@
|
||||
</div><!-- .aside -->
|
||||
|
||||
<footer class="entry-meta">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||
<?php if ( comments_open() ) : ?>
|
||||
<div class="comments-link">
|
||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
||||
|
@ -6,6 +6,9 @@
|
||||
* @subpackage Twenty_Twelve
|
||||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
|
||||
/* translators: %s: post title */
|
||||
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
@ -15,7 +18,7 @@
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-meta">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||
<?php if ( comments_open() ) : ?>
|
||||
<div class="comments-link">
|
||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
||||
|
@ -6,6 +6,9 @@
|
||||
* @subpackage Twenty_Twelve
|
||||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
|
||||
/* translators: %s: post title */
|
||||
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
@ -14,7 +17,7 @@
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-meta">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
|
||||
<?php if ( comments_open() ) : ?>
|
||||
<div class="comments-link">
|
||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
||||
|
@ -6,13 +6,16 @@
|
||||
* @subpackage Twenty_Twelve
|
||||
* @since Twenty Twelve 1.0
|
||||
*/
|
||||
|
||||
/* translators: %s: post title */
|
||||
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="entry-header">
|
||||
<header>
|
||||
<h1><?php the_author(); ?></h1>
|
||||
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
|
||||
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
|
||||
</header>
|
||||
<?php
|
||||
/**
|
||||
|
@ -68,11 +68,19 @@
|
||||
?>
|
||||
</div><!-- .author-avatar -->
|
||||
<div class="author-description">
|
||||
<h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
|
||||
<h2>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
|
||||
?>
|
||||
</h2>
|
||||
<p><?php the_author_meta( 'description' ); ?></p>
|
||||
<div class="author-link">
|
||||
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
||||
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?>
|
||||
<?php
|
||||
/* translators: %s: author display name */
|
||||
printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- .author-link -->
|
||||
</div><!-- .author-description -->
|
||||
|
@ -19,7 +19,10 @@
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>">
|
||||
<?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?>
|
||||
<?php
|
||||
/* translators: %s: WordPress */
|
||||
printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' );
|
||||
?>
|
||||
</a>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
|
@ -308,6 +308,7 @@ function twentytwelve_wp_title( $title, $sep ) {
|
||||
|
||||
// Add a page number if necessary.
|
||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||
/* translators: %s: page number */
|
||||
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
|
||||
}
|
||||
|
||||
@ -502,16 +503,19 @@ if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
|
||||
$author = sprintf(
|
||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
/* translators: %s: author display name */
|
||||
esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
|
||||
get_the_author()
|
||||
);
|
||||
|
||||
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
|
||||
if ( $tag_list ) {
|
||||
/* translators: 1: category name, 2: tag name, 3: date, 4: author display name */
|
||||
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||
} elseif ( $categories_list ) {
|
||||
/* translators: 1: category name, 3: date, 4: author display name */
|
||||
$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||
} else {
|
||||
/* translators: 3: date, 4: author display name */
|
||||
$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,7 @@ get_header(); ?>
|
||||
<?php
|
||||
$metadata = wp_get_attachment_metadata();
|
||||
printf(
|
||||
/* translators: 1: date, 2: date, 3: attachment URL, 4: image width in pixels, 5: image height in pixels, 6: post parent permalink, 7: post parent title, 8: post parent title */
|
||||
__( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() ),
|
||||
|
@ -43,7 +43,12 @@ get_header(); ?>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %s: post editor URL */
|
||||
printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) );
|
||||
?>
|
||||
</p>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php
|
||||
|
@ -15,7 +15,12 @@ get_header(); ?>
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
/* translators: %s: search query */
|
||||
printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' );
|
||||
?>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<?php twentytwelve_content_nav( 'nav-above' ); ?>
|
||||
|
@ -18,7 +18,12 @@ get_header(); ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<header class="archive-header">
|
||||
<h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
|
||||
<h1 class="archive-title">
|
||||
<?php
|
||||
/* translators: %s: tag title */
|
||||
printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<?php if ( tag_description() ) : // Show an optional tag description ?>
|
||||
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
||||
|
Loading…
Reference in New Issue
Block a user