Make WordPress Core


Ignore:
Timestamp:
09/18/2011 02:25:23 AM (13 years ago)
Author:
azaozz
Message:

Update plupload to 1.5b and add "drop area" for drag and drop uploading, see #18206

File:
1 edited

Legend:

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

    r18698 r18701  
    14861486    'browse_button' => 'plupload-browse-button',
    14871487    'container' => 'plupload-upload-ui',
    1488     'drop_element' => 'wpwrap',
     1488    'drop_element' => 'drag-drop-area',
    14891489    'file_data_name' => 'async-upload',
    14901490    'multiple_queues' => true,
     
    15091509</script>
    15101510
    1511 <div id="plupload-upload-ui" class="hide-if-no-js">
     1511<div id="plupload-upload-ui" class="hide-if-no-js drag-drop">
    15121512<?php do_action('pre-plupload-upload-ui'); // hook change, old name: 'pre-flash-upload-ui' ?>
    1513 
    1514     <p>
    1515     <?php _e( 'Choose files to upload' ); ?>
    1516     <input id="plupload-browse-button" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" />
    1517     <input id="cancel-upload" disabled="disabled" onclick="cancelUpload()" type="button" value="<?php esc_attr_e('Cancel Upload'); ?>" class="button" />
    1518     </p>
    1519     <p class="dragdrop-info"><?php _e('Or you can drop the files into this window.'); ?></p>
     1513<div id="drag-drop-area">
     1514    <div class="drag-drop-inside">
     1515    <p class="dragdrop-info"><?php _e('Drop files here or'); ?></p>
     1516    <p><input id="plupload-browse-button" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" />
     1517    <input id="cancel-upload" disabled="true" onclick="cancelUpload()" type="button" value="<?php esc_attr_e('Cancel Upload'); ?>" class="button" /></p>
     1518    </div>
     1519</div>
    15201520<?php do_action('post-plupload-upload-ui'); // hook change, old name: 'post-flash-upload-ui' ?>
    15211521</div>
     
    15331533</div>
    15341534
    1535 <p class="media-upload-size"><?php printf( __( 'Maximum upload file size: %d%s' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); ?></p>
    1536 <p class="howto"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p>
     1535<p><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); ?>
     1536<?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p>
    15371537
    15381538<?php
Note: See TracChangeset for help on using the changeset viewer.