You are here

function theme_flickr_sets_photoset_box in Flickr 7

Same name and namespace in other branches
  1. 5 sets/flickr_sets.module \theme_flickr_sets_photoset_box()
  2. 6 sets/flickr_sets.module \theme_flickr_sets_photoset_box()

Theme a user's photos in a given set.

1 theme call to theme_flickr_sets_photoset_box()
theme_flickr_sets_photosets in sets/flickr_sets.module
Theme a user's photosets (one thumb per set).

File

sets/flickr_sets.module, line 216
The Flickr sets module.

Code

function theme_flickr_sets_photoset_box($variables) {
  $uid = $variables['uid'];
  $photoset = $variables['photoset'];
  $size = $variables['size'];
  $format = $variables['format'];
  $title = is_array($photoset['title']) ? $photoset['title']['_content'] : $photoset['title'];
  $output = "<div class='flickr-photoset-box'>\n";
  $output .= l(flickr_img($photoset, $size), "flickr/{$uid}/sets/{$photoset['id']}", array(
    'html' => TRUE,
  )) . "\n";
  $output .= '<div class="flickr-photoset-title">' . l($title, "flickr/{$uid}/sets/{$photoset['id']}") . "</div>\n";
  $output .= '<div class="flickr-photoset-count">' . format_plural($photoset['photos'], '@count photo', '@count photos') . "</div>\n";
  $output .= "</div>\n";
  return $output;
}