WordPress.org

Make WordPress Core

Changeset 22557


Ignore:
Timestamp:
11/13/2012 01:50:08 AM (8 years ago)
Author:
koopersmith
Message:

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.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/css/media-views.css

    r22552 r22557  
    757757}
    758758
     759.uploader-inline-content .upload-ui {
     760    margin: 4em 0;
     761}
     762
    759763.uploader-inline h3 {
    760764    font-size: 20px;
  • trunk/wp-includes/media.php

    r22556 r22557  
    13991399    <script type="text/html" id="tmpl-uploader-inline">
    14001400        <div class="uploader-inline-content">
    1401             <h3><?php _e( 'Drop files anywhere to upload' ); ?></h3>
    1402             <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
    1403             <div class="media-progress-bar"><div></div></div>
     1401            <div class="pre-upload-ui">
     1402                <?php do_action( 'pre-upload-ui' ); ?>
     1403                <?php do_action( 'pre-plupload-upload-ui' ); ?>
     1404            </div>
     1405
     1406            <div class="upload-ui">
     1407                <h3><?php _e( 'Drop files anywhere to upload' ); ?></h3>
     1408                <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
     1409            </div>
     1410
     1411            <div class="post-upload-ui">
     1412                <?php do_action( 'post-plupload-upload-ui' ); ?>
     1413                <?php do_action( 'post-upload-ui' ); ?>
     1414            </div>
    14041415        </div>
    14051416    </script>
Note: See TracChangeset for help on using the changeset viewer.