Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: upload_ui_over_quota

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
45           <# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #>
46           <div class="uploader-inline-content {{ messageClass }}">
47           <# if ( data.message ) { #>
48                <h3 class="upload-message">{{ data.message }}</h3>
49           <# } #>
50           <?php if ( ! _device_can_upload() ) : ?>
51                <h3 class="upload-instructions"><?php printf( __('The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.'), 'http://wordpress.org/mobile/' ); ?></h3>
52           <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
53                <h3 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h3>
54                <?php do_action( 'upload_ui_over_quota' ); ?>
55
56           <?php else : ?>
57                <div class="upload-ui">
58                     <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3>
59                     <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
60                </div>
61
62                <div class="upload-inline-status"></div>
63