1
0
mirror of https://github.com/danbee/neompc synced 2025-03-04 08:39:10 +00:00
neompc/templates/default/browselist_item.html
Dan Barber f4d0e75c24 Bunch of nice changes;
* Problems with / characters in artist names (eg, AC/DC).
* Added server config options to config.inc.php
* Files without title tags now display using the filename instead.
2008-01-08 14:46:35 +00:00

23 lines
2.4 KiB
HTML

{if $browselist_item.directory}
<li><a href="index.php?browse={$browselist_item.directory}"><img src="templates/{$template}/images/dir.gif" class="icon" /> {$browselist_item.directory_name|escape:'html'}</a></li>
{elseif $browselist_item.metaArtist}
<li><a href="index.php?browse={$browselist_item.path|escape:'url'}"><img src="templates/{$template}/images/artist.gif" class="icon" /> {$browselist_item.metaArtist|escape:'html'}</a></li>
{elseif $browselist_item.metaAlbum}
<li><a href="index.php?browse={$browselist_item.path|escape:'url'}"><img src="templates/{$template}/images/album.gif" class="icon" /> {$browselist_item.metaAlbum|escape:'html'}</a></li>
{elseif $browselist_item.Title}
{if $browselist_item.in_playlist}<li class="playing">{else}<li>{/if}<a href="{$browselist_add_link}{$browselist_item.file|escape:'url'}"><img src="templates/{$template}/images/add.gif" alt="Add" class="button" /></a><a href="{$browselist_play_link}{$browselist_item.file|escape:'url'}"><img src="templates/{$template}/images/play.gif" alt="Play" class="button" /></a><img src="templates/{$template}/images/note.gif" class="icon" /> {if $browselist_item.Title|escape:'html'}<span class="title">{$browselist_item.Title|escape:'html'}</span>{if $browselist_item.Artist && $show_extra_track_info}<br /><span class="artist">{$browselist_item.Artist|escape:'html'}</span> {if $browselist_item.Album}<span class="album">({$browselist_item.Album|escape:'html'})</span>{/if}{/if}{else}{$browselist_item.file_name|escape:'html'}{/if}</li>
{elseif $browselist_item.file}
{if $browselist_item.in_playlist}<li class="playing">{else}<li>{/if}<a href="{$browselist_add_link}{$browselist_item.file|escape:'url'}"><img src="templates/{$template}/images/add.gif" alt="Add" class="button" /></a><a href="{$browselist_play_link}{$browselist_item.file|escape:'url'}"><img src="templates/{$template}/images/play.gif" alt="Play" class="button" /></a><img src="templates/{$template}/images/note.gif" class="icon" /> {if $browselist_item.Title|escape:'html'}<span class="title">{$browselist_item.Title|escape:'html'}</span>{if $browselist_item.Artist && $show_extra_track_info}<br /><span class="artist">{$browselist_item.Artist|escape:'html'}</span> {if $browselist_item.Album}<span class="album">({$browselist_item.Album|escape:'html'})</span>{/if}{/if}{else}{$browselist_item.file_name|escape:'html'}{/if}</li>
{/if}