mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
Coding Standards: Add missing translator comments to the default themes.
All default themes now have translator comments for all strings with placeholders! See #46732. Built from https://develop.svn.wordpress.org/trunk@45609 git-svn-id: http://core.svn.wordpress.org/trunk@45420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82935b0343
commit
c71bc1513e
@ -31,7 +31,10 @@
|
|||||||
<p class="author-bio">
|
<p class="author-bio">
|
||||||
<?php the_author_meta( 'description' ); ?>
|
<?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">
|
<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>
|
</a>
|
||||||
</p><!-- .author-bio -->
|
</p><!-- .author-bio -->
|
||||||
|
|
||||||
|
@ -26,9 +26,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s', 'twentyfifteen' ),
|
__( 'Continue reading %s', 'twentyfifteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -19,7 +19,12 @@
|
|||||||
|
|
||||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
<?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() ) : ?>
|
<?php elseif ( is_search() ) : ?>
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s', 'twentyfifteen' ),
|
__( 'Continue reading %s', 'twentyfifteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
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">
|
<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>
|
</a>
|
||||||
</div><!-- .site-info -->
|
</div><!-- .site-info -->
|
||||||
</footer><!-- .site-footer -->
|
</footer><!-- .site-footer -->
|
||||||
|
@ -34,6 +34,7 @@ add_action( 'after_switch_theme', 'twentyfifteen_switch_theme' );
|
|||||||
* @since Twenty Fifteen 1.0
|
* @since Twenty Fifteen 1.0
|
||||||
*/
|
*/
|
||||||
function twentyfifteen_upgrade_notice() {
|
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'] );
|
$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 );
|
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||||
}
|
}
|
||||||
@ -45,6 +46,7 @@ function twentyfifteen_upgrade_notice() {
|
|||||||
*/
|
*/
|
||||||
function twentyfifteen_customize() {
|
function twentyfifteen_customize() {
|
||||||
wp_die(
|
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'] ),
|
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(
|
array(
|
||||||
@ -61,6 +63,7 @@ add_action( 'load-customize.php', 'twentyfifteen_customize' );
|
|||||||
*/
|
*/
|
||||||
function twentyfifteen_preview() {
|
function twentyfifteen_preview() {
|
||||||
if ( isset( $_GET['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'] ) );
|
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() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="page-header">
|
<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 -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -27,20 +27,19 @@ get_header(); ?>
|
|||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1 class="page-title">
|
<h1 class="page-title">
|
||||||
<?php
|
<?php
|
||||||
if ( is_day() ) :
|
if ( is_day() ) {
|
||||||
|
/* translators: %s: date */
|
||||||
printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
|
printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
|
||||||
|
} elseif ( is_month() ) {
|
||||||
elseif ( is_month() ) :
|
/* translators: %s: date */
|
||||||
printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
|
printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
|
||||||
|
} elseif ( is_year() ) {
|
||||||
elseif ( is_year() ) :
|
/* translators: %s: date */
|
||||||
printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
|
printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
|
||||||
|
} else {
|
||||||
else :
|
_e( 'Archives', 'twentyfourteen' );
|
||||||
_e( 'Archives', 'twentyfourteen' );
|
}
|
||||||
|
?>
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
</h1>
|
</h1>
|
||||||
</header><!-- .page-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ get_header(); ?>
|
|||||||
*/
|
*/
|
||||||
the_post();
|
the_post();
|
||||||
|
|
||||||
|
/* translators: %s: author display name */
|
||||||
printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
|
printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
|
||||||
?>
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -17,7 +17,12 @@ get_header(); ?>
|
|||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="archive-header">
|
<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
|
<?php
|
||||||
// Show an optional term description.
|
// Show an optional term description.
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -15,7 +15,12 @@
|
|||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
<?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() ) : ?>
|
<?php elseif ( is_search() ) : ?>
|
||||||
|
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -52,9 +52,9 @@
|
|||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
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">
|
<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>
|
</a>
|
||||||
</div><!-- .site-info -->
|
</div><!-- .site-info -->
|
||||||
</footer><!-- #colophon -->
|
</footer><!-- #colophon -->
|
||||||
|
@ -504,7 +504,10 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
|
|||||||
<?php echo get_the_author_meta( 'description', $contributor_id ); ?>
|
<?php echo get_the_author_meta( 'description', $contributor_id ); ?>
|
||||||
</p>
|
</p>
|
||||||
<a class="button contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>">
|
<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>
|
</a>
|
||||||
</div><!-- .contributor-summary -->
|
</div><!-- .contributor-summary -->
|
||||||
</div><!-- .contributor-info -->
|
</div><!-- .contributor-info -->
|
||||||
@ -623,6 +626,7 @@ function twentyfourteen_wp_title( $title, $sep ) {
|
|||||||
|
|
||||||
// Add a page number if necessary.
|
// Add a page number if necessary.
|
||||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||||
|
/* translators: %s: page number */
|
||||||
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
|
$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
|
* @since Twenty Fourteen 1.0
|
||||||
*/
|
*/
|
||||||
function twentyfourteen_upgrade_notice() {
|
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'] );
|
$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 );
|
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||||
}
|
}
|
||||||
@ -45,6 +46,7 @@ function twentyfourteen_upgrade_notice() {
|
|||||||
*/
|
*/
|
||||||
function twentyfourteen_customize() {
|
function twentyfourteen_customize() {
|
||||||
wp_die(
|
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'] ),
|
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(
|
array(
|
||||||
@ -61,6 +63,7 @@ add_action( 'load-customize.php', 'twentyfourteen_customize' );
|
|||||||
*/
|
*/
|
||||||
function twentyfourteen_preview() {
|
function twentyfourteen_preview() {
|
||||||
if ( isset( $_GET['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'] ) );
|
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(
|
array(
|
||||||
'title' => __( 'Featured Content', 'twentyfourteen' ),
|
'title' => __( 'Featured Content', 'twentyfourteen' ),
|
||||||
'description' => sprintf(
|
'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' ),
|
__( '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' ) ) ),
|
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' )
|
admin_url( 'edit.php?show_sticky=1' )
|
||||||
@ -159,8 +160,11 @@ function twentyfourteen_contextual_help() {
|
|||||||
'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
|
'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
|
||||||
'content' =>
|
'content' =>
|
||||||
'<ul>' .
|
'<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>' .
|
'<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>' .
|
'<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>' .
|
'<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>',
|
'</ul>',
|
||||||
)
|
)
|
||||||
|
@ -380,6 +380,7 @@ class Featured_Content {
|
|||||||
array(
|
array(
|
||||||
'title' => __( 'Featured Content', 'twentyfourteen' ),
|
'title' => __( 'Featured Content', 'twentyfourteen' ),
|
||||||
'description' => sprintf(
|
'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' ),
|
__( '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' ) ) ),
|
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' )
|
admin_url( 'edit.php?show_sticky=1' )
|
||||||
|
@ -189,6 +189,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
|
|||||||
<p class="wp-caption-text">
|
<p class="wp-caption-text">
|
||||||
<?php
|
<?php
|
||||||
printf(
|
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' ),
|
_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() ),
|
esc_url( get_permalink() ),
|
||||||
number_format_i18n( $total_images )
|
number_format_i18n( $total_images )
|
||||||
|
@ -15,7 +15,12 @@ get_header(); ?>
|
|||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="page-header">
|
<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 -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -19,7 +19,12 @@ get_header(); ?>
|
|||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="archive-header">
|
<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
|
<?php
|
||||||
// Show an optional term description.
|
// Show an optional term description.
|
||||||
|
@ -54,8 +54,8 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: comment author link */
|
|
||||||
wp_kses(
|
wp_kses(
|
||||||
|
/* translators: %s: comment author link */
|
||||||
__( '%s <span class="screen-reader-text says">says:</span>', 'twentynineteen' ),
|
__( '%s <span class="screen-reader-text says">says:</span>', 'twentynineteen' ),
|
||||||
array(
|
array(
|
||||||
'span' => array(
|
'span' => array(
|
||||||
|
@ -36,6 +36,7 @@ add_action( 'after_switch_theme', 'twentynineteen_switch_theme' );
|
|||||||
* @global string $wp_version WordPress version.
|
* @global string $wp_version WordPress version.
|
||||||
*/
|
*/
|
||||||
function twentynineteen_upgrade_notice() {
|
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'] );
|
$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 );
|
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||||
}
|
}
|
||||||
@ -50,6 +51,7 @@ function twentynineteen_upgrade_notice() {
|
|||||||
function twentynineteen_customize() {
|
function twentynineteen_customize() {
|
||||||
wp_die(
|
wp_die(
|
||||||
sprintf(
|
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' ),
|
__( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ),
|
||||||
$GLOBALS['wp_version']
|
$GLOBALS['wp_version']
|
||||||
),
|
),
|
||||||
@ -70,6 +72,7 @@ add_action( 'load-customize.php', 'twentynineteen_customize' );
|
|||||||
*/
|
*/
|
||||||
function twentynineteen_preview() {
|
function twentynineteen_preview() {
|
||||||
if ( isset( $_GET['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'] ) );
|
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">
|
<h1 class="page-title">
|
||||||
<?php if ( is_day() ) : ?>
|
<?php
|
||||||
<?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
|
if ( is_day() ) {
|
||||||
<?php elseif ( is_month() ) : ?>
|
/* translators: %s: date */
|
||||||
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
|
printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() );
|
||||||
<?php elseif ( is_year() ) : ?>
|
} elseif ( is_month() ) {
|
||||||
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
|
/* translators: %s: date */
|
||||||
<?php else : ?>
|
printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) );
|
||||||
<?php _e( 'Blog Archives', 'twentyten' ); ?>
|
} elseif ( is_year() ) {
|
||||||
<?php endif; ?>
|
/* 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>
|
</h1>
|
||||||
|
|
||||||
<?php
|
<?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
|
<?php
|
||||||
// If a user has filled out their description, show a bio on their entries.
|
// 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><!-- #author-avatar -->
|
||||||
<div id="author-description">
|
<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' ); ?>
|
<?php the_author_meta( 'description' ); ?>
|
||||||
</div><!-- #author-description -->
|
</div><!-- #author-description -->
|
||||||
</div><!-- #entry-author-info -->
|
</div><!-- #entry-author-info -->
|
||||||
|
@ -14,6 +14,7 @@ get_header(); ?>
|
|||||||
|
|
||||||
<h1 class="page-title">
|
<h1 class="page-title">
|
||||||
<?php
|
<?php
|
||||||
|
/* translators: %s: category title */
|
||||||
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||||
?>
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -41,8 +41,8 @@
|
|||||||
'<em>' . get_the_title() . '</em>'
|
'<em>' . get_the_title() . '</em>'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
/* translators: %1$s: The number of comments. %2$s: The post title. */
|
|
||||||
printf(
|
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' ),
|
_n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
|
||||||
number_format_i18n( get_comments_number() ),
|
number_format_i18n( get_comments_number() ),
|
||||||
'<em>' . get_the_title() . '</em>'
|
'<em>' . get_the_title() . '</em>'
|
||||||
|
@ -44,7 +44,10 @@
|
|||||||
do_action( 'twentyten_credits' );
|
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' ); ?>">
|
<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>
|
</a>
|
||||||
</div><!-- #site-generator -->
|
</div><!-- #site-generator -->
|
||||||
|
|
||||||
|
@ -423,7 +423,10 @@ if ( ! function_exists( 'twentyten_comment' ) ) :
|
|||||||
<div id="comment-<?php comment_ID(); ?>">
|
<div id="comment-<?php comment_ID(); ?>">
|
||||||
<div class="comment-author vcard">
|
<div class="comment-author vcard">
|
||||||
<?php echo get_avatar( $comment, 40 ); ?>
|
<?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 -->
|
</div><!-- .comment-author .vcard -->
|
||||||
<?php if ( $comment->comment_approved == '0' ) : ?>
|
<?php if ( $comment->comment_approved == '0' ) : ?>
|
||||||
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
|
<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() {
|
function twentyten_posted_on() {
|
||||||
printf(
|
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' ),
|
__( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
|
||||||
'meta-prep meta-prep-author',
|
'meta-prep meta-prep-author',
|
||||||
sprintf(
|
sprintf(
|
||||||
@ -599,6 +603,7 @@ if ( ! function_exists( 'twentyten_posted_on' ) ) :
|
|||||||
sprintf(
|
sprintf(
|
||||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
|
'<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' ) ),
|
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() ) ),
|
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||||
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.
|
// Retrieves tag list of current post, separated by commas.
|
||||||
$tag_list = get_the_tag_list( '', ', ' );
|
$tag_list = get_the_tag_list( '', ', ' );
|
||||||
if ( $tag_list && ! is_wp_error( $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' );
|
$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' ) ) {
|
} 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' );
|
$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 {
|
} 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' );
|
$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||||
}
|
}
|
||||||
// Prints the string, replacing the placeholders.
|
// Prints the string, replacing the placeholders.
|
||||||
|
@ -32,6 +32,7 @@ if ( $site_description && ( is_home() || is_front_page() ) ) {
|
|||||||
|
|
||||||
// Add a page number if necessary:
|
// Add a page number if necessary:
|
||||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||||
|
/* translators: %s: page number */
|
||||||
echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) );
|
echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,10 +21,14 @@ if ( have_posts() ) {
|
|||||||
the_post();
|
the_post();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( ! empty( $post->post_parent ) ) : ?>
|
<?php
|
||||||
<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">
|
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
|
<?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 ) );
|
printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
|
||||||
?>
|
?>
|
||||||
</a></p>
|
</a></p>
|
||||||
@ -36,11 +40,13 @@ if ( have_posts() ) {
|
|||||||
<div class="entry-meta">
|
<div class="entry-meta">
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
|
/* translators: %s: author display name */
|
||||||
__( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
|
__( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
|
||||||
'meta-prep meta-prep-author',
|
'meta-prep meta-prep-author',
|
||||||
sprintf(
|
sprintf(
|
||||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
'<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' ) ),
|
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() ) ),
|
esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
|
||||||
get_the_author()
|
get_the_author()
|
||||||
)
|
)
|
||||||
@ -49,6 +55,7 @@ if ( have_posts() ) {
|
|||||||
<span class="meta-sep">|</span>
|
<span class="meta-sep">|</span>
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
|
/* translators: 1: CSS classes: 2: date */
|
||||||
__( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
|
__( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
|
||||||
'meta-prep meta-prep-entry-date',
|
'meta-prep meta-prep-entry-date',
|
||||||
sprintf(
|
sprintf(
|
||||||
@ -61,6 +68,7 @@ if ( have_posts() ) {
|
|||||||
echo ' <span class="meta-sep">|</span> ';
|
echo ' <span class="meta-sep">|</span> ';
|
||||||
$metadata = wp_get_attachment_metadata();
|
$metadata = wp_get_attachment_metadata();
|
||||||
printf(
|
printf(
|
||||||
|
/* translators: %s: image dimensions */
|
||||||
__( 'Full size is %s pixels', 'twentyten' ),
|
__( 'Full size is %s pixels', 'twentyten' ),
|
||||||
sprintf(
|
sprintf(
|
||||||
'<a href="%1$s" title="%2$s">%3$s × %4$s</a>',
|
'<a href="%1$s" title="%2$s">%3$s × %4$s</a>',
|
||||||
|
@ -54,11 +54,19 @@ if ( have_posts() ) {
|
|||||||
?>
|
?>
|
||||||
</div><!-- #author-avatar -->
|
</div><!-- #author-avatar -->
|
||||||
<div id="author-description">
|
<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' ); ?>
|
<?php the_author_meta( 'description' ); ?>
|
||||||
<div id="author-link">
|
<div id="author-link">
|
||||||
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
<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>
|
</a>
|
||||||
</div><!-- #author-link -->
|
</div><!-- #author-link -->
|
||||||
</div><!-- #author-description -->
|
</div><!-- #author-description -->
|
||||||
|
@ -86,7 +86,9 @@ while ( have_posts() ) :
|
|||||||
<p><em>
|
<p><em>
|
||||||
<?php
|
<?php
|
||||||
printf(
|
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' ),
|
_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"',
|
'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 )
|
number_format_i18n( $total_images )
|
||||||
);
|
);
|
||||||
@ -167,7 +169,10 @@ while ( have_posts() ) :
|
|||||||
<div class="entry-utility">
|
<div class="entry-utility">
|
||||||
<?php if ( count( get_the_category() ) ) : ?>
|
<?php if ( count( get_the_category() ) ) : ?>
|
||||||
<span class="cat-links">
|
<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>
|
||||||
<span class="meta-sep">|</span>
|
<span class="meta-sep">|</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -176,7 +181,10 @@ while ( have_posts() ) :
|
|||||||
if ( $tags_list ) :
|
if ( $tags_list ) :
|
||||||
?>
|
?>
|
||||||
<span class="tag-links">
|
<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>
|
||||||
<span class="meta-sep">|</span>
|
<span class="meta-sep">|</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -13,7 +13,12 @@ get_header(); ?>
|
|||||||
<div id="content" role="main">
|
<div id="content" role="main">
|
||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?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
|
<?php
|
||||||
/*
|
/*
|
||||||
* Run the loop for the search to output the results.
|
* Run the loop for the search to output the results.
|
||||||
|
@ -14,6 +14,7 @@ get_header(); ?>
|
|||||||
|
|
||||||
<h1 class="page-title">
|
<h1 class="page-title">
|
||||||
<?php
|
<?php
|
||||||
|
/* translators: %s: tag title */
|
||||||
printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||||
?>
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -26,16 +26,19 @@ get_header(); ?>
|
|||||||
<header class="archive-header">
|
<header class="archive-header">
|
||||||
<h1 class="archive-title">
|
<h1 class="archive-title">
|
||||||
<?php
|
<?php
|
||||||
if ( is_day() ) :
|
if ( is_day() ) {
|
||||||
|
/* translators: %s: date */
|
||||||
printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
|
printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
|
||||||
elseif ( is_month() ) :
|
} elseif ( is_month() ) {
|
||||||
printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
|
/* translators: %s: date */
|
||||||
elseif ( is_year() ) :
|
printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
|
||||||
printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
|
} elseif ( is_year() ) {
|
||||||
else :
|
/* translators: %s: date */
|
||||||
_e( 'Archives', 'twentythirteen' );
|
printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
|
||||||
endif;
|
} else {
|
||||||
?>
|
_e( 'Archives', 'twentythirteen' );
|
||||||
|
}
|
||||||
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
</header><!-- .archive-header -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
|
@ -23,11 +23,19 @@
|
|||||||
?>
|
?>
|
||||||
</div><!-- .author-avatar -->
|
</div><!-- .author-avatar -->
|
||||||
<div class="author-description">
|
<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">
|
<p class="author-bio">
|
||||||
<?php the_author_meta( 'description' ); ?>
|
<?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">
|
<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>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div><!-- .author-description -->
|
</div><!-- .author-description -->
|
||||||
|
@ -28,7 +28,12 @@ get_header(); ?>
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<header class="archive-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 -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -16,7 +16,12 @@ get_header(); ?>
|
|||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<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 ?>
|
<?php if ( category_description() ) : // Show an optional category description ?>
|
||||||
<div class="archive-meta"><?php echo category_description(); ?></div>
|
<div class="archive-meta"><?php echo category_description(); ?></div>
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<div class="audio-content">
|
<div class="audio-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
/* translators: %s: Name of current post */
|
/* translators: %s: Name of current post */
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: post title */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -15,7 +15,12 @@
|
|||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
<?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() ) : ?>
|
<?php elseif ( is_search() ) : ?>
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
the_title( '<span class="screen-reader-text">', '</span>', false )
|
||||||
)
|
)
|
||||||
|
@ -39,9 +39,9 @@
|
|||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Name of current post */
|
|
||||||
the_content(
|
the_content(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
/* translators: %s: Name of current post */
|
||||||
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentythirteen' ),
|
||||||
the_title( '<span class="screen-reader-text">', '</span>', false )
|
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">
|
<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>
|
</a>
|
||||||
</div><!-- .site-info -->
|
</div><!-- .site-info -->
|
||||||
</footer><!-- #colophon -->
|
</footer><!-- #colophon -->
|
||||||
|
@ -361,6 +361,7 @@ function twentythirteen_wp_title( $title, $sep ) {
|
|||||||
|
|
||||||
// Add a page number if necessary.
|
// Add a page number if necessary.
|
||||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||||
|
/* translators: %s: page number */
|
||||||
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) );
|
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -496,6 +497,7 @@ if ( ! function_exists( 'twentythirteen_entry_meta' ) ) :
|
|||||||
printf(
|
printf(
|
||||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
'<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' ) ) ),
|
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() ) ),
|
esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
|
||||||
get_the_author()
|
get_the_author()
|
||||||
);
|
);
|
||||||
@ -516,6 +518,7 @@ if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
|
|||||||
*/
|
*/
|
||||||
function twentythirteen_entry_date( $echo = true ) {
|
function twentythirteen_entry_date( $echo = true ) {
|
||||||
if ( has_post_format( array( 'chat', 'status' ) ) ) {
|
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' );
|
$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' );
|
||||||
} else {
|
} else {
|
||||||
$format_prefix = '%2$s';
|
$format_prefix = '%2$s';
|
||||||
@ -524,6 +527,7 @@ if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
|
|||||||
$date = sprintf(
|
$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>',
|
'<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() ),
|
esc_url( get_permalink() ),
|
||||||
|
/* translators: %s: post title */
|
||||||
esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ),
|
esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ),
|
||||||
esc_attr( get_the_date( 'c' ) ),
|
esc_attr( get_the_date( 'c' ) ),
|
||||||
esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )
|
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">
|
<div class="entry-meta">
|
||||||
<?php
|
<?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' );
|
/* translators: 1: date, 2: date, 3, parent permalink, 4, post title, 5: post title */
|
||||||
$post_title = get_the_title( $post->post_parent );
|
$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 ) {
|
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>';
|
$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
|
* @since Twenty Thirteen 1.0
|
||||||
*/
|
*/
|
||||||
function twentythirteen_upgrade_notice() {
|
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'] );
|
$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 );
|
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||||
}
|
}
|
||||||
@ -45,6 +46,7 @@ function twentythirteen_upgrade_notice() {
|
|||||||
*/
|
*/
|
||||||
function twentythirteen_customize() {
|
function twentythirteen_customize() {
|
||||||
wp_die(
|
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'] ),
|
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(
|
array(
|
||||||
@ -61,6 +63,7 @@ add_action( 'load-customize.php', 'twentythirteen_customize' );
|
|||||||
*/
|
*/
|
||||||
function twentythirteen_preview() {
|
function twentythirteen_preview() {
|
||||||
if ( isset( $_GET['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'] ) );
|
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() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="page-header">
|
<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>
|
</header>
|
||||||
|
|
||||||
<?php /* The loop */ ?>
|
<?php /* The loop */ ?>
|
||||||
|
@ -18,7 +18,12 @@ get_header(); ?>
|
|||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<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 ?>
|
<?php if ( tag_description() ) : // Show an optional tag description ?>
|
||||||
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
||||||
|
@ -20,7 +20,12 @@ get_header(); ?>
|
|||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<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 -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php /* The loop */ ?>
|
<?php /* The loop */ ?>
|
||||||
|
@ -26,16 +26,19 @@ get_header(); ?>
|
|||||||
<header class="archive-header">
|
<header class="archive-header">
|
||||||
<h1 class="archive-title">
|
<h1 class="archive-title">
|
||||||
<?php
|
<?php
|
||||||
if ( is_day() ) :
|
if ( is_day() ) {
|
||||||
|
/* translators: %s: date */
|
||||||
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
|
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
|
||||||
elseif ( is_month() ) :
|
} elseif ( is_month() ) {
|
||||||
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
/* translators: %s: date */
|
||||||
elseif ( is_year() ) :
|
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||||
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
} elseif ( is_year() ) {
|
||||||
else :
|
/* translators: %s: date */
|
||||||
_e( 'Archives', 'twentytwelve' );
|
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
|
||||||
endif;
|
} else {
|
||||||
?>
|
_e( 'Archives', 'twentytwelve' );
|
||||||
|
}
|
||||||
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
</header><!-- .archive-header -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
|
@ -29,7 +29,12 @@ get_header(); ?>
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<header class="archive-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 -->
|
</header><!-- .archive-header -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -61,7 +66,12 @@ get_header(); ?>
|
|||||||
?>
|
?>
|
||||||
</div><!-- .author-avatar -->
|
</div><!-- .author-avatar -->
|
||||||
<div class="author-description">
|
<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>
|
<p><?php the_author_meta( 'description' ); ?></p>
|
||||||
</div><!-- .author-description -->
|
</div><!-- .author-description -->
|
||||||
</div><!-- .author-info -->
|
</div><!-- .author-info -->
|
||||||
|
@ -18,7 +18,12 @@ get_header(); ?>
|
|||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<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 ?>
|
<?php if ( category_description() ) : // Show an optional category description ?>
|
||||||
<div class="archive-meta"><?php echo category_description(); ?></div>
|
<div class="archive-meta"><?php echo category_description(); ?></div>
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
* @subpackage Twenty_Twelve
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @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(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
@ -17,7 +20,7 @@
|
|||||||
</div><!-- .aside -->
|
</div><!-- .aside -->
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<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() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
<div class="comments-link">
|
<div class="comments-link">
|
||||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
<?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
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @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(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
@ -15,7 +18,7 @@
|
|||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<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() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
<div class="comments-link">
|
<div class="comments-link">
|
||||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
<?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
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @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(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
@ -14,7 +17,7 @@
|
|||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<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() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
<div class="comments-link">
|
<div class="comments-link">
|
||||||
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
|
<?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
|
* @subpackage Twenty_Twelve
|
||||||
* @since Twenty Twelve 1.0
|
* @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(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<div class="entry-header">
|
<div class="entry-header">
|
||||||
<header>
|
<header>
|
||||||
<h1><?php the_author(); ?></h1>
|
<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>
|
</header>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
@ -68,11 +68,19 @@
|
|||||||
?>
|
?>
|
||||||
</div><!-- .author-avatar -->
|
</div><!-- .author-avatar -->
|
||||||
<div class="author-description">
|
<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>
|
<p><?php the_author_meta( 'description' ); ?></p>
|
||||||
<div class="author-link">
|
<div class="author-link">
|
||||||
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
<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>
|
</a>
|
||||||
</div><!-- .author-link -->
|
</div><!-- .author-link -->
|
||||||
</div><!-- .author-description -->
|
</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' ); ?>">
|
<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>
|
</a>
|
||||||
</div><!-- .site-info -->
|
</div><!-- .site-info -->
|
||||||
</footer><!-- #colophon -->
|
</footer><!-- #colophon -->
|
||||||
|
@ -308,6 +308,7 @@ function twentytwelve_wp_title( $title, $sep ) {
|
|||||||
|
|
||||||
// Add a page number if necessary.
|
// Add a page number if necessary.
|
||||||
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
|
||||||
|
/* translators: %s: page number */
|
||||||
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
|
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -502,16 +503,19 @@ if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
|
|||||||
$author = sprintf(
|
$author = sprintf(
|
||||||
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
|
'<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' ) ) ),
|
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() ) ),
|
esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
|
||||||
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 ) {
|
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' );
|
$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 ) {
|
} 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' );
|
$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
|
||||||
} else {
|
} 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' );
|
$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
|
<?php
|
||||||
$metadata = wp_get_attachment_metadata();
|
$metadata = wp_get_attachment_metadata();
|
||||||
printf(
|
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' ),
|
__( '<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_attr( get_the_date( 'c' ) ),
|
||||||
esc_html( get_the_date() ),
|
esc_html( get_the_date() ),
|
||||||
|
@ -43,7 +43,12 @@ get_header(); ?>
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="entry-content">
|
<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 -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -15,7 +15,12 @@ get_header(); ?>
|
|||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
<header class="page-header">
|
<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>
|
</header>
|
||||||
|
|
||||||
<?php twentytwelve_content_nav( 'nav-above' ); ?>
|
<?php twentytwelve_content_nav( 'nav-above' ); ?>
|
||||||
|
@ -18,7 +18,12 @@ get_header(); ?>
|
|||||||
|
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<header class="archive-header">
|
<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 ?>
|
<?php if ( tag_description() ) : // Show an optional tag description ?>
|
||||||
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
<div class="archive-meta"><?php echo tag_description(); ?></div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45608';
|
$wp_version = '5.3-alpha-45609';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user