wp/wp-includes/customize/class-wp-customize-header-image-control.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
   201 				<?php
   201 				<?php
   202 				if ( current_theme_supports( 'custom-header', 'video' ) ) {
   202 				if ( current_theme_supports( 'custom-header', 'video' ) ) {
   203 					_e( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image that matches the size of your video &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' );
   203 					_e( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image that matches the size of your video &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' );
   204 				} elseif ( $width && $height ) {
   204 				} elseif ( $width && $height ) {
   205 					printf(
   205 					printf(
   206 						/* translators: %s: header size in pixels */
   206 						/* translators: %s: Header size in pixels. */
   207 						__( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
   207 						__( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
   208 						sprintf( '<strong>%s &times; %s</strong>', $width, $height )
   208 						sprintf( '<strong>%s &times; %s</strong>', $width, $height )
   209 					);
   209 					);
   210 				} elseif ( $width ) {
   210 				} elseif ( $width ) {
   211 					printf(
   211 					printf(
   212 						/* translators: %s: header width in pixels */
   212 						/* translators: %s: Header width in pixels. */
   213 						__( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
   213 						__( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
   214 						sprintf( '<strong>%s</strong>', $width )
   214 						sprintf( '<strong>%s</strong>', $width )
   215 					);
   215 					);
   216 				} else {
   216 				} else {
   217 					printf(
   217 					printf(
   218 						/* translators: %s: header height in pixels */
   218 						/* translators: %s: Header height in pixels. */
   219 						__( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
   219 						__( 'Click &#8220;Add new image&#8221; to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
   220 						sprintf( '<strong>%s</strong>', $height )
   220 						sprintf( '<strong>%s</strong>', $height )
   221 					);
   221 					);
   222 				}
   222 				}
   223 				?>
   223 				?>