| | 809 | //allow plugins or themes to alter the gallery class |
| | 810 | $gallery_class = apply_filters( 'gallery_class', "gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class} {$class}", $selector, $attr ); |
| | 811 | |
| | 812 | //allow plugins or themes to alter the gallery container's opening markup. E.g. include extra attributes or even use a different tag |
| | 813 | $gallery_start = apply_filters( 'gallery_container_start', "<div id='$selector' class='$gallery_class'>", $selector, $gallery_class, $attr ); |
| | 814 | |
| | 815 | //allow plugins or themes to alter the default gallery inline styles |
| | 816 | $gallery_style = apply_filters( 'gallery_style', $gallery_style, $selector, $attr ); |
| | 817 | |
| | 818 | //allow plugins or themes to alter the gallery column separator markup |
| | 819 | $gallery_separator = apply_filters( 'gallery_column_separator', '<br style="clear: both" />', $selector, $attr ); |
| | 820 | |
| | 821 | //allow plugins or themes to alter the gallery container's closing markup |
| | 822 | $gallery_end = apply_filters( 'gallery_container_end', " |
| | 823 | <br style='clear: both;' /> |
| | 824 | </div>\n", $selector, $attr ); |
| | 825 | |
| | 826 | $output = $gallery_style . "\n\t\t" . $gallery_start; |
| | 827 | |