You are here

function theme_emaudio_zzz_custom_url_embedded_audio in Embedded Media Field 5

2 theme calls to theme_emaudio_zzz_custom_url_embedded_audio()
emaudio_zzz_custom_url_audio in contrib/emaudio/providers/zzz_custom_url.inc
emaudio_zzz_custom_url_preview in contrib/emaudio/providers/zzz_custom_url.inc

File

contrib/emaudio/providers/zzz_custom_url.inc, line 103

Code

function theme_emaudio_zzz_custom_url_embedded_audio($type, $url, $width, $height, $autoplay = false, $field = NULL, $item = NULL, $node = NULL, $options = array()) {
  static $count;
  if ($url && (valid_url($url) || valid_url($url, TRUE))) {
    $count++;
    $title = $options['title'] ? $options['title'] : t('Download audio');
    $class = $options['class'] ? $options['class'] : 'emaudio-zzz-custom-url-embedded-audio media';
    $id = $options['id'] ? $options['id'] : "{$class}-{$count}";
    switch ($type) {
      case 'mp3':
      case 'wav':
      case 'rm':
        return l($title, $url, array(
          'id' => $id,
          'class' => $class,
        ));
    }
  }
}