Make WordPress Core


Ignore:
Timestamp:
10/10/2012 06:47:22 AM (12 years ago)
Author:
koopersmith
Message:

Improve styling and markup for gallery and attachment MCE views.

Attachment views can now inherit from the theme's editor-style.css — just have any rules that apply to the img tag apply to .editor-attachment as well.

Adds a non-functional edit button to gallery views.

see #21390, #21813, #21815.

File:
1 edited

Legend:

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

    r22144 r22154  
    13631363
    13641364    <script type="text/html" id="tmpl-editor-attachment">
    1365         <% if ( url ) { %>
    1366             <img src="<%- url %>" width="<%- width %>" height="<%- height %>" draggable="false" />
    1367         <% } %>
    1368 
    1369         <% if ( uploading ) { %>
    1370             <div class="media-progress-bar"><div></div></div>
    1371         <% } %>
    1372         <div class="close">&times;</div>
     1365        <div class="editor-attachment-preview">
     1366            <% if ( url ) { %>
     1367                <img src="<%- url %>" width="<%- width %>" height="<%- height %>" draggable="false" />
     1368            <% } %>
     1369
     1370            <% if ( uploading ) { %>
     1371                <div class="media-progress-bar"><div></div></div>
     1372            <% } %>
     1373            <div class="overlay">
     1374                <div class="button close">&times;</div>
     1375            </div>
     1376        </div>
    13731377        <div class="describe"></div>
    13741378    </script>
     
    13781382            <img src="<%- url %>" draggable="false" />
    13791383        <% } %>
    1380         <div class="close">&times;</div>
     1384
     1385        <div class="overlay">
     1386            <div class="button close">&times;</div>
     1387            <div class="button edit"><?php _e('Edit'); ?></div>
     1388        </div>
    13811389    </script>
    13821390    <?php
Note: See TracChangeset for help on using the changeset viewer.