You are here

function theme_flickrfield_formatter_photoset_flickrcomslideshow in Flickr 6

Same name and namespace in other branches
  1. 7 field/flickrfield.module \theme_flickrfield_formatter_photoset_flickrcomslideshow()

Theme a Flickr photo set as an embedded Flickr.com slideshow (Flash).

File

field/flickrfield.module, line 395
Defines a Flickr field type.

Code

function theme_flickrfield_formatter_photoset_flickrcomslideshow($element) {
  require_once drupal_get_path('module', 'flickr') . '/flickr.inc';
  if (empty($element['#item']['flickrid'])) {
    return;
  }
  $set_id = $element['#item']['flickrid'];
  $info = flickr_photoset_get_info($set_id);
  $user_id = $info['owner'];
  return '<div class="flickr-photoset-slideshow">' . '<object type="application/x-shockwave-flash" data="https://www.flickr.com/apps/slideshow/show.swf?v=71649">
  <param name="movie" value="https://www.flickr.com/apps/slideshow/show.swf?v=71649" />
  <param name="allowFullScreen" value="true" />
  <param name="wmode" value="opaque" />
  <param name="flashvars" value="offsite=true&amp;lang=en-us&amp;page_show_url=/photos/' . $user_id . '/sets/' . $set_id . '/show/&amp;page_show_back_url=/photos/' . $user_id . '/sets/' . $set_id . '/&amp;set_id=' . $set_id . '" /></object>' . '</div>';
}