function theme_flickr_photo in Flickr 5
Same name and namespace in other branches
- 6 flickr.module \theme_flickr_photo()
- 7 flickr.module \theme_flickr_photo()
2 theme calls to theme_flickr_photo()
- theme_flickr_block_photo in block/
flickr_block.module - theme_flickr_filter_photo in filter/
flickr_filter.module
File
- ./
flickr.module, line 184
Code
function theme_flickr_photo($p, $size = NULL, $format = NULL, $attribs = NULL) {
$img = flickr_img($p, $size, $attribs);
$photo_url = flickr_photo_page_url($p['owner'], $p['id']);
$title = is_array($p['title']) ? $p['title']['_content'] : $p['title'];
return l($img, $photo_url, array(
'title' => $title,
), NULL, NULL, TRUE, TRUE);
}