[% WRAPPER playlink %]onclick="Browse.XMLBrowser.playLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% streaminfo.index %]', '[% sess %]');"[% END %]
[% IF allLinks; WRAPPER insertlink %]onclick="Browse.XMLBrowser.insertLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% streaminfo.index %]', '[% sess %]');"[% END; END %]
[% WRAPPER addlink %]onclick="Browse.XMLBrowser.addLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% streaminfo.index %]', '[% sess %]');"[% END %]
[% IF allLinks; WRAPPER removelink %]onclick="Browse.XMLBrowser.removeLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% streaminfo.index %]', '[% sess %]');"[% END; END %]
[% END; END %]
[% PROCESS xmlbrowser_details.html %]
[% END %]
[%- IF items.size -%]
[% IF !ajaxSearch %]
[% IF hasPagebar %]
[% END %]
[% IF items.size < 2; useAllControl = 0; END %]
[% ELSE %]
[% IF total %]
[% IF total > items.size; useAllControl = 0; END %]
[% END %]
[% END %]
[%- BLOCK gencontrol -%]
[% IF playlist_id %]
[% 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 %]
[% IF item.favorites == 1 %]
[% WRAPPER favaddlink noTarget=1 %]
[% IF songinfo.favorites && item.type != 'audio' %]
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% songinfo.favorites_title | html | replace("'", "%27") %]', '[% songinfo.favorites_icon | uri | replace("'", "%27") %]');"
[% ELSIF item.simpleAlbumLink && item.favorites_url %]
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% item.favorites_url | uri | replace("'", "%27") %]', '[% (item.name _ " " _ stringBY _ " " _ item.artist) | uri | replace("'", "%27") %]');"
[% ELSE %]
onclick="Browse.XMLBrowser.toggleFavorite(this, '[% (item.index || index _ (start + loop.index)) | uri | replace("'", "%27") %]', '[% pageinfo.startitem %]', '[% sess %]');"
[% END %]
[% END %]
[% ELSIF item.favorites == 2 %]
[% WRAPPER favdellink noTarget=1 %]
[% IF songinfo.favorites && item.type != 'audio' %]
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% songinfo.favorites_title | html | replace("'", "%27") %]', '[% songinfo.favorites_icon | uri | replace("'", "%27") %]');"
[% ELSE %]
onclick="Browse.XMLBrowser.toggleFavorite(this, '[% (item.index || index _ (start + loop.index)) | uri | replace("'", "%27") %]', '[% pageinfo.startitem %]', '[% sess %]');"
[% END %]
[% END %]
[% END %]
[% IF item.playLink || item.insertLink || item.addLink || item.removeLink %]
[% IF item.playLink; WRAPPER playlink %]onclick="SqueezeJS.Controller.urlRequest('[% webroot %][% item.playLink | replace("'", "%27") %]&player=[% playerURI %]', 1, SqueezeJS.string('connecting_for'));"[% END; END %]
[% IF allLinks && item.insertLink; WRAPPER insertlink %]onclick="SqueezeJS.Controller.urlRequest('[% webroot %][% item.insertLink | replace("'", "%27") %]&player=[% playerURI %]', 1);"[% END; END %]
[% IF item.addLink; WRAPPER addlink %]onclick="SqueezeJS.Controller.urlRequest('[% webroot %][% item.addLink | replace("'", "%27") %]&player=[% playerURI %]', 1);"[% END; END %]
[% IF allLinks && item.removeLink; WRAPPER removelink %]onclick="SqueezeJS.Controller.urlRequest('[% webroot %][% item.removeLink | replace("'", "%27") %]&player=[% playerURI %]', 1);"[% END; END %]
[% IF item.mixersLink; WRAPPER morelink %]href="[% webroot %][% item.mixersLink %]?player=[% playerURI %]"[% END; END %]
[% ELSIF item.type == 'audio' || item.type == 'playlist' || item.enclosure || item.play %]
[% WRAPPER playlink %]onclick="Browse.XMLBrowser.play[% IF item.type == 'playlist' %]All[% END %]Link('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% (item.index || index _ (start + loop.index)) | uri | replace("'", "%27") %]', '[% sess %]');"[% END %]
[% IF allLinks; WRAPPER insertlink %]onclick="Browse.XMLBrowser.insertLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% (item.index || index _ (start + loop.index)) | uri | replace("'", "%27") %]', '[% sess %]');"[% END; END %]
[% WRAPPER addlink %]onclick="Browse.XMLBrowser.add[% IF item.type == 'playlist' %]All[% END %]Link('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% (item.index || index _ (start + loop.index)) | uri | replace("'", "%27") %]', '[% sess %]');"[% END %]
[% ELSIF item.mixersLink %]
[% WRAPPER morelink %]href="[% webroot %][% item.mixersLink %]?player=[% playerURI %]"[% END %]
[% ELSE %]
[% PROCESS dummylink %]
[% PROCESS dummylink %]
[% END %]
[% END %]
[%- BLOCK allcontrol -%]
[% IF songinfo.favorites == 1 %]
[% WRAPPER favaddlink noTarget=1 %]
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% songinfo.favorites_title | html | replace("'", "%27") %]', '[% songinfo.favorites_icon | uri | replace("'", "%27") %]');"
[% END %]
[% ELSIF songinfo.favorites == 2 %]
[% WRAPPER favdellink noTarget=1 %]
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% songinfo.favorites_title | html | replace("'", "%27") %]', [% songinfo.favorites_icon | uri | replace("'", "%27") %]');"
[% END %]
[% END %]
[% WRAPPER playlink %]onclick="Browse.XMLBrowser.playAllLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% currentIndex %]', '[% sess %]');"[% END %]
[% IF allLinks; WRAPPER insertlink %]onclick="Browse.XMLBrowser.insertLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% currentIndex %]', '[% sess %]');"[% END; END %]
[% WRAPPER addlink %]onclick="Browse.XMLBrowser.addAllLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% currentIndex %]', '[% sess %]');"[% END %]
[% IF allLinks; WRAPPER removelink %]onclick="Browse.XMLBrowser.removeLink('[% multiquery %][% searchquery | uri | replace("'", "%27") %]', '[% currentIndex %]', '[% sess %]');"[% END; END %]
[% IF songinfo.mixersLink; WRAPPER morelink %]
href="[% webroot %][% songinfo.mixersLink %]?player=[% playerURI %]" [% IF browserTarget %]target="[% browserTarget %]"[% 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 editform %]
[% END %]
[% BLOCK iconTmpl; PROCESS itemIcon size=50 class="browseItemDetail"; END %]
[% IF hasArtwork && !artwork %]
[% iconTmpl = 'iconTmpl' %]
[% END %]
[% IF playlist_id %]
[% PROCESS pagebar %]
[% IF songinfo.playLink || songinfo.insertLink || songinfo.addLink || songinfo.removeLink; PROCESS gencontrol item = songinfo; ELSIF itemsHaveAudio; PROCESS allcontrol; END %]
[% END;
PROCESS songinfo_header.html itemobj = songinfo;
image = undef;
END %]
[%- WRAPPER $container %]
[% IF image %]
[% END %]
[% IF playlist_id && addItem %]
[% PROCESS editform %]
[% END %]
[% IF itemsHaveAudio && !songinfo && useAllControl %]
[% useAllIcon = hasArtwork && artwork == 0 %]
[%- WRAPPER contentitem controls = 'allcontrol' lineclass = (useAllIcon ? 'browsedbListItem itemWithCover' : 'browsedbListItem' )%]
[% IF useAllIcon %]

[% END %]
[% "ALL_SONGS" | string %]
[% IF useAllIcon %]
[% END %]
[%- END %]
[% END %]
[% needBR = (artwork != 2 && !ajaxSearch) ? '' : '' %] [%- FOREACH item = items %] [% IF item.ignore; NEXT; END %] [% lctype = item.web.group | lower; IF details.${ lctype } || details.contributors.${item.web.group}; NEXT; END %] [% IF playlist_id && edit && loop.index == itempos %] [% PROCESS editform %] [% ELSIF item.type == 'redirect' && !(item.web.url || item.weblink || item.link); NEXT %] [% ELSIF item.type == 'search' && !item.weblink; WRAPPER contentitem controls = xmlSearchControls; IF artwork == 1; itemobj.id = loop.count; END; item.name || item.title %] [% END %] [% ELSIF item.type == 'textarea' %]
[% title = (item.web.value || item.name || item.title) %]
[% title | html_line_break %]
[% ELSE %]
[%- WRAPPER $contentwrapper controls = 'gencontrol' addClasses = (item.type=='text' ? 'defaultCursor' : playlist_id ? 'draggableSong' : '') _ (!(hasArtwork && !artwork) && item.icon ? ' smallIcon' : '') anchor = item.anchor %]
[% IF artwork == 1;
item.size = thumbSize || 100;
itemobj.id = loop.count _ (ajaxUpdate ? index : '');
END %]
[% IF iconTmpl %]
[% PROCESS iconTmpl url=(item.image || item.icon || 'music/0/cover.jpg') %]
[% closeDIV = 1 %]
[% END %]
[% IF item.web.type == 'htmltemplate' %]
[% PROCESS $item.web.value %]
[% ELSE %]
[% IF item.label %]
[% IF item.label == "LYRICS" %]