We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8b20c72e authored by clint's avatar clint

urls on the track page

parent 707f4e9c
......@@ -4,8 +4,8 @@
{include file='player.tpl'}<br />
<b>Artist: {$track->artist_name}</b><br />
<b>Album: {$track->album_name}</b><br />
<b>Artist: <a href="{$artisturl}">{$track->artist_name}</a></b><br />
<b>Album: <a href="{$albumurl}">{$track->album_name}</a></b><br />
<br />
<a href="{$track->licenseurl}"><img src="{$base_url}/themes/librefm/images/licenses/{$track->license}.png" /></a>
......@@ -27,7 +27,10 @@ require_once('data/TagCloud.php');
$track = new Track(urldecode($_GET['track']), urldecode($_GET['artist']));
$smarty->assign("track", $track);
$smarty->assign("albumurl", getAlbumURL($track->artist, $track->album));
$smarty->assign("artisturl", getArtist($track->artist));
// no idea how this would be track-relevant
$aTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment