Changeset 9847
- Timestamp:
- 11/23/2008 06:37:15 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 12 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r9836 r9847 40 40 } 41 41 42 if ( typeof o === 'object' ) { 43 for (var v in o) 44 o[v] = c(o[v]); 45 return o; 46 } else if ( typeof o === 'string' ) 42 if ( typeof o === 'string' ) 47 43 return c(o); 44 else if ( typeof o === 'object' ) 45 for (var v in o) { 46 if ( typeof o[v] === 'string' ) 47 o[v] = c(o[v]); 48 } 49 return o; 48 50 }; 49 51 //]]> -
trunk/wp-admin/css/colors-classic.css
r9837 r9847 1450 1450 } 1451 1451 1452 #wp_editimgbtn, #wp_delimgbtn { 1452 #wp_editimgbtn, 1453 #wp_delimgbtn, 1454 #wp_editgallery, 1455 #wp_delgallery { 1453 1456 border-color: #999; 1454 1457 background-color: #eee; 1455 1458 } 1456 1459 1457 #wp_editimgbtn:hover, #wp_delimgbtn:hover { 1460 #wp_editimgbtn:hover, 1461 #wp_delimgbtn:hover, 1462 #wp_editgallery:hover, 1463 #wp_delgallery:hover { 1458 1464 border-color: #555; 1459 1465 background-color: #ccc; -
trunk/wp-admin/css/colors-fresh.css
r9842 r9847 1453 1453 } 1454 1454 1455 #wp_editimgbtn, #wp_delimgbtn { 1455 #wp_editimgbtn, 1456 #wp_delimgbtn, 1457 #wp_editgallery, 1458 #wp_delgallery { 1456 1459 border-color: #999; 1457 1460 background-color: #eee; 1458 1461 } 1459 1462 1460 #wp_editimgbtn:hover, #wp_delimgbtn:hover { 1463 #wp_editimgbtn:hover, 1464 #wp_delimgbtn:hover, 1465 #wp_editgallery:hover, 1466 #wp_delgallery:hover { 1461 1467 border-color: #555; 1462 1468 background-color: #ccc; -
trunk/wp-admin/includes/post.php
r9716 r9847 1125 1125 $ext_plugins = ''; 1126 1126 } else { 1127 $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen', 'wpeditimage' );1127 $plugins = array( 'safari', 'inlinepopups', 'autosave', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen', 'wpeditimage', 'wpgallery' ); 1128 1128 1129 1129 /* -
trunk/wp-admin/wp-admin.css
r9842 r9847 2184 2184 } 2185 2185 2186 #wp_editbtns { 2186 #wp_editbtns, 2187 #wp_gallerybtns { 2187 2188 padding: 2px; 2188 2189 position: absolute; … … 2191 2192 } 2192 2193 2193 #wp_editimgbtn, #wp_delimgbtn { 2194 #wp_editimgbtn, 2195 #wp_delimgbtn, 2196 #wp_editgallery, 2197 #wp_delgallery { 2194 2198 margin: 2px; 2195 2199 padding: 2px; -
trunk/wp-includes/js/tinymce/langs/wp-langs-en.js
r9375 r9847 428 428 alt:"Edit Alternate Text" 429 429 }); 430 431 tinyMCE.addI18n("en.gallery",{ 432 settings:"Gallery Settings", 433 linkto:"Link thumbnails to:", 434 linktofile:"Image File", 435 linktopost:"Attachment Page", 436 orderby:"Order images by:", 437 menu_order:"Menu order", 438 byname:"Name", 439 bydate:"Date/Time", 440 random:"Random", 441 order:"Order:", 442 orderasc:"Ascending", 443 orderdesc:"Descending", 444 cols:"Gallery columns:", 445 two:"two", 446 three:"three", 447 four:"four", 448 five:"five", 449 six:"six", 450 seven:"seven", 451 eight:"eight", 452 nine:"nine", 453 imgwidth:"Limit the thumbnails width:", 454 imgwidthhelp:"Overrides the thumbnail images width. The default can be changed from the Media Settings page." 455 }); -
trunk/wp-includes/js/tinymce/langs/wp-langs.php
r9064 r9847 451 451 alt:"' . mce_escape( __('Edit Alternate Text') ) . '" 452 452 }); 453 454 tinyMCE.addI18n("' . $language . '.gallery",{ 455 settings:"' . mce_escape( __('Gallery Settings') ) . '", 456 linkto:"' . mce_escape( __('Link thumbnails to:') ) . '", 457 linktofile:"' . mce_escape( __('Image File') ) . '", 458 linktopost:"' . mce_escape( __('Attachment Page') ) . '", 459 orderby:"' . mce_escape( __('Order images by:') ) . '", 460 menu_order:"' . mce_escape( __('Menu order') ) . '", 461 byname:"' . mce_escape( __('Name') ) . '", 462 bydate:"' . mce_escape( __('Date/Time') ) . '", 463 random:"' . mce_escape( __('Random') ) . '", 464 order:"' . mce_escape( __('Order:') ) . '", 465 orderasc:"' . mce_escape( __('Ascending') ) . '", 466 orderdesc:"' . mce_escape( __('Descending') ) . '", 467 cols:"' . mce_escape( __('Gallery columns:') ) . '", 468 two:"' . mce_escape( __('two') ) . '", 469 three:"' . mce_escape( __('three') ) . '", 470 four:"' . mce_escape( __('four') ) . '", 471 five:"' . mce_escape( __('five') ) . '", 472 six:"' . mce_escape( __('six') ) . '", 473 seven:"' . mce_escape( __('seven') ) . '", 474 eight:"' . mce_escape( __('eight') ) . '", 475 nine:"' . mce_escape( __('nine') ) . '", 476 imgwidth:"' . mce_escape( __('Limit the thumbnails width:') ) . '", 477 imgwidthhelp:"' . mce_escape( __('Overrides the thumbnail images width. The default can be changed from the Media Settings page.') ) . '" 478 }); 453 479 '; 454 455 // mce_put_file( ABSPATH . WPINC . '/js/tinymce/langs/wp-langs-' . $language . '.js', $lang ); -
trunk/wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css
r9674 r9847 89 89 } 90 90 91 # media-upload #img-edit {91 #img-edit { 92 92 border: 1px solid #dfdfdf; 93 93 width: 623px; … … 101 101 102 102 #img_demo_txt { 103 font-size: 6px; 104 line-height: 10px; 105 font-family: "Courier New",Courier,monotype; 106 color: #ccc; 107 background-color: #ccc; 103 font-size: 9px; 104 line-height: 13px; 105 font-family: Monaco,"Courier New",Courier,monospace; 106 color: #888; 108 107 } 109 108 … … 133 132 display: block; 134 133 float: left; 134 height: 28px; 135 135 line-height: 28px; 136 136 text-decoration: none; … … 333 333 font-weight: bold; 334 334 } 335 336 * html #sidemenu li { 337 zoom: 100%; 338 } 339 340 * html #sidemenu a { 341 height: 27px; 342 line-height: 26px; 343 } -
trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js
r9730 r9847 12 12 ed.addCommand('WP_EditImage', function() { 13 13 var el = ed.selection.getNode(), vp = tinymce.DOM.getViewPort(), H = vp.h, W = ( 720 < vp.w ) ? 720 : vp.w; 14 15 if ( ed.dom.getAttrib(el, 'class').indexOf('mceItem') != -1 || el.nodeName != 'IMG' ) 14 var cls = ed.dom.getAttrib(el, 'class'); 15 16 if ( cls.indexOf('mceItem') != -1 || cls.indexOf('wpGallery') != -1 || el.nodeName != 'IMG' ) 16 17 return; 17 18 … … 143 144 showButtons : function(n) { 144 145 var t = this, ed = tinyMCE.activeEditor, p1, p2, vp, DOM = tinymce.DOM, X, Y; 145 146 if (ed.dom.getAttrib(n, 'class').indexOf('mceItem') != -1) 146 var cls = ed.dom.getAttrib(n, 'class'); 147 148 if ( cls.indexOf('mceItem') != -1 || cls.indexOf('wpGallery') != -1 ) 147 149 return; 148 150 -
trunk/wp-includes/js/tinymce/wordpress.css
r8614 r9847 41 41 } 42 42 43 img.wpGallery { 44 border: 1px dotted #cc0000; 45 background: #ffffcc url("plugins/wpgallery/img/gallery.png") no-repeat scroll center center; 46 width: 99%; 47 height: 250px; 48 } 49 43 50 body.mceContentBody { 44 51 background: #fff; -
trunk/wp-includes/media.php
r9688 r9847 523 523 * @param string $size Optional, default is 'thumbnail'. 524 524 * @param bool $icon Optional, default is false. Whether it is an icon. 525 * @param int $imgwidth Override image width. 525 526 * @return string HTML img element or empty string on failure. 526 527 */ 527 function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = false ) {528 function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = false, $imgwidth = false) { 528 529 529 530 $html = ''; … … 531 532 if ( $image ) { 532 533 list($src, $width, $height) = $image; 533 $hwstring = image_hwstring($width, $height);534 $hwstring = $imgwidth ? image_hwstring($imgwidth, '') : image_hwstring($width, $height); 534 535 if ( is_array($size) ) 535 536 $size = join('x', $size); … … 619 620 'columns' => 3, 620 621 'size' => 'thumbnail', 622 'imgwidth' => '' 621 623 ), $attr)); 622 624 … … 638 640 $columns = intval($columns); 639 641 $itemwidth = $columns > 0 ? floor(100/$columns) : 100; 642 $imgwidth = isset($imgwidth) && (int) $imgwidth ? $imgwidth : false; 640 643 641 644 $output = apply_filters('gallery_style', " … … 661 664 $i = 0; 662 665 foreach ( $attachments as $id => $attachment ) { 663 $link = wp_get_attachment_link($id, $size, true); 666 $link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false, $imgwidth) : wp_get_attachment_link($id, $size, true, false, $imgwidth); 667 664 668 $output .= "<{$itemtag} class='gallery-item'>"; 665 669 $output .= " -
trunk/wp-includes/post-template.php
r9844 r9847 758 758 * @return string HTML content. 759 759 */ 760 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false ) {760 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $imgwidth = false) { 761 761 $id = intval($id); 762 762 $_post = & get_post( $id ); … … 770 770 $post_title = attribute_escape($_post->post_title); 771 771 772 $link_text = wp_get_attachment_image($id, $size, $icon );772 $link_text = wp_get_attachment_image($id, $size, $icon, $imgwidth); 773 773 if ( !$link_text ) 774 774 $link_text = $_post->post_title; -
trunk/wp-includes/script-loader.php
r9827 r9847 62 62 // Modify this version when tinyMCE plugins are changed. 63 63 function mce_version() { 64 return '200811 16';64 return '20081122'; 65 65 } 66 66 add_filter( 'tiny_mce_version', 'mce_version' );
Note: See TracChangeset
for help on using the changeset viewer.