function theme_emvideo_vimeo_flash in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/providers/vimeo.inc \theme_emvideo_vimeo_flash()
the embedded flash displaying the Vimeo video
2 theme calls to theme_emvideo_vimeo_flash()
- emvideo_vimeo_preview in contrib/
emvideo/ providers/ vimeo.inc - hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
- emvideo_vimeo_video in contrib/
emvideo/ providers/ vimeo.inc - hook emvideo_PROVIDER_video this actually displays the full/normal-sized video we want, usually on the default page view
File
- contrib/
emvideo/ providers/ vimeo.inc, line 147 - Provide support for the Vimeo provider to the emfield.module.
Code
function theme_emvideo_vimeo_flash($embed, $width, $height, $autoplay) {
$output = '';
if ($embed) {
$fullscreen = variable_get('emvideo_vimeo_full_screen', 1);
$on_screen_info = variable_get('emvideo_vimeo_on_screen_info', array(
'portrait',
'title',
'byline',
));
$show_portrait = $on_screen_info['portrait'] ? 1 : 0;
$show_title = $on_screen_info['title'] ? 1 : 0;
$show_byline = $on_screen_info['byline'] ? 1 : 0;
if (variable_get('emvideo_vimeo_color_override', FALSE)) {
$color = emvideo_vimeo_convert_color(variable_get('emvideo_vimeo_color', EMVIDEO_VIMEO_COLOR_DEFAULT));
}
$output = '<object type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '" data="http://www.vimeo.com/moogaloop.swf?clip_id=' . $embed . '&server=www.vimeo.com&fullscreen=' . $fullscreen . '&show_title=' . $show_title . '&show_byline=' . $show_byline . '&show_portrait=' . $show_portrait . '&color=' . $color . '&autoplay=' . $autoplay . '">';
$output .= '<param name="quality" value="best" />';
$output .= '<param name="wmode" value="transparent" />';
$output .= '<param name="allowfullscreen" value="' . ($fullscreen ? 'true' : 'false') . '" />';
$output .= '<param name="scale" value="showAll" />';
$output .= '<param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=' . $embed . '&server=www.vimeo.com&fullscreen=' . $fullscreen . '&show_title=' . $show_title . '&show_byline=' . $show_byline . '&show_portrait=' . $show_portrait . '&color=' . $color . '&autoplay=' . $autoplay . '" /></object>';
}
return $output;
}