function template_preprocess_media_vimeo_universal in Media: Vimeo 6
Display the video in an iFrame with HTML5.
File
- themes/
media_vimeo.theme.inc, line 49 - media_vimeo/themes/media_vimeo.theme.inc Theme functions for Media: Vimeo.
Code
function template_preprocess_media_vimeo_universal(&$variables) {
_media_vimeo_options($variables);
if ($variables['video_code']) {
$variables['query'] = isset($variables['query']) ? $variables['query'] : array();
foreach (array(
'fullscreen',
'show_title',
'show_byline',
'show_portrait',
'color',
'autoplay',
) as $key) {
if (isset($variables[$key])) {
$variables['query'][$key] = $variables[$key];
}
}
$variables['iframe_url'] = url('http://player.vimeo.com/video/' . $variables['video_code'], array(
'query' => $variables['query'],
));
}
}