popsu-d7/sites/all/modules/media_youtube/includes/themes/media-youtube-video.tpl.php
Bachir Soussi Chiadmi 1bc61b12ad first import
2015-04-08 11:40:19 +02:00

25 lines
910 B
PHP

<?php
/**
* @file media_youtube/includes/themes/media-youtube-video.tpl.php
*
* Template file for theme('media_youtube_video').
*
* Variables available:
* $uri - The uri to the YouTube video, such as youtube://v/xsy7x8c9.
* $video_id - The unique identifier of the YouTube video.
* $width - The width to render.
* $height - The height to render.
* $autoplay - If TRUE, then start the player automatically when displaying.
* $fullscreen - Whether to allow fullscreen playback.
*
* Note that we set the width & height of the outer wrapper manually so that
* the JS will respect that when resizing later.
*/
?>
<div class="media-youtube-outer-wrapper" id="media-youtube-<?php print $id; ?>" style="width: <?php print $width; ?>px; height: <?php print $height; ?>px;">
<div class="media-youtube-preview-wrapper" id="<?php print $wrapper_id; ?>">
<?php print $output; ?>
</div>
</div>