Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: gallery_style

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
859                     border: 2px solid #cfcfcf;
860                }
861                #{$selector} .gallery-caption {
862                     margin-left: 0;
863                }
864           </style>
865           <!-- see gallery_shortcode() in wp-includes/media.php -->";
866      $size_class = sanitize_html_class( $size );
867      $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
868      $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
869
870      $i = 0;
871      foreach ( $attachments as $id => $attachment ) {
872           $link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false);
873
874           $output .= "<{$itemtag} class='gallery-item'>";
875           $output .= "
876                <{$icontag} class='gallery-icon'>
877                     $link