[% IF query %] [%# Add the search query to each link if available %] [% searchquery = 'query=' _ query _ '&' %] [% END %] [% FILTER null %] [% pageicon = 'RADIO'; noSpacer = NOT streaminfo; %] [% homeString = 'Home'; goHomeURI = '"' _ webroot _ 'home.html?player=' _ playerURI _ '"'; IF crumb; title = crumb.last.name || title; IF crumb.max > 0; item = crumb.max - 1; homeString = crumb.$item.name || homeString; goHomeURI = '"' _ path _ '?' _ searchquery _ 'player=' _ playerURI _ '&index=' _ crumb.$item.index _ '"'; END; END; %] [% pwd_list = []; FOREACH crumb IN crumb; crumbItem = BLOCK %] [% crumb.name %] [% END %] [% pwd_list.push(crumbItem) %] [% END %] [% END # filter -%] [% IF useAJAX %][% pageHeaderScripts = BLOCK %] [% END %][% END %] [% IF NOT ajaxUpdate %] [% IF (!title && pagetitle); title = pagetitle; END %] [%- PROCESS iHeaderVert.html thispage = thispage -%]
 
[% END %] [% IF msg %][% WRAPPER contentcontainer %] [% msg %] [% END %][% END %] [% IF streaminfo %] [% IF streaminfo.item.enclosure || streaminfo.item.url %]
[% WRAPPER playlink %]href="[% path %]?[% searchquery %]action=play&index=[% streaminfo.index %]&player=[% player | uri %]"[% END %] [% "PLAY_THIS_SONG" | string %]
[% WRAPPER addlink %]href="[% path %]?[% searchquery %]action=add&index=[% streaminfo.index %]&player=[% player | uri %]"[% END %] [% "ADD_THIS_SONG_TO_PLAYLIST" | string %]
[% END %] [% PROCESS xmlbrowser_details.html %] [% END %] [% IF search %]
[% "SEARCH" | string %]

[% END %] [% IF NOT ajaxUpdate %]
[% END %] [%- odd = 1 %] [%- IF items.size -%] [% IF hasPagebar %] [% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %]
[% PROCESS pagebar %] [% END %] [% BLOCK favoritescontrol %] [% IF item.favorites == 1 %] [% WRAPPER favaddlink noTarget=1 %] [%- IF useAJAX -%]href="javascript:void(0);" onClick="ajaxUpdate('[% path %]', 'action=favadd&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]')" [%- ELSE -%]href="[% path %]?action=favadd&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&player=[% player | uri %]" [%- END -%] [% END %] [% ELSIF item.favorites == 2 %] [% WRAPPER favdellink noTarget=1 %] [%- IF useAJAX -%]href="javascript:void(0);" onClick="ajaxUpdate('[% path %]', 'action=favdel&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]')" [%- ELSE -%]href="[% path %]?action=favdel&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&player=[% player | uri %]" [%- END -%] [% END %] [% END %] [% END %] [%- WRAPPER contentcontainer %] [% IF image %] [% END %] [% IF itemsHaveAudio %] [%- BLOCK allcontrol -%] [% WRAPPER addlink %]href="[% path %]?[% searchquery %]action=addall&index=[% currentIndex %]&player=[% player | uri %]"[% END %] [%- END %] [% textlink = path _ "?" _ searchquery _ "action=playall&index=" _ currentIndex _ "&player=" _ playerURI; target = ""; %] [%- WRAPPER contentitem leftcontrols = 'dummylink' rightcontrols = 'allcontrol' %] [% "ALL_SONGS" | string %] [%- END %] [%- odd = (not odd) %] [% END %] [%- FOREACH item = items %] [%- BLOCK gencontrol -%] [% IF item.type == 'audio' || item.type == 'playlist' || item.enclosure || item.play %] [% WRAPPER addlink %]href="[% path %]?[% searchquery %]action=add[% IF item.type == 'playlist' %]all[% END %]&index=[% index _ (start + loop.index) %]&player=[% player | uri %]"[% END %] [% ELSE %] [% PROCESS dummylink %] [% END %] [%- END %] [% IF item.type == 'search' %]
[% item.name || item.title %] [% "SEARCH" | string %]

[% ELSE %] [% IF item.type == 'audio' || item.type == 'playlist' || item.enclosure || item.play %] [% textlink = path _ "?" _ searchquery _ "action=play" %] [% IF item.type == 'playlist' %] [% textlink = textlink _ "all" %] [% END %] [% textlink = textlink _ "&index=" _ index _ (start + loop.index) _ "&player=" _ playerURI %] [% target = "" %] [% ELSE %] [% IF item.weblink; textlink = item.weblink; target = "_blank"; ELSIF item.type != 'text'; textlink = path _ "?" _ searchquery _ "index=" _ index _ (start + loop.index) _ "&player=" _ playerURI; target = ""; END %] [% END %] [%- WRAPPER contentitem rightcontrols = 'gencontrol' leftcontrols = 'favoritescontrol' %] [% item.name || item.title | truncate(48) %] [%- END %] [%- END %] [%- odd = (not odd) %] [%- END %] [%- END %] [% IF hasPagebar %] [% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %]
[% PROCESS pagebar %] [% END %] [%- END %] [% IF NOT ajaxUpdate %]
[% PROCESS iFooterVert.html selectedButton = 4 classFooter = " selected = 'true' class = 'toolbar' " %] [% END %]