function theme_swftools_soundmanager2_mp3_links in SWF Tools 6.3
Implements inline mp3 links player.
File
- soundmanager2/
swftools_soundmanager2.module, line 258 - Enables SWF Tools support for SoundManager 2.
Code
function theme_swftools_soundmanager2_mp3_links($file, $data) {
$html = '<ul class="graphic">';
if (!$data['othervars']['playlist_data']) {
$html .= '<li><a href="' . $data['othervars']['file_url'] . '">Play</a></li>';
}
else {
foreach ($data['othervars']['playlist_data']['playlist'] as $play) {
$html .= '<li><a href="' . $play['fileurl'] . '">' . $play['title'] . '</a></li>';
}
}
$html .= '</ul>';
return $html;
}