Project

General

Profile

Paste
Download (1.58 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / media_youtube / themes / media-youtube-video.legacy-example.tpl.php @ 70a4c29b

1
<?php
2

    
3
/**
4
 * @file media_youtube/themes/media-youtube-video-legacy.tpl.php
5
 *
6
 * Legacy markup template file for theme('media_youtube_video').
7
 *
8
 * Variables available:
9
 *  $uri - The media uri for the YouTube video (e.g., youtube://v/xsy7x8c9).
10
 *  $video_id - The unique identifier of the YouTube video (e.g., xsy7x8c9).
11
 *  $id - The file entity ID (fid).
12
 *  $url - The full url including query options for the Youtube iframe.
13
 *  $options - An array containing the Media Youtube formatter options.
14
 *  $api_id_attribute - An id attribute if the Javascript API is enabled;
15
 *  otherwise NULL.
16
 *  $width - The width value set in Media: Youtube file display options.
17
 *  $height - The height value set in Media: Youtube file display options.
18
 *
19
 * IMPORTANT: This file is provided to ease the upgrade path from Media:
20
 *  YouTube 7.x-1.x and 7.x-2.0-alpha2 versions by maintaining the legacy
21
 *  7.x-1.x markup. The markup has been simplified and improved in the 2.0
22
 *  and 2.x-dev versions of media-youtube-video.tpl.php. It is recommended
23
 *  that you revise any css or javascript that requires the old markup and
24
 *  then delete this file.
25
 */
26

    
27
?>
28
<div class="media-youtube-outer-wrapper" id="media-youtube-<?php print $id; ?>" width="<?php print $width; ?>" height="<?php print $height; ?>">
29
  <div class="media-youtube-preview-wrapper" id="<?php print $video_id . "_" . $id; ?>">
30
    <iframe class="media-youtube-player" <?php print $api_id_attribute; ?>width="<?php print $width; ?>" height="<?php print $height; ?>" src="<?php print $url; ?>" frameborder="0" allowfullscreen></iframe>
31
  </div>
32
</div>