Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
Added streamlined example
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bean committed Sep 5, 2010
1 parent 1c608d4 commit babc63d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples.php
Expand Up @@ -57,4 +57,10 @@
# echo '<a href="'.$shoturl.'"><img src="'.$image.'" alt="'.$title.'" title="'.$title.'" /></a>';
}
++$i;
}

# Streamlined version of the above example if we wanted two shots only...
$shots = $player->shots(array('per_page' => 2));
foreach ($shots->shots as $shot) {
echo sprintf('<a href="%s"><img src="%s" alt="%s" /></a>', $shot->url, $shot->image_teaser_url, $shot->title);
}

0 comments on commit babc63d

Please sign in to comment.