You are here

function theme_flickr_sets_photoset_box in Flickr 6

Same name and namespace in other branches
  1. 5 sets/flickr_sets.module \theme_flickr_sets_photoset_box()
  2. 7 sets/flickr_sets.module \theme_flickr_sets_photoset_box()
1 theme call to theme_flickr_sets_photoset_box()
theme_flickr_sets_photosets in sets/flickr_sets.module

File

sets/flickr_sets.module, line 168

Code

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