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

Commit 624ce842 authored by tobyink's avatar tobyink

Add hCard and hAudio microformats.

parent 66fee06a
......@@ -2,24 +2,25 @@
<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}
<div class="vcard">
<h2 class="fn org" property="foaf:name" rel="foaf:page" rev="foaf:primaryTopic" resource="">{$name}</h2>
{if $bio_summary}
<div class="note" id="bio" property="bio:olb" datatype="">{$bio_summary}</div>
{/if}
</div>
<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}">
<li about="{$albums[i]->id}" property="dc:title" content="{$albums[i]->name|escape:'html'}" typeof="mo:Record" class="haudio">
<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" />
<img class="album photo" src="{$albums[i]->getAlbumArt()}" alt="{$albums[i]->name}|escape:'html'" title="{$albums[i]->name}|escape:'html'" width="160" />
</span>
</a>
</dt>
<dd>{$albums[i]->getPlayCount()} plays</dd>
<dd class="description">{$albums[i]->getPlayCount()} plays</dd>
</dl>
</li>
{/section}
......
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