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

Commit fab35aeb authored by fauno's avatar fauno

added tagcloud to footer.tpl

parent 4d13469a
......@@ -21,9 +21,12 @@
require_once('database.php');
require_once('templating.php');
require_once("data/sanitize.php");
require_once("data/Server.php");
require_once('data/sanitize.php');
require_once('data/Server.php');
require_once('data/TagCloud.php');
$tagcloud = new TagCloud('Scrobbles', 'artist');
$smarty->assign('tagcloud', $tagcloud->tagcloud);
$smarty->assign('recenttracks', Server::getRecentScrobbles(20));
$smarty->assign('nowplaying', Server::getNowPlaying(10));
$smarty->assign('welcome', true);
......
</div></div>
{if !$profile}
<div class="yui-u" id="sidebar">
<div style="padding: 10px;">
<h3>Explore popular artists</h3>
<ul class="tagcloud">
<li class="tc t1"><a href="#">They Might Be Giants</a></li>
<li class="tc t3"><a href="#">John Lennon</a></li>
<li class="tc t1"><a href="#">Half Man Half Biscuit</a></li>
<li class="tc t3"><a href="#">Explosions in the sky</a></li>
<li class="tc t1"><a href="#">Belle and Sebastian</a></li>
<li class="tc t2"><a href="#">nine inch nails</a></li>
<li class="tc t5"><a href="#">Pulp</a></li>
<li class="tc t1"><a href="#">Radiohead</a></li>
<li class="tc t6"><a href="#">Tom Lehrer</a></li>
<li class="tc t2"><a href="#">The Beatles</a></li>
<li class="tc t3"><a href="#">Dead Kennedys</a></li>
<li class="tc t4"><a href="#">Bishop Allen</a></li>
<li class="tc t2"><a href="#">The Orb</a></li>
<li class="tc t3"><a href="#">gorillaz</a></li>
<li class="tc t4"><a href="#">Carbon Based Lifeforms</a></li>
<li class="tc t5"><a href="#">Laura Cantrell</a></li>
<li class="tc t6"><a href="#">Jem</a></li>
<li class="tc t1"><a href="#">Solar Fields</a></li>
<li class="tc t4"><a href="#">billy talent</a></li>
<li class="tc t3"><a href="#">Blur</a></li>
</ul>
</div></div>
<div style="padding: 10px;">
<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>
{/section}
</ul>
</div>
</div>
{/if}
</div></div>
<div class="yui-g" id="artists">
......
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