[% 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 | html %] [% END %] [% pwd_list.push(crumbItem) %] [% END %] [% END # filter -%] [% IF useAJAX %][% pageHeaderScripts = BLOCK %]
[% END %][% END %] [%- hasArtwork = 0; contentwrapper = 'contentitem'; container = 'contentcontainer'; UNLESS ajaxUpdate && ajaxUpdate >= 1; FOREACH item = items; IF item.image && item.type == 'text'; hasArtwork = 1; LAST; END; END; END; IF hasArtwork; container = 'gallerycontainer'; contentwrapper = 'galleryitem'; END; -%] [% IF NOT ajaxUpdate %][% PROCESS pageheader.html %]
[% END %] [% IF msg %][% WRAPPER $container %] [% 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 %] [% stringPLAY %]
[% 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 -%] [% 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 %] [% BLOCK editcmd %] href="[% webroot %]edit_playlist.html?player=[% playerURI %]&[% cmd %]=1&playlist_id=[% playlist_id %]&itempos=[% item.play_index %]" [% END %] [% BLOCK editcontrols %] [% IF loop.count > 0 || loop.last %] [% UNLESS useExtJS %] [%- WRAPPER moveuplink noTarget=1 %] [%- PROCESS editcmd cmd='up' %] [% END %] [%- WRAPPER movedownlink noTarget=1 %] [%- PROCESS editcmd cmd='down' %] [% END %] [% END %] [%- WRAPPER editlink noTarget=1 %] [%- PROCESS editcmd cmd='edit' %] [% END %] [%- WRAPPER removelink noTarget=1 %] [%- PROCESS editcmd cmd='delete' %] [% END %] [% END %] [% END %] [% BLOCK editform %] [%- IF item.remote %][% END %] [% END %] [% IF playlist_id %]

[% "NAME" | string %] |  |  | [% IF playlistTitle %] [% END %]
[%- IF warning == 'RENAME_WARNING' %] [% "CONFIRM_OVERWRITE" | string %] [%- END %] [%- IF warning == 'DELETE_WARNING' %] [% "CONFIRM_DELETE" | string %] [%- END %]

[% END %] [%- IF songinfo; PROCESS songinfo_header.html itemobj = songinfo; image = undef; END %] [%- WRAPPER $container %] [% IF image %]

[% END %] [% IF playlist_id && addItem %] [% PROCESS editform %] [% 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 $contentwrapper leftcontrols = 'allcontrol' %] [% "ALL_SONGS" | string %] [%- END %] [%- odd = (not odd) %] [% END %] [%- FOREACH item = items %] [% IF item.ignore; NEXT; END %] [% lctype = item.web.group | lower; IF details.${ lctype } || details.contributors.${item.web.group}; NEXT; END %] [%- BLOCK gencontrol -%] [% IF item.simpleAlbumLink && (item.playLink || item.insertLink || item.addLink || item.removeLink) %] [% IF item.playLink; WRAPPER playlink %]href="[% webroot %][% item.playLink %]&player=[% playerURI %]"[% END; END %] [% IF item.addLink; WRAPPER addlink %]href="[% webroot %][% item.addLink %]&player=[% playerURI %]"[% END; END %] [% IF item.mixersLink; WRAPPER cmdlink cmdimage='b_mix.gif' cmdtitle='MORE' %]href="[% webroot %][% item.mixersLink %]?player=[% playerURI %]" target="[% browserTarget %][% END; END %] [% ELSIF 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 %] [% IF item.mixersLink; WRAPPER cmdlink cmdimage='b_mix.gif' cmdtitle='MORE' %] href="[% webroot %][% item.mixersLink %]&player=[% playerURI %]" [% IF browserTarget %]target="[% browserTarget %]"[% END %] [% END; END %] [% ELSE %] [% PROCESS dummylink %] [% PROCESS dummylink %] [% END %] [%- END %] [% IF playlist_id && edit && loop.index == itempos %] [% PROCESS editform %] [% ELSIF item.type == 'search' && !item.weblink %]

[% ELSIF item.type == 'textarea' %] [% title = (item.web.value || item.name || item.title) %] [% title | html_line_break %] [% ELSE %] [% IF useAJAX %] [% END %] [%- WRAPPER $contentwrapper leftcontrols = 'gencontrol' rightcontrols = (playlist_id ? 'editcontrols' : 'favoritescontrol') anchor = item.anchor %] [% IF hasArtwork; item.size = thumbSize || 100; END %] [% IF item.web.type == 'htmltemplate' %] [% PROCESS $item.web.value %] [% ELSE %] [% IF item.label %] [% item.label | string %] [%- stringCOLON %] [% END %] [% IF item.weblink %] [% ELSIF item.type == 'redirect' %] [% IF item.web.url %] [% ELSE; NEXT %] [% END %] [% ELSIF item.simpleAlbumLink %] [% ELSIF !item.type.match('^text') %] [% END %] [% title = item.web.value; IF !title.defined || title == ''; title = item.name; END; IF !title.defined || title == ''; title = item.title; END; title = title | html | html_line_break; IF item.parseURLs; title = title FILTER parseURIs; END; IF item.wrap; # Put wrapped text into a single element. Improves display of multiline comments & lyrics. title = " $title "; END; title %] [% IF item.weblink || !item.type.match('^text') %] [% END %] [% IF item.showYear && item.year %] [% IF item.remote %] ([% item.year %]) [% ELSE %] ([% item.year %])[% END %] [% END %] [% IF item.showArtist && item.artist %] [% stringBY %] [% IF item.artist_id %] [% item.artist %] [% ELSE %] [% item.artist %] [% END %] [% 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 %]