[% IF query %] [%# Add the search query to each link if available %] [% searchquery = 'query=' _ query _ '&' %] [% END %] [% FILTER null %] [% pageicon = 'RADIO'; noSpacer = NOT streaminfo; %] [% 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 %][% PROCESS pageheader.html %]
[% 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 %]&sess=[% sess %]"[% END %] [% "PLAY" | string %]
[% WRAPPER addlink %]href="[% path %]?[% searchquery %]action=add&index=[% streaminfo.index %]&player=[% player | uri %]&sess=[% sess %]"[% END %] [% "ADD_TO_PLAYLIST" | string %]
[% END %] [% PROCESS xmlbrowser_details.html %] [% END %] [% IF search %]

[% END %] [%- odd = 1 %] [%- IF items.size -%] [%- # Maintain correct index values UNLESS path == 'trackinfo.html'; FOREACH item = items; item.index = index _ (start + loop.index); END; END; %] [% 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=[% item.index || index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&sess=[% sess %]')" [%- ELSE -%]href="[% path %]?action=favadd&index=[% item.index || index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&player=[% player | uri %]&sess=[% sess %]" [%- END -%] [% END %] [% ELSIF item.favorites == 2 %] [% WRAPPER favdellink noTarget=1 %] [%- IF useAJAX -%]href="javascript:void(0);" onClick="ajaxUpdate('[% path %]', 'action=favdel&index=[% item.index || index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&sess=[% sess %]')" [%- ELSE -%]href="[% path %]?action=favdel&index=[% item.index || index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&player=[% player | uri %]&sess=[% sess %]" [%- END -%] [% END %] [% END %] [% END %] [%- # treat track information specially IF path == 'trackinfo.html'; songInfoPlayLinks = BLOCK; PROCESS songInfoPlayLinks attributes = "&track.id=" _ sess item = details.mixers.0; END; PROCESS songinfo_header.html albumFirst = 1 itemobj = { id => sess, album => details.album.0, contributorRoles => details.contributors.keys, contributors => details.contributors, genres => details.genre, year => details.year.0.id } plugin_meta = { title => details.title.0.name }; image = undef; END %] [%- WRAPPER contentcontainer %] [% IF image %]

[% END %] [% IF itemsHaveAudio %] [%- BLOCK allcontrol -%] [% WRAPPER playlink %]href="[% path %]?[% searchquery %]action=playall&index=[% currentIndex %]&player=[% player | uri %]&sess=[% sess %]"[% END %] [% WRAPPER addlink %]href="[% path %]?[% searchquery %]action=addall&index=[% currentIndex %]&player=[% player | uri %]&sess=[% sess %]"[% END %] [%- END %] [%- WRAPPER contentitem leftcontrols = 'allcontrol' %] [% "ALL_SONGS" | string %] [%- END %] [%- odd = (not odd) %] [% END %] [%- FOREACH item = items %] [% lctype = item.web.group | lower; IF details.${ lctype } || details.contributors.${item.web.group}; NEXT; END %] [%- BLOCK gencontrol -%] [% IF item.type == 'audio' || item.type == 'playlist' || item.enclosure || item.play %] [% WRAPPER playlink %]href="[% path %]?[% searchquery %]action=play[% IF item.type == 'playlist' %]all[% END %]&index=[% item.index || index _ (start + loop.index) %]&player=[% player | uri %]&sess=[% sess %]"[% END %] [% WRAPPER addlink %]href="[% path %]?[% searchquery %]action=add[% IF item.type == 'playlist' %]all[% END %]&index=[% item.index || index _ (start + loop.index) %]&player=[% player | uri %]&sess=[% sess %]"[% END %] [% ELSE %] [% PROCESS dummylink %] [% PROCESS dummylink %] [% END %] [%- END %] [% IF item.type == 'search' %] [% item.name || item.title %]

[% ELSE %] [% IF useAJAX %] [% END %] [%- WRAPPER contentitem leftcontrols = 'gencontrol' rightcontrols = 'favoritescontrol' %] [% IF item.web.type == 'htmltemplate' %] [% PROCESS $item.web.value %] [% ELSE %] [% IF item.weblink %] [% ELSIF item.type == 'redirect' %] [% IF item.web.url %] [% ELSE; NEXT %] [% END %] [% ELSIF item.type != 'text' %] [% END %] [% item.name || item.title || item.web.value %] [% IF item.weblink || item.type != 'text' %] [% END %] [% END %] [%- END %] [% IF useAJAX %][% 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 pagefooter.html %][% END %]