You are here

function theme_swftools_soundmanager2_mp3_button in SWF Tools 6.3

Implements button player.

File

soundmanager2/swftools_soundmanager2.module, line 283
Enables SWF Tools support for SoundManager 2.

Code

function theme_swftools_soundmanager2_mp3_button($file, $data) {
  $html = '';
  if (!$data['othervars']['playlist_data']) {
    $html .= '<p>' . t('Play') . '<a href="' . $data['othervars']['file_url'] . '" class="sm2_button">' . t('Play') . '</a></p>';
  }
  else {
    foreach ($data['othervars']['playlist_data']['playlist'] as $play) {
      $html .= '<p>' . $play['title'] . '<a href="' . $play['fileurl'] . '" class="sm2_button">' . t('{Play') . ' ' . $play['title'] . '</a></p>';
    }
  }
  return $html;
}