Make WordPress Core


Ignore:
Timestamp:
06/05/2014 10:00:24 PM (10 years ago)
Author:
helen
Message:

Grid view for the media library, first pass. This is alpha; expect imperfection. We will be iterating further.

props ericlewis, shaunandrews, wonderboymusic.
see #24716.

File:
1 edited

Legend:

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

    r28607 r28682  
    309309                <div class="uploaded">{{ data.dateFormatted }}</div>
    310310
     311                <div class="file-size">{{ data.filesizeHumanReadable }}</div>
    311312                <# if ( 'image' === data.type && ! data.uploading ) { #>
    312313                    <# if ( data.width && data.height ) { #>
     
    340341        </div>
    341342
     343        <label class="setting" data-setting="url">
     344            <span class="name"><?php _e('URL'); ?></span>
     345            <input type="text" value="{{ data.url }}" readonly />
     346        </label>
    342347        <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
    343             <label class="setting" data-setting="title">
    344                 <span><?php _e('Title'); ?></span>
    345                 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />
    346             </label>
    347             <label class="setting" data-setting="caption">
    348                 <span><?php _e('Caption'); ?></span>
    349                 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
    350             </label>
     348        <label class="setting" data-setting="title">
     349            <span class="name"><?php _e('Title'); ?></span>
     350            <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />
     351        </label>
     352        <label class="setting" data-setting="caption">
     353            <span class="name"><?php _e('Caption'); ?></span>
     354            <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
     355        </label>
    351356        <# if ( 'image' === data.type ) { #>
    352357            <label class="setting" data-setting="alt">
    353                 <span><?php _e('Alt Text'); ?></span>
     358                <span class="name"><?php _e('Alt Text'); ?></span>
    354359                <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} />
    355360            </label>
    356361        <# } #>
    357             <label class="setting" data-setting="description">
    358                 <span><?php _e('Description'); ?></span>
    359                 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea>
     362        <label class="setting" data-setting="description">
     363            <span class="name"><?php _e('Description'); ?></span>
     364            <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea>
     365        </label>
     366        <label class="setting">
     367                <span class="name"><?php _e( 'Uploaded By' ); ?></span>
     368                <span class="value">{{ data.authorName }}</span>
    360369            </label>
     370        <# if ( data.uploadedTo ) { #>
     371            <label class="setting">
     372                <span class="name"><?php _e('Uploaded To'); ?></span>
     373                <span class="value"><a href="{{ data.uploadedToLink }}">{{ data.uploadedToTitle }}</a></span>
     374            </label>
     375        <# } #>
    361376    </script>
    362377
Note: See TracChangeset for help on using the changeset viewer.