media-soundcloud-audio.tpl.php in Media: SoundCloud 7
media_soundcloud/includes/themes/media-soundcloud-audio.tpl.php
Template file for theme('media_soundcloud_audio').
Variables available: $uri - The uri to the SoundCloud audio, such as soundcloud://u/[user-name]/a/[song-name]. $user_name - The unique identifier of the SoundCloud user. $audio_name - The unique identifier of the SoundCloud audio song. $width - The width to render. $autoplay - If TRUE, then start the player automatically when displaying.
Note that we set the width of the outer wrapper manually so that the JS will respect that when resizing later.
3 theme calls to media-soundcloud-audio.tpl.php
- MediaSoundCloudStyles::audio in includes/
MediaSoundCloudStyles.inc - media_soundcloud_file_formatter_audio_view in includes/
media_soundcloud.formatters.inc - Implements hook_file_formatter_FORMATTER_view().
- theme_media_soundcloud_embed in includes/
themes/ media_soundcloud.theme.inc - @todo: get this working
File
includes/themes/media-soundcloud-audio.tpl.phpView source
<?php
/**
* @file media_soundcloud/includes/themes/media-soundcloud-audio.tpl.php
*
* Template file for theme('media_soundcloud_audio').
*
* Variables available:
* $uri - The uri to the SoundCloud audio, such as soundcloud://u/[user-name]/a/[song-name].
* $user_name - The unique identifier of the SoundCloud user.
* $audio_name - The unique identifier of the SoundCloud audio song.
* $width - The width to render.
* $autoplay - If TRUE, then start the player automatically when displaying.
*
* Note that we set the width of the outer wrapper manually so that
* the JS will respect that when resizing later.
*/
?>
<div class="media-soundcloud-outer-wrapper" id="media-soundcloud-<?php
print $id;
?>">
<div class="media-soundcloud-preview-wrapper" id="<?php
print $wrapper_id;
?>">
<?php
print $output;
?>
</div>
</div>