You are here

function theme_emvideo_flickr_sets_flash in Media: Flickr 6

The embedded flash displaying the flickr_sets video.

2 theme calls to theme_emvideo_flickr_sets_flash()
theme_emvideo_flickr_sets_flvmediaplayer in providers/emvideo/flickr_sets.inc
Outputs a custom player, such as JW Flash Player, and pulls in the XML feed for the videos.
theme_emvideo_flickr_sets_imagerotator in providers/emvideo/flickr_sets.inc
Outputs a custom player, such as JW Image Rotator, and pulls in the XML feed for the videos.

File

providers/emvideo/flickr_sets.inc, line 191
This include processes flickr.com photosets for use by emfield/emvideo.module.

Code

function theme_emvideo_flickr_sets_flash($item, $width, $height, $autoplay, $options = array()) {
  $output = '';
  if ($item['value']) {
    $value = check_plain($item['value']);
    $embed = drupal_urlencode('photos/' . $item['data']['owner'] . '/sets/' . $value);
    $output = <<<EMBED
<object type="application/x-shockwave-flash" data="https://www.flickr.com/apps/slideshow/show.swf?v=71649" width="{<span class="php-variable">$width</span>}" height="{<span class="php-variable">$height</span>}">
  <param name="movie" value="https://www.flickr.com/apps/slideshow/show.swf?v=71649" />
  <param name="flashvars" value="offsite=true&amp;lang=en-us&amp;page_show_url=/{<span class="php-variable">$embed</span>}/show/&amp;page_show_back_url=/{<span class="php-variable">$embed</span>}&amp;set_id={<span class="php-variable">$value</span>}&amp;jump_to=" />
  <param name="allowFullScreen" value="true" />
</object>
EMBED;
  }
  return $output;
}