WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/06/2012 07:46:15 AM (9 years ago)
Author:
koopersmith
Message:

Adds UI for media modal toolbars, buttons, and the selected item(s) status.

Currently uses actions for inserting media into a post as an example (hence the raw text). To test a workflow that supports multiple selection, run the following in your browser's JavaScript console:

wp.media({ multiple: true });

see #21390, #21808.

File:
1 edited

Legend:

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

    r21735 r21769  
    16501650        <div class="describe"></div>
    16511651    </script>
     1652
     1653    <script type="text/html" id="tmpl-media-selection-preview">
     1654        <div class="selected-img selected-count-<%- count %>">
     1655            <% if ( thumbnail ) { %>
     1656                <img src="<%- thumbnail %>" />
     1657            <% } %>
     1658
     1659            <span class="count"><%- count %></span>
     1660        </div>
     1661        <a class="clear-selection" href="#"><?php _e('Clear selection'); ?></a>
     1662    </script>
    16521663    <?php
    16531664}
Note: See TracChangeset for help on using the changeset viewer.