You are here

function theme_flickr_sets_photosets in Flickr 7

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

Theme a user's photosets (one thumb per set).

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

File

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

Code

function theme_flickr_sets_photosets($variables) {
  $uid = $variables['uid'];
  $per_page = $variables['per_page'];
  $nsid = $variables['nsid'];
  $photosets = $variables['photosets'];
  $output = theme('pager', array(
    'quantity' => variable_get('flickr_sets_per_page', 8),
  ));
  $output .= "<div class='flickr-photosets'>\n";
  foreach ((array) $photosets as $photoset) {
    $output .= theme('flickr_sets_photoset_box', array(
      'photoset' => $photoset,
      'uid' => $uid,
      'nsid' => $nsid,
      'size' => variable_get('flickr_sets_thumb_default_size', 's'),
    ));
  }
  $output .= '</div>';
  $output .= theme('pager', array(
    'quantity' => variable_get('flickr_sets_per_page', 8),
  ));
  return $output;
}