theme_audio_feeds_views_xspf($view, $nodes, $type)Theme function to handle the XSPF view
contributions/audio/contrib/feeds/audio_feeds.views.inc, line 21
<?php
function theme_audio_feeds_views_xspf($view, $nodes, $type) {
if (isset($_GET['xspf'])) {
return audio_feeds_views_prepare_xspf(views_get_title($view, $type), url($view->real_url, array('absolute' => true)), $nodes);
}
elseif (isset($_GET['m3u'])) {
return theme('audio_feeds_views_m3u', $view, $nodes, $type);
}
elseif (isset($_GET['pls'])) {
return theme('audio_feeds_views_pls', $view, $nodes, $type);
}
else {
$player = audio_get_players('name', variable_get('audio_feeds_default_player', 'xspf_extended'));
$query_string = array();
if ($_GET) {
foreach ($_GET as $key => $value) {
// filter out the standard drupal q string, leaving everything else
if ($key != 'q') {
$query_string[$key] = $value;
}
}
}
$filters = $query_string ? audio_feeds_query_string_encode($query_string) .'%26xspf' : 'xspf';
$playlist_url = url($view->real_url, array('query' => $filters, 'absolute' => TRUE));
$output = theme($player['theme_xspf'], $playlist_url);
$output .= theme('audio_feeds_views_links', $view, $query_string);
return $output;
}
}
?>