Customizer: make "Current header" clickable in the same way that "Background Image" is - will open the media modal.
Props umesh.nevase. Fixes #33586. git-svn-id: https://develop.svn.wordpress.org/trunk@34702 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3d06ffcbbc
commit
e04d0dd623
|
@ -1299,16 +1299,18 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
<div class="current">
|
<div class="current">
|
||||||
<span class="customize-control-title">
|
<label for="header_image-button">
|
||||||
<?php _e( 'Current header' ); ?>
|
<span class="customize-control-title">
|
||||||
</span>
|
<?php _e( 'Current header' ); ?>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<?php if ( current_user_can( 'upload_files' ) ): ?>
|
<?php if ( current_user_can( 'upload_files' ) ): ?>
|
||||||
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
|
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
|
||||||
<button type="button" class="button new" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
|
<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>
|
||||||
<div style="clear:both"></div>
|
<div style="clear:both"></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue