Make WordPress Core


Ignore:
Timestamp:
12/04/2012 01:26:03 AM (13 years ago)
Author:
ryan
Message:

Final round of media UX improvements.

Props koopersmith
fixes #21390 #22502

File:
1 edited

Legend:

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

    r22994 r23006  
    14681468        // Library
    14691469        'mediaLibraryTitle'  => __( 'Media Library' ),
     1470        'insertMediaTitle'   => __( 'Insert Media' ),
    14701471        'createNewGallery'   => __( 'Create a new gallery' ),
    14711472        'returnToLibrary'    => __( '← Return to library' ),
    14721473        'allMediaItems'      => __( 'All media items' ),
     1474        'noItemsFound'       => __( 'No items found.' ),
    14731475        'insertIntoPost'     => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
    14741476        'uploadedToThisPost' => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ),
     
    14901492        'continueEditing'    => __( 'Continue editing' ),
    14911493        'addToGallery'       => __( 'Add to gallery' ),
     1494        'addToGalleryTitle'  => __( 'Add to Gallery' ),
    14921495        'reverseOrder'       => __( 'Reverse order' ),
    14931496    );
     
    15181521    <script type="text/html" id="tmpl-media-frame">
    15191522        <div class="media-frame-menu"></div>
     1523        <div class="media-frame-title"></div>
     1524        <div class="media-frame-router"></div>
    15201525        <div class="media-frame-content"></div>
    15211526        <div class="media-frame-toolbar"></div>
     
    15251530    <script type="text/html" id="tmpl-media-modal">
    15261531        <div class="media-modal wp-core-ui">
    1527             <h3 class="media-modal-title">{{ data.title }}</h3>
    1528             <a class="media-modal-close media-modal-icon" href="#" title="<?php esc_attr_e('Close'); ?>"></a>
     1532            <a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>
    15291533            <div class="media-modal-content"></div>
    15301534        </div>
    1531         <div class="media-modal-backdrop">
    1532             <div></div>
    1533         </div>
     1535        <div class="media-modal-backdrop"></div>
    15341536    </script>
    15351537
     
    15411543
    15421544    <script type="text/html" id="tmpl-uploader-inline">
    1543         <div class="uploader-inline-content">
     1545        <# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #>
     1546        <div class="uploader-inline-content {{ messageClass }}">
     1547        <# if ( data.message ) { #>
     1548            <h3 class="upload-message">{{ data.message }}</h3>
     1549        <# } #>
    15441550        <?php if ( ! _device_can_upload() ) : ?>
    1545             <h3><?php _e('The web browser on your device cannot be used to upload files. You may be able to use the <a href="http://wordpress.org/extend/mobile/">native app for your device</a> instead.'); ?></h3>
     1551            <h3 class="upload-instructions"><?php _e('The web browser on your device cannot be used to upload files. You may be able to use the <a href="http://wordpress.org/extend/mobile/">native app for your device</a> instead.'); ?></h3>
    15461552        <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
    1547             <h3><?php _e( 'Upload Limit Exceeded' ); ?></h3>
     1553            <h3 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h3>
    15481554            <?php do_action( 'upload_ui_over_quota' ); ?>
    15491555
    15501556        <?php else : ?>
    15511557            <div class="upload-ui">
    1552                 <h3 class="drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3>
     1558                <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3>
    15531559                <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
    15541560            </div>
     
    17451751    </script>
    17461752
    1747     <script type="text/html" id="tmpl-media-selection-preview">
    1748         <div class="selected-img selected-count-{{ data.count }}">
    1749             <# if ( data.thumbnail ) { #>
    1750                 <img src="{{ data.thumbnail }}" draggable="false" />
    1751             <# } #>
    1752 
    1753             <span class="count">{{ data.count }}</span>
    1754         </div>
    1755         <# if ( data.clearable ) { #>
    1756             <a class="clear-selection" href="#"><?php _e('Clear selection'); ?></a>
    1757         <# } #>
    1758     </script>
    1759 
    17601753    <script type="text/html" id="tmpl-attachment-display-settings">
    17611754        <h3><?php _e('Attachment Display Settings'); ?></h3>
Note: See TracChangeset for help on using the changeset viewer.