X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..refs/tags/wordpress-4.7-scripts:/wp-includes/customize/class-wp-customize-header-image-control.php diff --git a/wp-includes/customize/class-wp-customize-header-image-control.php b/wp-includes/customize/class-wp-customize-header-image-control.php index 52d52c18..b87a7bb3 100644 --- a/wp-includes/customize/class-wp-customize-header-image-control.php +++ b/wp-includes/customize/class-wp-customize-header-image-control.php @@ -102,10 +102,6 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { <# } else { #> - <# if (data.type === 'uploaded') { #> - - <# } #> - + <# if ( data.type === 'uploaded' ) { #> + + <# } #> + <# } #> @@ -121,30 +121,23 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { <# if (data.random) { #>
-
- - <# if ( data.type === 'uploaded' ) { #> - - <# } else if ( data.type === 'default' ) { #> - - <# } #> - -
+ + <# if ( data.type === 'uploaded' ) { #> + + <# } else if ( data.type === 'default' ) { #> + + <# } #>
<# } else { #> - {{{data.header.alt_text || data.header.description}}} + {{{data.header.alt_text || data.header.description}}} <# } #> <# } else { #>
-
- - - -
+
<# } #> @@ -173,14 +166,29 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { $height = absint( get_theme_support( 'custom-header', 'height' ) ); ?>
-

+ ' . $this->label . ''; + } ?> +

+

Add new image, your theme recommends a header size of %s × %s pixels.' ), $width, $height ); + if ( current_theme_supports( 'custom-header', 'video' ) ) { + _e( 'While you can crop images to your liking after clicking Add new image, we recommend matching the size of your video.' ); + } elseif ( $width && $height ) { + /* translators: %s: header size in pixels */ + printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header size of %s pixels.' ), + sprintf( '%s × %s', $width, $height ) + ); } elseif ( $width ) { - printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header width of %s pixels.' ), $width ); + /* translators: %s: header width in pixels */ + printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header width of %s pixels.' ), + sprintf( '%s', $width ) + ); } else { - printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header height of %s pixels.' ), $height ); + /* translators: %s: header height in pixels */ + printf( __( 'While you can crop images to your liking after clicking Add new image, your theme recommends a header height of %s pixels.' ), + sprintf( '%s', $height ) + ); } ?>