You are here

function theme_video_filter_iframe in Video Filter 7.3

Same name and namespace in other branches
  1. 6.3 video_filter.module \theme_video_filter_iframe()

Function that outputs HTML5 compatible iFrame for codecs that support it.

1 theme call to theme_video_filter_iframe()
video_filter_iframe in ./video_filter.module
Wrapper that calls the theme function.

File

./video_filter.module, line 396

Code

function theme_video_filter_iframe($variables) {
  $video = $variables['video'];
  $classes = video_filter_get_classes($video);
  $attributes = '';
  if (!empty($video['attributes'])) {
    $attributes = drupal_attributes($video['attributes']);
  }
  $output = '<div class="video-filter"><iframe src="' . $video['source'] . '" width="' . $video['width'] . '" height="' . $video['height'] . '" class="' . implode(' ', $classes) . '" frameborder="0" allowfullscreen="true"' . $attributes . '></iframe></div>';
  return $output;
}