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

Commit 4e1d4ee9 authored by fauno's avatar fauno

fix

parent fab35aeb
......@@ -32,7 +32,7 @@ if(!isset($_GET['user']) && $logged_in == false) {
}
$user = new User($_GET['user']);
$tagcloud = new TagCloud('Scrobbles', 'artist', 40, $_GET['user']);
$user_tagcloud = new TagCloud('Scrobbles', 'artist', 40, $_GET['user']);
if(isset($user->name)) {
$smarty->assign('user', $user->name);
......@@ -45,7 +45,7 @@ if(isset($user->name)) {
$smarty->assign('userlevel', $user->userlevel);
$smarty->assign('avatar', $user->getAvatar());
$smarty->assign('nowplaying', $user->getNowPlaying(10));
$smarty->assign('tagcloud', $tagcloud->tagcloud);
$smarty->assign('user_tagcloud', $user_tagcloud->tagcloud);
$smarty->assign('profile', true);
$smarty->display('profile.tpl');
} else {
......@@ -54,6 +54,6 @@ if(isset($user->name)) {
$smarty->display('error.tpl');
}
$tagcloud->__destruct();
$user_tagcloud->__destruct();
?>
......@@ -5,7 +5,7 @@
<h3>Explore popular artists</h3>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/artist/{$tagcloud[i].artist|urlencode}' rel='tag'>{$tagcloud[i].artist}</a></li>
<li style='font-size:{$tagcloud[i].size}'><a href='/artist/{$tagcloud[i].artist|urlencode}' title='This artist was played {$tagcloud[i].count} times' rel='tag'>{$tagcloud[i].artist}</a></li>
{/section}
</ul>
</div>
......
......@@ -51,8 +51,8 @@
<div style="padding: 10px;">
<h3>User's favorite artists</h3>
<ul class="tagcloud">
{section name=i loop=$tagcloud}
<li style='font-size:{$tagcloud[i].size}'><a href='/artist/{$tagcloud[i].artist|urlencode}' rel='tag'>{$tagcloud[i].artist}</a></li>
{section name=i loop=$user_tagcloud}
<li style='font-size:{$user_tagcloud[i].size}'><a href='/artist/{$user_tagcloud[i].artist|urlencode}' rel='tag'>{$user_tagcloud[i].artist}</a></li>
{/section}
</ul>
{include file='footer.tpl'}
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