Make WordPress Core


Ignore:
Timestamp:
10/16/2012 07:25:17 PM (12 years ago)
Author:
koopersmith
Message:

Add attachment display settings to the media modal.

  • Add a media view for button groups.
  • Add button dropdown containers.
  • Add a dropdown property to the button media model.

fixes #22206, #21814, see #21390, #21813, #21598.

File:
1 edited

Legend:

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

    r22225 r22247  
    13781378    </script>
    13791379
     1380    <script type="text/html" id="tmpl-attachment-display-settings">
     1381        <h4><?php _e('Alignment'); ?></h4>
     1382        <div class="alignment button-group button-large" data-setting="align">
     1383            <button class="button" value="left">
     1384                <?php esc_attr_e('Left'); ?>
     1385            </button>
     1386            <button class="button" value="center">
     1387                <?php esc_attr_e('Center'); ?>
     1388            </button>
     1389            <button class="button" value="right">
     1390                <?php esc_attr_e('Right'); ?>
     1391            </button>
     1392            <button class="button" value="none">
     1393                <?php esc_attr_e('None'); ?>
     1394            </button>
     1395        </div>
     1396
     1397        <h4><?php _e('Link To'); ?></h4>
     1398        <div class="link-to button-group button-large" data-setting="link">
     1399            <button class="button" value="post">
     1400                <?php esc_attr_e('Attachment Page'); ?>
     1401            </button>
     1402            <button class="button" value="file">
     1403                <?php esc_attr_e('Media File'); ?>
     1404            </button>
     1405            <button class="button" value="none">
     1406                <?php esc_attr_e('None'); ?>
     1407            </button>
     1408        </div>
     1409    </script>
     1410
    13801411    <script type="text/html" id="tmpl-editor-attachment">
    13811412        <div class="editor-attachment-preview">
Note: See TracChangeset for help on using the changeset viewer.