Changeset 23097
- Timestamp:
- 12/06/2012 06:35:13 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23096 r23097 1745 1745 </div> 1746 1746 1747 <# 1748 var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; 1749 if ( 'image' === data.type ) { #> 1747 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 1750 1748 <label class="setting" data-setting="title"> 1751 1749 <span><?php _e('Title'); ?></span> … … 1754 1752 <label class="setting" data-setting="caption"> 1755 1753 <span><?php _e('Caption'); ?></span> 1756 <textarea {{ maybeReadOnly }} 1757 placeholder="<?php esc_attr_e('Describe this image…'); ?>" 1758 >{{ data.caption }}</textarea> 1754 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> 1759 1755 </label> 1756 <# if ( 'image' === data.type ) { #> 1760 1757 <label class="setting" data-setting="alt"> 1761 1758 <span><?php _e('Alt Text'); ?></span> 1762 1759 <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} /> 1763 </label>1764 <# } else { #>1765 <label class="setting" data-setting="title">1766 <span><?php _e('Title'); ?></span>1767 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }}1768 <# if ( ! maybeReadOnly ) { #>1769 <# if ( 'video' === data.type ) { #>1770 placeholder="<?php esc_attr_e('Describe this video…'); ?>"1771 <# } else if ( 'audio' === data.type ) { #>1772 placeholder="<?php esc_attr_e('Describe this audio file…'); ?>"1773 <# } else { #>1774 placeholder="<?php esc_attr_e('Describe this media file…'); ?>"1775 <# } #>1776 <# } #>1777 />1778 </label>1779 <label class="setting" data-setting="caption">1780 <span><?php _e('Caption'); ?></span>1781 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>1782 1760 </label> 1783 1761 <# } #>
Note: See TracChangeset
for help on using the changeset viewer.