You are here

function theme_flickr_photo_box in Flickr 5

Same name and namespace in other branches
  1. 6 flickr.module \theme_flickr_photo_box()
  2. 7 flickr.module \theme_flickr_photo_box()
2 theme calls to theme_flickr_photo_box()
theme_flickr_photos in ./flickr.module
theme_flickr_sets_photoset in sets/flickr_sets.module

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;
}