summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'themes/twentyfourteen/inc/customizer.php')
-rw-r--r--themes/twentyfourteen/inc/customizer.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/themes/twentyfourteen/inc/customizer.php b/themes/twentyfourteen/inc/customizer.php
index 15314093..bcf2e2c6 100644
--- a/themes/twentyfourteen/inc/customizer.php
+++ b/themes/twentyfourteen/inc/customizer.php
@@ -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' )
@@ -97,6 +98,7 @@ add_action( 'customize_register', 'twentyfourteen_customize_register' );
* Render the site title for the selective refresh partial.
*
* @since Twenty Fourteen 1.7
+ *
* @see twentyfourteen_customize_register()
*
* @return void
@@ -109,6 +111,7 @@ function twentyfourteen_customize_partial_blogname() {
* Render the site tagline for the selective refresh partial.
*
* @since Twenty Fourteen 1.7
+ *
* @see twentyfourteen_customize_register()
*
* @return void
@@ -126,7 +129,7 @@ function twentyfourteen_customize_partial_blogdescription() {
* @return string Filtered layout type (grid|slider).
*/
function twentyfourteen_sanitize_layout( $layout ) {
- if ( ! in_array( $layout, array( 'grid', 'slider' ) ) ) {
+ if ( ! in_array( $layout, array( 'grid', 'slider' ), true ) ) {
$layout = 'grid';
}
@@ -139,7 +142,7 @@ function twentyfourteen_sanitize_layout( $layout ) {
* @since Twenty Fourteen 1.0
*/
function twentyfourteen_customize_preview_js() {
- wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20131205', true );
+ wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141015', true );
}
add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
@@ -159,8 +162,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 &rarr; 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&rsquo;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&mdash;above the title&mdash;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>',
)