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

Commit ad9518a4 authored by Jonas Haraldsson's avatar Jonas Haraldsson

Change user-profile to use new tagcloud function

parent 163137cb
......@@ -32,7 +32,7 @@
<h3 style='text-align: center; clear: left;'>{t name=$me->name}Free artists that %1 loves{/t}</h3>
<ul class="tagcloud">
{section name=i loop=$lovedArtists}
<li style='font-size:{$lovedArtists[i].size}'><a href='{$lovedArtists[i].url}'>{$lovedArtists[i].artist}</a></li>
<li style='font-size:{$lovedArtists[i].size}'><a href='{$lovedArtists[i].pageurl}'>{$lovedArtists[i].name}</a></li>
......@@ -53,7 +53,7 @@ if (isset($user->name)) {
if ($user->hasLoved()) {
$recommendedArtists = $user->getRecommended(10);
$smarty->assign('recommendedArtists', $recommendedArtists);
$lovedArtists = $user->getLovedArtists(10);
$lovedArtists = TagCloud::generateTagCloud('loved', 'artist', 10, 'userid', $user->uniqueid);
$smarty->assign('lovedArtists', $lovedArtists);
$smarty->assign('isme', ($this_user->name == $user->name));
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