function theme_sm2_audio_ui360_node_player in SoundManager2 6.2
File
- sm2_audio/
sm2_audio.module, line 36
Code
function theme_sm2_audio_ui360_node_player($node, $options = array()) {
// make sure it's compatible with the flash player
//if (!audio_is_flash_playable($node)) {
//return NULL;
//}
if (!module_exists('soundmanager2')) {
return NULL;
}
require_once drupal_get_path('module', 'soundmanager2') . '/players/ui360.inc';
$options['song_url'] = check_url($node->url_play);
$options['song_title'] = check_plain($node->audio_tags['title']);
$enlace = $options['song_url'] . '/' . $node->audio['file']->filename;
$titulo = $options['song_title'];
$output = <<<EOT
<div class="ui360">
<a href="{<span class="php-variable">$enlace</span>}">{<span class="php-variable">$titulo</span>}</a>
</div>
EOT;
return $output;
}