media-youtube-video.tpl.php 910 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @file media_youtube/includes/themes/media-youtube-video.tpl.php
  4. *
  5. * Template file for theme('media_youtube_video').
  6. *
  7. * Variables available:
  8. * $uri - The uri to the YouTube video, such as youtube://v/xsy7x8c9.
  9. * $video_id - The unique identifier of the YouTube video.
  10. * $width - The width to render.
  11. * $height - The height to render.
  12. * $autoplay - If TRUE, then start the player automatically when displaying.
  13. * $fullscreen - Whether to allow fullscreen playback.
  14. *
  15. * Note that we set the width & height of the outer wrapper manually so that
  16. * the JS will respect that when resizing later.
  17. */
  18. ?>
  19. <div class="media-youtube-outer-wrapper" id="media-youtube-<?php print $id; ?>" style="width: <?php print $width; ?>px; height: <?php print $height; ?>px;">
  20. <div class="media-youtube-preview-wrapper" id="<?php print $wrapper_id; ?>">
  21. <?php print $output; ?>
  22. </div>
  23. </div>