You appear to be a bot. Output may be restricted
Description
Create a thumbnail linkCreate a thumbnail with a link to the post_id specified, either via $post_id or the $atts['link'] otherwise just create the image. As of v1.13 this supports custom image links
Usage
bw_link_thumbnail( $thumbnail, $post_id, $atts );
Parameters
- $thumbnail
- ( string ) required – full HTML for the thumbnail image
- $post_id
- ( id ) optional – default post id if not specified in $atts
- $atts
- ( array ) optional – shortcode attributes array
Returns
voidSource
File name: oik/includes/bw_images.incLines:
1 to 10 of 10
function bw_link_thumbnail( $thumbnail, $post_id=NULL, $atts=NULL ) { $link_id = bw_array_get( $atts, "link", $post_id ); if ( $link_id ) { $text = bw_array_get( $atts, "title", NULL ); $class = bw_array_get( $atts, "imgclass", null ); /* changed from class to imgclass **?** 2012/03/22 */ BW_::alink( $class, bw_get_image_link( $link_id ), $thumbnail, $text, "link-".$link_id ); } else { e( $thumbnail ); } }View on GitHub View on Trac