210 ?> |
210 ?> |
211 <div class="customize-control-notifications-container"></div> |
211 <div class="customize-control-notifications-container"></div> |
212 <p class="customizer-section-intro customize-control-description"> |
212 <p class="customizer-section-intro customize-control-description"> |
213 <?php |
213 <?php |
214 if ( current_theme_supports( 'custom-header', 'video' ) ) { |
214 if ( current_theme_supports( 'custom-header', 'video' ) ) { |
215 _e( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' ); |
215 _e( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' ); |
216 } elseif ( $width && $height ) { |
216 } elseif ( $width && $height ) { |
217 printf( |
217 printf( |
218 /* translators: %s: Header size in pixels. */ |
218 /* translators: %s: Header size in pixels. */ |
219 __( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), |
219 __( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), |
220 sprintf( '<strong>%s × %s</strong>', $width, $height ) |
220 sprintf( '<strong>%s × %s</strong>', $width, $height ) |
221 ); |
221 ); |
222 } elseif ( $width ) { |
222 } elseif ( $width ) { |
223 printf( |
223 printf( |
224 /* translators: %s: Header width in pixels. */ |
224 /* translators: %s: Header width in pixels. */ |
225 __( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), |
225 __( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), |
226 sprintf( '<strong>%s</strong>', $width ) |
226 sprintf( '<strong>%s</strong>', $width ) |
227 ); |
227 ); |
228 } else { |
228 } else { |
229 printf( |
229 printf( |
230 /* translators: %s: Header height in pixels. */ |
230 /* translators: %s: Header height in pixels. */ |
231 __( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), |
231 __( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), |
232 sprintf( '<strong>%s</strong>', $height ) |
232 sprintf( '<strong>%s</strong>', $height ) |
233 ); |
233 ); |
234 } |
234 } |
235 ?> |
235 ?> |
236 </p> |
236 </p> |
244 </div> |
244 </div> |
245 </div> |
245 </div> |
246 <div class="actions"> |
246 <div class="actions"> |
247 <?php if ( current_user_can( 'upload_files' ) ) : ?> |
247 <?php if ( current_user_can( 'upload_files' ) ) : ?> |
248 <button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button> |
248 <button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button> |
249 <button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add New Header Image' ); ?>"><?php _e( 'Add New Image' ); ?></button> |
249 <button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add Header Image' ); ?>"><?php _e( 'Add Image' ); ?></button> |
250 <?php endif; ?> |
250 <?php endif; ?> |
251 </div> |
251 </div> |
252 <div class="choices"> |
252 <div class="choices"> |
253 <span class="customize-control-title header-previously-uploaded"> |
253 <span class="customize-control-title header-previously-uploaded"> |
254 <?php _ex( 'Previously uploaded', 'custom headers' ); ?> |
254 <?php _ex( 'Previously uploaded', 'custom headers' ); ?> |