Changeset 21683 for trunk/wp-includes/media.php
- Timestamp:
- 08/31/2012 04:54:23 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r21680 r21683 1596 1596 return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta ); 1597 1597 } 1598 1599 /** 1600 * Prints the templates used in the media manager. 1601 * 1602 * @since 3.5.0 1603 */ 1604 function wp_print_media_templates( $attachment ) { 1605 ?> 1606 <script type="text/html" id="tmpl-media-modal"> 1607 <div class="media-modal"> 1608 <div class="media-modal-header"> 1609 <h3><%- title %></h3> 1610 <a class="media-modal-close" href="" title="<?php esc_attr_e('Close'); ?>"><?php echo 'Close'; ?></a> 1611 </div> 1612 <div class="media-modal-content"></div> 1613 </div> 1614 <div class="media-modal-backdrop"></div> 1615 </script> 1616 1617 <script type="text/html" id="tmpl-media-workspace"> 1618 <div class="upload-attachments"> 1619 <% if ( selectOne ) { %> 1620 <h3><?php _e( 'Drop a file here' ); ?></h3> 1621 <span><?php _ex( 'or', 'Uploader: Drop a file here - or - Select a File' ); ?></span> 1622 <a href="#" class="button-secondary"><?php _e( 'Select a File' ); ?></a> 1623 <% } else { %> 1624 <h3><?php _e( 'Drop files here' ); ?></h3> 1625 <span><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></span> 1626 <a href="#" class="button-secondary"><?php _e( 'Select Files' ); ?></a> 1627 <% } %> 1628 1629 <div class="media-progress-bar"><div></div></div> 1630 </div> 1631 </script> 1632 1633 <script type="text/html" id="tmpl-attachments"> 1634 <div class="attachments-header"> 1635 <h3><%- directions %></h3> 1636 <input class="search" type="text" placeholder="<?php esc_attr_e('Search'); ?>" /> 1637 </div> 1638 </script> 1639 1640 <script type="text/html" id="tmpl-attachment"> 1641 <div class="attachment-thumbnail <%- orientation %>"> 1642 <% if ( thumbnail ) { %> 1643 <img src="<%- thumbnail %>" /> 1644 <% } %> 1645 1646 <% if ( uploading ) { %> 1647 <div class="media-progress-bar"><div></div></div> 1648 <% } %> 1649 <div class="actions"></div> 1650 </div> 1651 <div class="describe"></div> 1652 </script> 1653 <?php 1654 }
Note: See TracChangeset
for help on using the changeset viewer.