Thursday 23 August 2007 6:38:55 pm
Wee, my first contribution is online: http://ez.no/community/contribs/template_plugins/ezaudioscrobbler It's an implementation of the AudioScrobbler/last.fm web services that allow you to display data from peoples last.fm accounts, example: {cache-block keys='last.fm' expiry=600}
{def $recent_tracks=fetch(audioscrobbler, recent_tracks, hash(user, $user))}
<h2>{'Recent tracks for %user'|i18n('design/audioscrobbler', '', hash('%user', $user))}
<ol>
{foreach $recent_tracks as $track}
<li>
<a href={$track.artist.url|ezurl}>{$track.artist.name}</a> -
<a href={$track.url|ezurl}>{$track.name}</a>
</li>
{/foreach}
</ol>
{/cache-block}
Seeing as this is my first contribution feedback on any part of it is very welcome.
|