Ticket #7678: 7678.diff
| File 7678.diff, 1006 bytes (added by , 17 years ago) |
|---|
-
wp-includes/media.php
651 651 $captiontag = tag_escape($captiontag); 652 652 $columns = intval($columns); 653 653 $itemwidth = $columns > 0 ? floor(100/$columns) : 100; 654 655 $class = "galleryid-{$id}"; 654 656 655 657 $output = apply_filters('gallery_style', " 656 658 <style type='text/css'> 657 . gallery{659 .{$class} { 658 660 margin: auto; 659 661 } 660 . gallery-item {662 .{$class} .gallery-item { 661 663 float: left; 662 664 margin-top: 10px; 663 665 text-align: center; 664 666 width: {$itemwidth}%; } 665 . galleryimg {667 .{$class} img { 666 668 border: 2px solid #cfcfcf; 667 669 } 668 . gallery-caption {670 .{$class} .gallery-caption { 669 671 margin-left: 0; 670 672 } 671 673 </style> 672 674 <!-- see gallery_shortcode() in wp-includes/media.php --> 673 <div class='gallery '>");675 <div class='gallery $class'>"); 674 676 675 677 $i = 0; 676 678 foreach ( $attachments as $id => $attachment ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)