sm2_plst_cck_audio_ui360.tpl.php in SoundManager2 6.2
File
sm2_plst_cck/sm2_plst_cck_audio_ui360.tpl.php
View source
<?php
require_once drupal_get_path('module', 'soundmanager2') . '/players/ui360.inc';
?>
<div class="sm2_plst_cck-outer">
<div>
<?php
if (isset($element[0]['#item']['nid'])) {
?>
<?php
$children = element_children($element);
foreach ($children as $key) {
$nid = $element[$key]['#item']['nid'];
$content = node_load($nid);
?>
<div class="ui360">
<? php
// $content->url_play .'/'. $content->audio['file']->filename ; // For make it playAdd this so that it sees an mp3 file
// url($content->audio['file']->filepath) ; // regular file
?>
<!-- For make it play, Add this so that it sees an mp3 file -->
<a href="<?php
print $content->url_play . '/' . $content->audio['file']->filename;
?>">
<?php
print $content->audio_tags['title'] ? $content->audio_tags['title'] : $content->audio['file']->filename;
?>
</a>
</div>
<?php
}
?>
<?php
}
?>
</div>