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

Commit 36d67ad4 authored by tobyink's avatar tobyink

More work on group pages

parent d222462a
{include file='header.tpl'}
<h2 property="dc:title">{$me->name|escape:'html':'UTF-8'}'s groups</h2>
{include file='maxiprofile.tpl'}
<ul about="{$me->id}" rev="foaf:member" class="grouplist">
{foreach from=$groups item=g}
<li about="{$g->id}" typeof="foaf:Group">
<div class="group vcard">
<div class="avatar" rel="foaf:depiction">
<img src="{$g->getAvatar()|escape:'html':'UTF-8'}" alt="avatar" class="photo" width="64" height="64" />
</div>
<dl>
<dt>
<span class="fn" property="foaf:name">{$g->fullname|escape:'html':'UTF-8'}</span>
(<span class="nickname" property="foaf:nick">{$g->name|escape:'html':'UTF-8'}</span>)
</dt>
<dd>{if $g->homepage}<a class="url" rel="foaf:page" href="{$g->homepage|escape:'html':'UTF-8'}">{$g->homepage|escape:'html':'UTF-8'}</a>{/if}</dd>
<dd class="note" property="dc:abstract">{$g->bio|escape:'html':'UTF-8'}</dd>
<dd><a rel="foaf:homepage" rev="foaf:primaryTopic" property="dc:description" href="{$g->getURL()|escape:'html':'UTF-8'}">{$g->count} members</a></dd>
</dl>
<hr style="border: 1px solid transparent; clear: both;" />
</div>
</li>
{/foreach}
</ul>
<!-- Column break -->
</div></div><div class="yui-u" id="sidebar"><div style="padding: 10px;">
<h3>{$me->name}'s top artists</h3>
<ul class="tagcloud" about="{$me->id}">
{section name=i loop=$user_tagcloud}
<li style="font-size:{$user_tagcloud[i].size}"><a
href="{$user_tagcloud[i].pageurl|escape:'html':'UTF-8'}" rel="{if $user_tagcloud[i].size|substr:-5 ==
'large'}foaf:interest {/if}tag">{$user_tagcloud[i].artist|escape:"html":"UTF-8"}</a></li>
{/section}
</ul>
<div id="adbard">
<!--Ad Bard advertisement snippet, begin -->
<script type='text/javascript'>
var ab_h = '4bcaab930d3bdfded68fd7be730d7db4';
var ab_s = '55fd9cde6d855a75f9ca43d854272f6b';
</script>
<script type='text/javascript' src='http://cdn1.adbard.net/js/ab1.js'></script>
<!--Ad Bard, end -->
</div>
{include file='footer.tpl'}
......@@ -39,8 +39,6 @@ $user = new User($_GET['user']);
if(isset($user->name)) {
$smarty->assign('geo', Server::getLocationDetails($user->location_uri));
$smarty->assign('userlevel', $user->userlevel);
$smarty->assign('avatar', $user->getAvatar());
$aUserTagCloud = TagCloud::GenerateTagCloud('Scrobbles', 'artist', 40, $user->name);
if (!PEAR::isError ($aUserTagCloud)) {
$smarty->assign('user_tagcloud',$aUserTagCloud);
......@@ -52,12 +50,6 @@ if(isset($user->name)) {
$smarty->assign('groups', Group::groupList($user));
$smarty->assign('extra_head_links', array(
array(
'rel'=>'alternate',
'type' => 'application/rss+xml' ,
'title' => 'RSS 1.0 Feed (Recent plays)',
'href' => $base_url.'/rdf.php?fmt=rss&page='.htmlentities(str_replace($base_url, '', $user->getURL('recent-tracks')))
),
array(
'rel' => 'meta',
'type' => 'application/rdf+xml' ,
......@@ -66,10 +58,6 @@ if(isset($user->name)) {
)
));
header('Content-Type: text/plain');
print_r(Group::groupList($user));
exit;
$smarty->display('user-groups.tpl');
} else {
$smarty->assign('error', 'User not found');
......
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