root / htmltest / sites / all / modules / media_youtube / themes / media-youtube-video.tpl.php @ dd54aff9
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * @file media_youtube/themes/media-youtube-video.tpl.php
|
||
5 | *
|
||
6 | * 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 | * $title - The Media: YouTube file's title.
|
||
19 | * $alternative_content - Text to display for browsers that don't support
|
||
20 | * iframes.
|
||
21 | *
|
||
22 | */
|
||
23 | |||
24 | ?>
|
||
25 | <div class="<?php print $classes; ?> media-youtube-<?php print $id; ?>"> |
||
26 | <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; ?>" frameborder="0" allowfullscreen><?php print $alternative_content; ?></iframe> |
||
27 | </div> |