function theme_emaudio_soundcloud_flash in Media: SoundCloud 6
The embedded flash displaying the SoundCloud audio.
2 theme calls to theme_emaudio_soundcloud_flash()
- emaudio_soundcloud_audio in providers/
soundcloud.inc - Implementation of hook_emaudio_PROVIDER_audio().
- emaudio_soundcloud_preview in providers/
soundcloud.inc - Implementation of hook_emaudio_PROVIDER_preview().
File
- providers/
soundcloud.inc, line 251 - This include processes Soundcloud audio files for use by emaudio.module.
Code
function theme_emaudio_soundcloud_flash($item, $embed, $width, $height, $autoplay, $preview = FALSE) {
$output = '';
if ($item['data']['emaudio_soundcloud_version'] >= 1) {
if ($item['data']['embed']) {
// Full embed code.
$output = $item['embed'];
}
else {
// SoundCloud ID: return the cached HTML.
if ($preview && isset($item['data']['preview'])) {
$output = $item['data']['preview'];
}
else {
$output = $item['data']['player'];
}
}
}
return $output;
}