Make WordPress Core


Ignore:
Timestamp:
06/06/2012 09:45:17 PM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: Fix scrolling on iOS and Kindle Fire. props azaozz, helenyhou. fixes #20805.

Also fixes uploader UIs on iOS and Kindle Fire by improving wp.Uploader.
Adds mobile viewport specifications.
Moves scrollbar back to fixed positioning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-control.php

    r20936 r21014  
    332332
    333333        ?>
    334         <label class="customize-image-picker">
     334        <div class="customize-image-picker">
    335335            <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    336336
     
    367367                <a href="#" class="remove"><?php _e( 'Remove Image' ); ?></a>
    368368            </div>
    369         </label>
     369        </div>
    370370        <?php
    371371    }
     
    383383
    384384    public function tab_upload_new() {
    385         ?>
    386         <div class="upload-dropzone">
    387             <?php _e('Drop a file here or <a href="#" class="upload">select a file</a>.'); ?>
    388         </div>
    389         <div class="upload-fallback">
    390             <span class="button-secondary"><?php _e('Select File'); ?></span>
    391         </div>
    392         <?php
     385        if ( ! _device_can_upload() ) {
     386            ?>
     387            <p><?php _e('The web browser on your device cannot be used to upload files. You may be able to use the <a href="http://wordpress.org/extend/mobile/">native app for your device</a> instead.'); ?></p>
     388            <?php
     389        } else {
     390            ?>
     391            <div class="upload-dropzone">
     392                <?php _e('Drop a file here or <a href="#" class="upload">select a file</a>.'); ?>
     393            </div>
     394            <div class="upload-fallback">
     395                <span class="button-secondary"><?php _e('Select File'); ?></span>
     396            </div>
     397            <?php
     398        }
    393399    }
    394400
Note: See TracChangeset for help on using the changeset viewer.