You are here

function theme_flickr_sets_photoset in Flickr 5

Same name and namespace in other branches
  1. 6 sets/flickr_sets.module \theme_flickr_sets_photoset()
  2. 7 sets/flickr_sets.module \theme_flickr_sets_photoset()
1 theme call to theme_flickr_sets_photoset()
flickr_sets_photoset in sets/flickr_sets.module

File

sets/flickr_sets.module, line 144

Code

function theme_flickr_sets_photoset($uid, $per_page, $photo_arr, $set_info) {
  $output = theme('pager', NULL, variable_get('flickr_photos_per_page', 20));
  $output .= "<div class='fickr-photoset'>\n";
  foreach ((array) $photo_arr['photoset']['photo'] as $photo) {

    //insert owner into $photo because theme_flickr_photo_box/flickr_photo_page_url needs it
    $photo['owner'] = $set_info['owner'];
    $output .= theme('flickr_photo_box', $photo, 'm');
  }
  $output .= '</div>';
  $output .= theme('pager', NULL, variable_get('flickr_photos_per_page', 20));
  return $output;
}