media-youtube-video.tpl.php in Media: YouTube 7.3
Same filename and directory in other branches
media_youtube/themes/media-youtube-video.tpl.php
Template file for theme('media_youtube_video').
Variables available: $uri - The media uri for the YouTube video (e.g., youtube://v/xsy7x8c9). $video_id - The unique identifier of the YouTube video (e.g., xsy7x8c9). $id - The file entity ID (fid). $url - The full url including query options for the Youtube iframe. $options - An array containing the Media Youtube formatter options. $api_id_attribute - An id attribute if the Javascript API is enabled; otherwise NULL. $width - The width value set in Media: Youtube file display options. $height - The height value set in Media: Youtube file display options. $title - The Media: YouTube file's title. $alternative_content - Text to display for browsers that don't support iframes.
2 theme calls to media-youtube-video.tpl.php
- MediaInternetYouTubeTestCase::testYouTubeFileHandling in ./
media_youtube.test - Tests YouTube file handler.
- media_youtube_file_formatter_video_view in includes/
media_youtube.formatters.inc - Implements hook_file_formatter_FORMATTER_view().
File
themes/media-youtube-video.tpl.phpView source
<?php
/**
* @file media_youtube/themes/media-youtube-video.tpl.php
*
* Template file for theme('media_youtube_video').
*
* Variables available:
* $uri - The media uri for the YouTube video (e.g., youtube://v/xsy7x8c9).
* $video_id - The unique identifier of the YouTube video (e.g., xsy7x8c9).
* $id - The file entity ID (fid).
* $url - The full url including query options for the Youtube iframe.
* $options - An array containing the Media Youtube formatter options.
* $api_id_attribute - An id attribute if the Javascript API is enabled;
* otherwise NULL.
* $width - The width value set in Media: Youtube file display options.
* $height - The height value set in Media: Youtube file display options.
* $title - The Media: YouTube file's title.
* $alternative_content - Text to display for browsers that don't support
* iframes.
*
*/
?>
<div class="<?php
print $classes;
?> media-youtube-<?php
print $id;
?>">
<iframe class="media-youtube-player" <?php
print $api_id_attribute;
?>width="<?php
print $width;
?>" height="<?php
print $height;
?>" title="<?php
print $title;
?>" src="<?php
print $url;
?>" name="<?php
print $title;
?>" frameborder="0" allowfullscreen><?php
print $alternative_content;
?></iframe>
</div>