Changeset 16865
- Timestamp:
- 12/10/2010 07:15:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r16864 r16865 824 824 $selector = "gallery-{$instance}"; 825 825 826 $output = apply_filters('gallery_style', " 826 $gallery_style = $gallery_div = ''; 827 if ( apply_filters( 'use_default_gallery_style', true ) ) 828 $gallery_style = " 827 829 <style type='text/css'> 828 830 #{$selector} { … … 833 835 margin-top: 10px; 834 836 text-align: center; 835 width: {$itemwidth}%; } 837 width: {$itemwidth}%; 838 } 836 839 #{$selector} img { 837 840 border: 2px solid #cfcfcf; … … 841 844 } 842 845 </style> 843 <!-- see gallery_shortcode() in wp-includes/media.php --> 844 <div id='$selector' class='gallery galleryid-{$id}'>"); 846 <!-- see gallery_shortcode() in wp-includes/media.php -->"; 847 $size_class = sanitize_html_class( $size ); 848 $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"; 849 $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div ); 845 850 846 851 $i = 0;
Note: See TracChangeset
for help on using the changeset viewer.