Make WordPress Core


Ignore:
Timestamp:
07/20/2015 03:56:19 PM (11 years ago)
Author:
obenland
Message:

Site Icon: Add crop preview to the media modal.

  • Monkey patches imgAreaSelect library to support touch events.
  • Removes Settings version of Site Icon since it would have been the same flow.
  • Removes default value for Customizer setting - there is no default favicon.

Fixes #16434.

File:
1 edited

Legend:

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

    r33090 r33329  
    12441244        </script>
    12451245
     1246        <script type="text/html" id="tmpl-site-icon-preview">
     1247                <h2><?php _e( 'Preview' ); ?></h2>
     1248                <strong><?php _e( 'As a browser icon' ); ?></strong>
     1249                <div class="favicon-preview">
     1250                        <img src="images/browser.png" class="browser-preview" width="182" height="" alt=""/>
     1251
     1252                        <div class="favicon">
     1253                                <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
     1254                        </div>
     1255                        <span class="browser-title"><?php bloginfo( 'name' ); ?></span>
     1256                </div>
     1257
     1258                <strong><?php _e( 'As an app icon' ); ?></strong>
     1259                <div class="app-icon-preview">
     1260                        <img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
     1261                </div>
     1262        </script>
     1263
    12461264        <?php
    12471265
Note: See TracChangeset for help on using the changeset viewer.