Ticket #2078: noscript.diff
| File noscript.diff, 7.1 KB (added by , 21 years ago) |
|---|
-
wp-admin/inline-uploading.php
26 26 $images_width = 1; 27 27 28 28 switch($action) { 29 case 'links': 30 // Do not pass GO. 31 break; 32 29 33 case 'delete': 30 34 31 35 if ( !current_user_can('edit_post', (int) $attachment) ) … … 200 204 add_post_meta($ID, '_wp_attachment_metadata', $meta); 201 205 } 202 206 $attachment = array_merge($attachment, $meta); 207 $noscript = "<noscript> 208 <div class='caption'><a href=\"".basename(__FILE__)."?action=links&attachment={$ID}&post={$post}&all={$all}&start={$start}\">Choose Links</a></div> 209 </noscript> 210 "; 203 211 $send_delete_cancel = "<a onclick=\"sendToEditor({$ID});return false;\" href=\"javascript:void()\">$__send_to_editor</a> 204 212 <a onclick=\"return confirm('$__confirmdelete')\" href=\"".basename(__FILE__)."?action=delete&attachment={$ID}&all=$all&start=$start&post=$post\">$__delete</a> 205 213 <a onclick=\"popup.style.display='none';return false;\" href=\"javascript:void()\">$__close</a> … … 233 241 <div id='div{$ID}' class='imagewrap' onclick=\"doPopup({$ID});\"> 234 242 <img id=\"image{$ID}\" src=\"$src\" alt=\"{$image['post_title']}\" $height_width /> 235 243 </div> 244 {$noscript} 236 245 </div> 237 246 "; 238 247 $popups .= "<div id='popup{$ID}' class='popup'> … … 256 265 <div id='div{$ID}' class='otherwrap usingtext' onmousedown=\"selectLink({$ID})\" onclick=\"doPopup({$ID});return false;\"> 257 266 <a id=\"{$ID}\" href=\"{$attachment['guid']}\" onmousedown=\"selectLink({$ID});\" onclick=\"return false;\">{$attachment['post_title']}</a> 258 267 </div> 268 {$noscript} 259 269 </div> 260 270 "; 261 271 $popups .= "<div id='popup{$ID}' class='popup'> … … 398 408 } 399 409 </script> 400 410 <style type="text/css"> 411 <?php if ( $action == 'links' ) : ?> 412 * html { overflow-x: hidden; } 413 <?php else : ?> 414 * html { overflow-y: hidden; } 415 <?php endif; ?> 401 416 body { 402 417 font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana; 403 418 border: none; … … 418 433 clear: both; 419 434 margin: 0px; 420 435 padding: 15px 15px; 421 height: 96px;422 /* white-space: nowrap;*/423 436 width: <?php echo $images_width; ?>px; 424 437 } 425 438 #images img { … … 427 440 } 428 441 <?php echo $style; ?> 429 442 .attwrap, .attwrap * { 430 overflow: none;431 443 margin: 0px; 432 444 padding: 0px; 433 445 border: 0px; 434 446 } 435 447 .imagewrap { 436 448 margin-right: 5px; 437 height: 96px;438 449 overflow: hidden; 439 float: left;450 width: 128px; 440 451 } 441 452 .otherwrap { 442 453 margin-right: 5px; 443 /* overflow: hidden;*/ 454 overflow: hidden; 444 455 background-color: #f9fcfe; 445 float: left;446 456 } 447 457 .otherwrap a { 448 458 display: block; … … 454 464 padding: 0px; 455 465 height: 96px; 456 466 text-align: center; 467 width: 128px; 457 468 } 458 469 .usingicon a { 459 width: 128px;460 470 } 461 471 .usingtext { 462 472 padding: 3px; 463 473 height: 90px; 464 474 text-align: left; 475 width: 122px; 465 476 } 466 477 .usingtext a { 467 width: 122px;468 478 } 469 479 .filetype { 470 480 font-size: 80%; … … 547 557 padding: 1px; 548 558 position: absolute; 549 559 width: 114px; 550 /* height: 92px;*/551 560 display: none; 552 561 background-color: rgb(240, 240, 238); 553 562 border-top: 2px solid #fff; … … 574 583 background-color: #fff; 575 584 color: #000; 576 585 } 586 .caption { 587 text-align: center; 588 } 577 589 #submit { 578 590 margin: 1px; 579 591 width: 99%; … … 593 605 border-left-color: #999; 594 606 border-top-color: #999; 595 607 } 608 .zerosize { 609 width: 0px; 610 height: 0px; 611 overflow: hidden; 612 position: absolute; 613 } 614 #links { 615 margin: 3px 8px; 616 line-height: 2em; 617 618 } 619 #links textarea { 620 width: 95%; 621 height: 4.5em; 622 } 596 623 </style> 597 624 </head> 598 625 <body> … … 605 632 <li<?php echo $current_3; ?>><a href="<?php echo basename(__FILE__); ?>?action=view&post=<?php echo $post; ?>&all=true"><?php _e('Browse All'); ?></a></li> 606 633 <?php } ?> 607 634 <li> </li> 608 <?php if ( $action != 'upload' ) { ?>635 <?php if ( $action == 'view' ) { ?> 609 636 <?php if ( false !== $back ) : ?> 610 637 <li class="spacer"><a href="<?php echo basename(__FILE__); ?>?action=<?php echo $action; ?>&post=<?php echo $post; ?>&all=<?php echo $all; ?>&start=0" title="<?php _e('First'); ?>">|«</a></li> 611 638 <li><a href="<?php echo basename(__FILE__); ?>?action=<?php echo $action; ?>&post=<?php echo $post; ?>&all=<?php echo $all; ?>&start=<?php echo $back; ?>"">« <?php _e('Back'); ?></a></li> … … 664 691 </table> 665 692 </div> 666 693 </form> 694 <?php elseif ( $action == 'links' ) : ?> 695 <div id="links"> 696 <?php the_attachment_links($attachment); ?> 697 </div> 667 698 <?php endif; ?> 668 699 </body> 669 700 </html> -
wp-admin/wp-admin.css
160 160 margin-bottom: 16px; 161 161 height: 15em; 162 162 width: 100%; 163 overflow-y: hidden; 163 /* overflow-y: hidden;*/ 164 164 } 165 165 166 166 form#upload th { -
wp-admin/admin-functions.php
1847 1847 $icon = get_attachment_icon($post->ID); 1848 1848 1849 1849 ?> 1850 < ?php _e('Text linked to file') ?><br/>1851 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink"><?php echo basename($post->guid) ?></a></textarea> 1852 < ?php _e('Text linked to subpost') ?><br/>1853 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo get_attachment_link($post->ID) ?>" rel="attachment" id="<?php echo $post->ID ?>"><?php echo $post->post_title ?></a></textarea> 1850 <p><?php _e('Text linked to file') ?><br /> 1851 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink"><?php echo basename($post->guid) ?></a></textarea></p> 1852 <p><?php _e('Text linked to subpost') ?><br /> 1853 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo get_attachment_link($post->ID) ?>" rel="attachment" id="<?php echo $post->ID ?>"><?php echo $post->post_title ?></a></textarea></p> 1854 1854 <?php if ( $icon ) : ?> 1855 < ?php _e('Thumbnail linked to file') ?><br/>1856 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink">< img src="<?php echo $thumb ?>" class="attachmentthumb" alt="<?php echo $post->post_title ?>" /></a></textarea>1857 < ?php _e('Thumbnail linked to subpost') ?><br/>1858 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo get_attachment_link($post->ID) ?>" class="attachmentlink"><img src="<?php echo $icon ?>" class="attachmentthumb" alt="<?php echo $post->post_title ?>" /></a></textarea>1855 <p><?php _e('Thumbnail linked to file') ?><br /> 1856 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo $post->guid ?>" class="attachmentlink"><?php echo $icon ?></a></textarea></p> 1857 <p><?php _e('Thumbnail linked to subpost') ?><br /> 1858 <textarea rows="1" cols="40" type="text" class="attachmentlinks" readonly="readonly"><a href="<?php echo get_attachment_link($post->ID) ?>" rel="attachment" id="<?php echo $post->ID ?>"><?php echo $icon ?></a></textarea></p> 1859 1859 <?php endif; ?> 1860 1860 <?php 1861 1861 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)