You are here

function theme_flickr_photo_box in Flickr 6

Same name and namespace in other branches
  1. 5 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 303

Code

function theme_flickr_photo_box($photo, $size = NULL, $format = NULL, $attributes = NULL) {
  $img = flickr_img($photo, $size, $attributes);
  $title = is_array($photo['title']) ? $photo['title']['_content'] : $photo['title'];
  $photo_url = flickr_photo_page_url($photo['owner'], $photo['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">' . strip_tags($title) . "</div>\n";
  $output .= "</a>";
  $output .= "</div>\n";
  return $output;
}