Guest User

flickr

a guest
Nov 21st, 2012
222
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(isset($setphotos['photoset']['photo'])){//adionada essa linha
  2.  
  3.         foreach( $setphotos['photoset']['photo'] as $photo )
  4.         {
  5.             $photo_id = $photo['id'];
  6.             $photo_title = $photo['title'];
  7.  
  8.             $aux['f_set_title'] = "$set_title";
  9.             $aux['f_href'] = "$photos_url$photo_id";
  10.             $aux['f_href_m'] = $f->buildPhotoURL( $photo, "Medium" );
  11.             $aux['f_href_l'] = $f->buildPhotoURL( $photo, "Large" );
  12.             $aux['f_href_s'] = $f->buildPhotoURL( $photo, "Square" );
  13.             $aux['f_title'] = "$photo_title";
  14.             $aux['f_src_s'] = $f->buildPhotoURL( $photo, "Square" );
  15.             $aux['f_src_m'] = $f->buildPhotoURL( $photo, "Medium" );
  16.             $aux['f_src_l'] = $f->buildPhotoURL( $photo, "Large" );
  17.  
  18.             $html .= "<li>\n";
  19.             $html .= " <a href=\"" . $aux['f_href_l'] . "\" title=\"" . $aux['f_title'] . "\" rel=\"$set_id\"> <img src=\"" . $aux['f_src_s'] . "\"  /> </a>\n";
  20.             $html .= "</li>\n";
  21.  
  22.             unset( $aux );
  23.         }
  24. }//adicionada essa linha
RAW Paste Data