function theme_video_cck_vimeo_flash in Embedded Media Field 5
the embedded flash displaying the Vimeo video
2 theme calls to theme_video_cck_vimeo_flash()
- video_cck_vimeo_preview in contrib/
video_cck/ providers/ vimeo.inc - hook video_cck_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
- video_cck_vimeo_video in contrib/
video_cck/ providers/ vimeo.inc - hook video_cck_PROVIDER_video this actually displays the full/normal-sized video we want, usually on the default page view
File
- contrib/
video_cck/ providers/ vimeo.inc, line 141
Code
function theme_video_cck_vimeo_flash($embed, $width, $height, $autoplay) {
$output = '';
if ($embed) {
$fullscreen = variable_get('video_cck_vimeo_full_screen', 1);
$on_screen_info = variable_get('video_cck_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('video_cck_vimeo_color_override', FALSE)) {
$color = video_cck_vimeo_convert_color(variable_get('video_cck_vimeo_color', VIDEO_CCK_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;
}