Ticket #20805: 20805-3.patch
File 20805-3.patch, 7.0 KB (added by , 13 years ago) |
---|
-
wp-admin/css/customize-controls.dev.css
391 391 text-align: right; 392 392 } 393 393 394 .customize-section .customize-control-image .actions a {395 display: block;396 }397 398 394 .customize-section .customize-control-image .library ul { 399 395 border-bottom: 1px solid #dfdfdf; 400 396 float: left; … … 445 441 446 442 .customize-section .customize-control-image .library .thumbnail img { 447 443 display: block; 448 max-width: 220px;444 max-width: 90%; 449 445 max-height: 80px; 450 446 451 447 margin: 5px auto; … … 454 450 border: 1px solid #dfdfdf; 455 451 } 456 452 457 .customize-section .customize-control-upload .upload-fallback, 458 .customize-section .customize-control-image .upload-fallback { 453 .customize-section .customize-control-upload .upload-dropzone, 454 .customize-section .customize-control-image .upload-dropzone { 455 margin: 5px 0 0; 456 position: relative; 457 } 458 459 .customize-section .upload-dropzone-text, 460 .customize-section .supports-drag-drop .upload-fallback-button { 459 461 display: none; 460 462 } 461 463 462 .customize-section .customize-control-upload .upload-dropzone, 463 .customize-section .customize-control-image .upload-dropzone { 464 display: none; 464 .customize-section .supports-drag-drop .upload-dropzone-text { 465 display: inline; 466 } 467 468 .customize-section .customize-control-upload .upload-dropzone.supports-drag-drop, 469 .customize-section .customize-control-image .upload-dropzone.supports-drag-drop { 465 470 padding: 15px 10px; 466 471 border: 3px dashed #dfdfdf; 467 472 margin: 5px auto; 468 473 text-align: center; 469 474 color: #777; 470 position: relative; 471 } 472 473 .customize-section .customize-control-upload .upload-dropzone.supports-drag-drop, 474 .customize-section .customize-control-image .upload-dropzone.supports-drag-drop { 475 display: block; 475 cursor: default; 476 476 -webkit-transition: border-color 0.1s; 477 477 -moz-transition: border-color 0.1s; 478 478 -ms-transition: border-color 0.1s; … … 480 480 transition: border-color 0.1s; 481 481 } 482 482 483 .customize-section .customize-control-upload .library ul li, 484 .customize-section .customize-control-image .library ul li { 485 cursor: pointer; 486 } 487 483 488 .customize-section .customize-control-upload .upload-dropzone.supports-drag-drop.drag-over, 484 489 .customize-section .customize-control-image .upload-dropzone.supports-drag-drop.drag-over { 485 490 border-color: #83b4d8; 486 } 487 No newline at end of file 491 } 492 493 /** 494 * iOS can't scroll iframes, 495 * instead it expands the iframe size to match the size of the content 496 */ 497 body.ios { 498 position: static; 499 z-index: 0; 500 overflow: auto; 501 } 502 503 .ios #customize-controls { 504 right: auto; 505 width: 250px; 506 position: fixed; 507 } 508 509 .ios #customize-preview { 510 position: relative; 511 left: 250px; 512 } 513 514 .ios.collapsed #customize-preview { 515 left: 0; 516 width: 100% 517 } 518 519 .ios.collapsed #customize-controls { 520 margin-left: -250px; 521 } 522 -
wp-admin/customize.php
39 39 wp_user_settings(); 40 40 _wp_admin_html_begin(); 41 41 42 $body_class = 'wp-full-overlay'; 43 $is_mobile = $is_ios = false; 44 45 if ( wp_is_mobile() ) { 46 $body_class .= ' mobile'; 47 $is_mobile = true; 48 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') 49 || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') 50 || strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') ) { 51 $body_class .= ' ios'; 52 $is_ios = true; 53 } 54 55 ?><meta name="viewport" id="viewport-meta" content="width=device-width, initial-scale=0.8, minimum-scale=0.5, maximum-scale=2.0"><?php 56 } 57 42 58 $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) ); 43 59 ?><title><?php echo $admin_title; ?></title><?php 44 60 … … 46 62 do_action( 'customize_controls_print_scripts' ); 47 63 ?> 48 64 </head> 49 <body class=" wp-full-overlay">65 <body class="<?php echo $body_class; ?>"> 50 66 <form id="customize-controls" class="wrap wp-full-overlay-sidebar"> 51 67 <?php wp_nonce_field( 'customize_controls' ); ?> 52 68 <div id="customize-header-actions" class="wp-full-overlay-header"> … … 145 161 'isCrossDomain' => $cross_domain, 146 162 'fallback' => $fallback_url, 147 163 ), 164 'is_mobile' => $is_mobile, 165 'is_ios' => $is_ios, 148 166 'settings' => array(), 149 167 'controls' => array(), 150 168 ); -
wp-includes/class-wp-customize-control.php
331 331 $src = call_user_func( $this->get_url, $src ); 332 332 333 333 ?> 334 < labelclass="customize-image-picker">334 <div class="customize-image-picker"> 335 335 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 336 336 337 337 <div class="customize-control-content"> … … 366 366 <div class="actions"> 367 367 <a href="#" class="remove"><?php _e( 'Remove Image' ); ?></a> 368 368 </div> 369 </ label>369 </div> 370 370 <?php 371 371 } 372 372 … … 384 384 public function tab_upload_new() { 385 385 ?> 386 386 <div class="upload-dropzone"> 387 <?php _e('Drop a file here or <a href="#" class="upload">select a file</a>.'); ?> 387 <span class="upload-dropzone-text"><?php _e('Drop a file here or'); ?></span> 388 <a href="#" class="upload"><span class="upload-dropzone-text"><?php _e('select a file.'); ?></span><span class="upload-fallback-button button-secondary"><?php _e('Select File'); ?></span></a> 388 389 </div> 389 <div class="upload-fallback">390 <span class="button-secondary"><?php _e('Select File'); ?></span>391 </div>392 390 <?php 393 391 } 394 392 … … 480 478 foreach ( $custom_image_header->default_headers as $header ) 481 479 $this->print_tab_image( $header['url'], $header['thumbnail_url'] ); 482 480 } 483 } 484 No newline at end of file 481 } -
wp-includes/js/customize-loader.dev.js
30 30 this.bind( 'close', this.overlay.hide ); 31 31 32 32 $('#wpbody').on( 'click', '.load-customize', function( event ) { 33 // follow the link if on mobile device 34 if ( $('body').hasClass('mobile') ) 35 return true; 36 33 37 event.preventDefault(); 34 38 35 39 // Load the theme. -
wp-includes/js/plupload/wp-plupload.dev.js
99 99 active = false; 100 100 dropzone.removeClass('drag-over'); 101 101 }); 102 }( this.dropzone, this.uploader.features.dragdrop ));102 }( this.dropzone, this.uploader.features.dragdrop && ! $('body').hasClass('mobile') )); 103 103 104 104 this.browser.on( 'mouseenter', this.refresh ); 105 105 … … 200 200 }); 201 201 202 202 exports.Uploader = Uploader; 203 })( wp, jQuery ); 204 No newline at end of file 203 })( wp, jQuery );