Changeset 28682 for trunk/src/wp-includes/media-template.php
- Timestamp:
- 06/05/2014 10:00:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media-template.php
r28607 r28682 309 309 <div class="uploaded">{{ data.dateFormatted }}</div> 310 310 311 <div class="file-size">{{ data.filesizeHumanReadable }}</div> 311 312 <# if ( 'image' === data.type && ! data.uploading ) { #> 312 313 <# if ( data.width && data.height ) { #> … … 340 341 </div> 341 342 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> 342 347 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 343 344 <span><?php _e('Title'); ?></span>345 346 347 348 <span><?php _e('Caption'); ?></span>349 350 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> 351 356 <# if ( 'image' === data.type ) { #> 352 357 <label class="setting" data-setting="alt"> 353 <span ><?php _e('Alt Text'); ?></span>358 <span class="name"><?php _e('Alt Text'); ?></span> 354 359 <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} /> 355 360 </label> 356 361 <# } #> 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> 360 369 </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 <# } #> 361 376 </script> 362 377
Note: See TracChangeset
for help on using the changeset viewer.