mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Media: Add support for applicable *-upload-ui hooks.
Supports pre-upload-ui, pre-plupload-upload-ui, post-plupload-upload-ui, post-upload-ui. see #22186, #21390. git-svn-id: http://core.svn.wordpress.org/trunk@22557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65e35e3d76
commit
0188fc3e52
@ -756,6 +756,10 @@
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.uploader-inline-content .upload-ui {
|
||||
margin: 4em 0;
|
||||
}
|
||||
|
||||
.uploader-inline h3 {
|
||||
font-size: 20px;
|
||||
font-weight: 200;
|
||||
|
@ -1398,9 +1398,20 @@ function wp_print_media_templates( $attachment ) {
|
||||
|
||||
<script type="text/html" id="tmpl-uploader-inline">
|
||||
<div class="uploader-inline-content">
|
||||
<h3><?php _e( 'Drop files anywhere to upload' ); ?></h3>
|
||||
<a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
|
||||
<div class="media-progress-bar"><div></div></div>
|
||||
<div class="pre-upload-ui">
|
||||
<?php do_action( 'pre-upload-ui' ); ?>
|
||||
<?php do_action( 'pre-plupload-upload-ui' ); ?>
|
||||
</div>
|
||||
|
||||
<div class="upload-ui">
|
||||
<h3><?php _e( 'Drop files anywhere to upload' ); ?></h3>
|
||||
<a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
|
||||
</div>
|
||||
|
||||
<div class="post-upload-ui">
|
||||
<?php do_action( 'post-plupload-upload-ui' ); ?>
|
||||
<?php do_action( 'post-upload-ui' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user