function theme_flickr_photo_box in Flickr 5
Same name and namespace in other branches
- 6 flickr.module \theme_flickr_photo_box()
- 7 flickr.module \theme_flickr_photo_box()
2 theme calls to theme_flickr_photo_box()
File
- ./
flickr.module, line 191
Code
function theme_flickr_photo_box($p, $size = NULL, $format = NULL, $attribs = NULL) {
$img = flickr_img($p, $size, $attribs);
$title = is_array($p['title']) ? $p['title']['_content'] : $p['title'];
$photo_url = flickr_photo_page_url($p['owner'], $p['id']);
$output .= "<div class='flickr-photo-box'>\n";
$output .= "<a href='{$photo_url}'>{$img}</a>";
$output .= "<a href='{$photo_url}'>";
$output .= '<div class="flickr-photo-title">' . check_plain($title) . "</div>\n";
$output .= "</a>";
$output .= "</div>\n";
return $output;
}