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

Commit 66fee06a authored by tobyink's avatar tobyink

RDFa in header; XHTML validity fixes for artist page.

parent efd8bbc2
......@@ -2,26 +2,32 @@
<div about="{$id}" typeof="mo:MusicalArtist">
<h2 property="foaf:name" rel="foaf:page" rev="foaf:primaryTopic" resource="">{$name}</h2>
{if $bio_summary}
<div id="bio" property="bio:olb" datatype="">{$bio_summary}</div>
{/if}
<ul id="albums" class="listcloud" rel="foaf:made" rev="foaf:maker">
{section name=i loop=$albums}
<li about="{$albums[i]->id}" property="dc:title" content="{$albums[i]->name}">
<dl>
<dt><a rel="foaf:page" href="{$albums[i]->getURL()}">
<span{if $albums[i]->getAlbumArt() != '/i/qm50.png'} about="{$albums[i]->id}" rel="foaf:depiction"{/if}><img src="{$albums[i]->getAlbumArt()}" alt="{$albums[i]->name}" width="160" /></span></a></dt>
<dd>{$albums[i]->getPlayCount()} plays</dd>
</dl>
</li>
{/section}
</ul>
<h2 property="foaf:name" rel="foaf:page" rev="foaf:primaryTopic" resource="">{$name}</h2>
{if $bio_summary}
<div id="bio" property="bio:olb" datatype="">{$bio_summary}</div>
{/if}
<ul id="albums" class="listcloud" rel="foaf:made" rev="foaf:maker">
{section name=i loop=$albums}
<li about="{$albums[i]->id}" property="dc:title" content="{$albums[i]->name|htmlentities}">
<dl>
<dt>
<a rel="foaf:page" href="{$albums[i]->getURL()}">
<span{if $albums[i]->getAlbumArt() != '/i/qm50.png'} about="{$albums[i]->id}" rel="foaf:depiction"{/if}>
<img src="{$albums[i]->getAlbumArt()}" alt="Album: {$albums[i]->name}|htmlentities" title="{$albums[i]->name}|htmlentities" width="160" />
</span>
</a>
</dt>
<dd>{$albums[i]->getPlayCount()} plays</dd>
</dl>
</li>
{/section}
</ul>
</div>
<div class="cleaner">&nbsp;</div>
{include file='footer.tpl'}
......
......@@ -28,9 +28,11 @@
<body typeof="foaf:Document">
<div id="doc2" class="yui-t7">
<div id="hd" role="navigation" class='vcard'><h1 class='fn org'><a href="{$base_url}" class='url'>Libre.fm</a></h1>
{include file='menu.tpl'}
<div id="hd" role="navigation">
<h1 rel="dc:publisher" class="vcard"><a property="foaf:name" rel="foaf:homepage" href="{$base_url}" class="fn org url">Libre.fm</a></h1>
{include file='menu.tpl'}
</div>
<div id="bd" role="main">
<div id="coolio">
{if ($logged_in)}
......
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