Changeset 1282

Show
Ignore:
Timestamp:
05/12/08 10:28:23 (4 months ago)
Author:
donncha
Message:

Add actions to flash uploader

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/media.php

    r1266 r1282  
    777777<?php } ?> 
    778778</div> 
     779 
     780<?php do_action('pre-upload-ui'); ?> 
     781 
    779782<?php if ( $flash ) : ?> 
    780783<script type="text/javascript"> 
     
    813816</script> 
    814817 
    815  
    816818<div id="flash-upload-ui"> 
     819<?php do_action('pre-flash-upload-ui'); ?> 
    817820        <p><input id="flash-browse-button" type="button" value="<?php echo attribute_escape( __( 'Choose files to upload' ) ); ?>" class="button" /></p> 
     821<?php do_action('post-flash-upload-ui'); ?> 
    818822        <p><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p> 
    819823</div> 
     
    822826 
    823827<div id="html-upload-ui"> 
     828<?php do_action('pre-html-upload-ui'); ?> 
    824829        <p> 
    825830        <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onClick="return top.tb_remove();"><?php _e('Cancel'); ?></a> 
     
    830835        <p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p> 
    831836        <?php endif;?> 
     837<?php do_action('post-html-upload-ui'); ?> 
    832838</div> 
     839<?php do_action('post-upload-ui'); ?> 
    833840<?php 
    834841}