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

profile.tpl 3.64 KB
Newer Older
tonyb486's avatar
tonyb486 committed
1 2
{include file='header.tpl'}

tobyink's avatar
tobyink committed
3
<h2 property="dc:title">{$user}'{if $user|substr:-1 != 's'}s{/if} profile</h2>
Daniel Watkins's avatar
Daniel Watkins committed
4
<div about="{$id}" typeof="foaf:Agent" class="user vcard">
5

6
	<div class="avatar" rel="foaf:depiction">
Daniel Watkins's avatar
Daniel Watkins committed
7
		<!-- Avatar placeholder  -->
8
		<img src="{$avatar|htmlentities}" alt="avatar" class="photo" />
Daniel Watkins's avatar
Daniel Watkins committed
9
	</div>
10 11 12
	
	<dl>
		<dt>
13
			<span class="fn" property="foaf:name">{$fullname|utf8_encode}</span>
14 15 16 17
			<span rel="foaf:holdsAccount" rev="sioc:account_of">
				<span about="{$acctid}" typeof="sioc:User">
					(<span class="nickname" property="foaf:accountName">{$user}</span>)
					<span rel="foaf:accountServiceHomepage" resource="{$base_url}"></span>
18
					<span rel="foaf:accountHomepage" rev="foaf:topic" resource=""></span>
19
				</span>
tobyink's avatar
tobyink committed
20
			</span>
21 22 23
		</dt>
		{if $homepage}
		<dd>
tobyink's avatar
tobyink committed
24
			<a href="{$homepage}" rel="me foaf:homepage" rev="foaf:primaryTopic" class="url">{$homepage}</a>
25 26 27 28 29 30 31
		</dd>
		{/if}
		<dd rel="foaf:based_near">
			<span class="label" property="rdfs:label">{$location}</span>
		</dd>
		<dd class="note" property="bio:olb">{$bio}</dd>
	</dl>
mattl's avatar
mattl committed
32

33
	<hr style="border: 1px solid transparent; clear: both;" rel="foaf:page" rev="foaf:primaryTopic" resource="" />
mattl's avatar
mattl committed
34

35
</div>
tobyink's avatar
tobyink committed
36

37 38 39 40 41 42 43 44 45 46 47
{if $nowplaying|@count > 0}
<h3>Now Playing:</h3>
<!-- We should try to make this list work like the gobbles list. -->
<dl class='now-playing'>
    {section name=i loop=$nowplaying}
    <dt class='track-name'>{$nowplaying[i].track}</dt>
    <dd>by <span class='artist-name'><a href='{$nowplaying[i].artisturl}'>{$nowplaying[i].artist}</a></span></dd>
    <dd>with <span class='gobbler'>{$nowplaying[i].clientstr}</span></dd>
    {/section}
</dl>
{/if}
clint's avatar
clint committed
48

49
<h3>Latest {$scrobbles|@count} Plays:</h3>
tobyink's avatar
tobyink committed
50

51 52
<ul class="gobbles" about="{$id}" rev="gob:user">
{section name=i loop=$scrobbles}
tobyink's avatar
tobyink committed
53

54 55 56
	<li about="{$scrobbles[i].id}" typeof="gob:ScrobbleEvent" rel="gob:track_played">
		<div about="{$scrobbles[i].id_track}" typeof="mo:Track" class="haudio">
			<div rev="mo:track">
tobyink's avatar
tobyink committed
57
				<div about="{$scrobbles[i].id_album}" typeof="mo:Record"{if $scrobbles[i].album} property="dc:title" content="{$scrobbles[i].album}"{/if}>
tobyink's avatar
tobyink committed
58
					{if $scrobbles[i].albumurl}<a rel="foaf:page" href="{$scrobbles[i].albumurl}">{/if}
tobyink's avatar
tobyink committed
59
						<span{if $scrobbles[i].album_image != '/i/qm50.png'} rel="foaf:depiction"{/if}{if $scrobbles[i].albumurl} about="{$scrobbles[i].id_album}"{/if}>
tobyink's avatar
tobyink committed
60 61 62
							<img height="50" width="50" src="{$scrobbles[i].album_image}" class="albumart{if $scrobbles[i].album_image != '/i/qm50.png'} photo{/if}" {if $scrobbles[i].album}title="{$scrobbles[i].album}" alt="Album: {$scrobbles[i].album}"{else}alt="Unknown album"{/if}  />
						</span>
					{if $scrobbles[i].albumurl}</a>{/if}
63
				</div>
tobyink's avatar
tobyink committed
64
			</div>
65 66 67 68 69 70 71 72 73 74 75
			<div rel="foaf:maker" class="contributor vcard">
				<a about="{$scrobbles[i].id_artist}" typeof="mo:MusicArtist" property="foaf:name" rel="foaf:page"
					class="fn url" href="{$scrobbles[i].artisturl}"
					>{$scrobbles[i].artist}</a>
			</div>
			<div><a class="fn" property="dc:title" rel="foaf:page" href="{$scrobbles[i].trackurl}">{$scrobbles[i].track}</a></div>
			<small about="{$scrobbles[i].id}" property="dc:date" content="{$scrobbles[i].timeiso}" datatype="xsd:dateTime">{$scrobbles[i].timehuman}</small>
		</div>
	</li>
{/section}
</ul>
76

77
<!-- Column break -->
78 79 80 81 82
</div></div><div class="yui-u" id="sidebar"><div style="padding: 10px;">

<h3>{$user}'{if $user|substr:-1 != 's'}s{/if} top artists</h3>
<ul class="tagcloud" about="{$id}">
	{section name=i loop=$user_tagcloud}
jurgbohn's avatar
jurgbohn committed
83
	<li style="font-size:{$user_tagcloud[i].size}"><a
clint's avatar
clint committed
84
	href="{$user_tagcloud[i].pageurl}" rel="{if $user_tagcloud[i].size|substr:-5 ==
jurgbohn's avatar
jurgbohn committed
85
	'large'}foaf:interest {/if}tag">{$user_tagcloud[i].artist|escape:"html":"UTF-8"}</a></li>
86
	{/section}
tobyink's avatar
tobyink committed
87 88
</ul>

tonyb486's avatar
tonyb486 committed
89
{include file='footer.tpl'}