Commit 3a956eb7 authored by Jonas Haraldsson's avatar Jonas Haraldsson

Change track pages to use new tagcloud function

parent 6600b7af
......@@ -5,7 +5,7 @@
<h3 style='text-align: center; clear: left;'>{t}Popular tags other people used to describe this track{/t}</h3>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/tag/{$tagcloud[i].tag|urlencode}' title='{t uses=$tagcloud[i].count}This tag was used %1 times{/t}' rel='tag'>{$tagcloud[i].tag}</a></li>
<li style='font-size:{$tagcloud[i].size}'><a href='{$tagcloud[i].pageurl}' title='{t uses=$tagcloud[i].count}This tag was used %1 times{/t}' rel='tag'>{$tagcloud[i].name}</a></li>
{/section}
</ul>
{/if}
......
......@@ -64,7 +64,7 @@
<h3 style='text-align: center; clear: left;'>{t}Tags used to describe this track{/t}</h3>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/tag/{$tagcloud[i].tag|urlencode}' title='{t uses=$tagcloud[i].count}This tag was used %1 times{/t}' rel='tag'>{$tagcloud[i].tag}</a></li>
<li style='font-size:{$tagcloud[i].size}'><a href='{$tagcloud[i].pageurl}' title='{t uses=$tagcloud[i].count}This tag was used %1 times{/t}' rel='tag'>{$tagcloud[i].name}</a></li>
{/section}
</ul>
{/if}
......
......@@ -49,7 +49,7 @@ if($_POST['tag']) {
$smarty->assign('pagetitle', $track->artist_name . ' : ' . $track->name);
try {
$tagCloud = TagCloud::generateTagCloud('Tags', 'tag', 10, $track->name, 'track');
$tagCloud = TagCloud::generateTagCloud('tags', 'tag', 10, 'track', array($track->name, $track->artist_name));
$smarty->assign('tagcloud', $tagCloud);
} catch(Exception $e) {
$tagCloud = array();
......
......@@ -72,7 +72,7 @@ $smarty->assign('extra_head_links', array(
));
try {
$tagCloud = TagCloud::generateTagCloud('Tags', 'tag', 10, $track->name, 'track');
$tagCloud = TagCloud::generateTagCloud('tags', 'tag', 10, 'track', array($track->name, $track->artist_name));
} catch ( Exception $e) {
$tagCloud = array();
}
......
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