[% WRAPPER playlink %]onclick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest(location.pathname + '?[% searchquery | replace("'", "%27") | uri %]action=play&index=[% streaminfo.index %]&player=[% player | uri %]&sess=[% sess %]', false, SqueezeJS.string('connecting_for'));"[% END %]
[% WRAPPER addlink %]onclick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest(location.pathname + '?[% searchquery | replace("'", "%27") | uri %]action=add&index=[% streaminfo.index %]&player=[% player | uri %]&sess=[% sess %]');"[% END %]
[% END; END %]
[% PROCESS xmlbrowser_details.html %]
[% END %]
[%- IF items.size -%]
[%- # Maintain correct index values
UNLESS path == 'trackinfo.html';
FOREACH item = items;
item.index = index _ (start + loop.index);
END;
END;
%]
[% IF hasPagebar %]
[% END %]
[%- BLOCK gencontrol -%]
[% IF item.favorites == 1 %]
[% WRAPPER favaddlink noTarget=1 %]
href="[% path %]?action=favadd&index=[% (item.index || index _ (start + loop.index)) | replace("'", "%27") | uri %]&start=[% pageinfo.startitem %]&player=[% player | uri %]&sess=[% sess %]"
[% END %]
[% ELSIF item.favorites == 2 %]
[% WRAPPER favdellink noTarget=1 %]
href="[% path %]?action=favdel&index=[% (item.index || index _ (start + loop.index)) | replace("'", "%27") | uri %]&start=[% pageinfo.startitem %]&player=[% player | uri %]&sess=[% sess %]"
[% END %]
[% END %]
[% IF item.type == 'audio' || item.type == 'playlist' || item.enclosure || item.play %]
[% WRAPPER playlink %]onclick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest(location.pathname + '?[% searchquery | replace("'", "%27") | uri %]action=play[% IF item.type == 'playlist' %]all[% END %]&index=[% (item.index || index _ (start + loop.index)) | replace("'", "%27") | uri %]&player=[% player | uri %]&sess=[% sess %]', false, SqueezeJS.string('connecting_for'));"[% END %]
[% WRAPPER addlink %]onclick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest(location.pathname + '?[% searchquery | replace("'", "%27") | uri %]action=add[% IF item.type == 'playlist' %]all[% END %]&index=[% (item.index || index _ (start + loop.index)) | replace("'", "%27") | uri %]&player=[% player | uri %]&sess=[% sess %]');"[% END %]
[% ELSE %]
[% PROCESS dummylink %]
[% PROCESS dummylink %]
[% END %]
[%- END %]
[%- # treat track information specially
IF path == 'trackinfo.html';
itemobj = {
id => sess,
album => details.album.0,
contributorRoles => details.contributors.keys,
contributors => details.contributors,
genres => details.genre,
year => details.year.0.id
title => pagetitle
url => itemUrl
};
songInfoPlayLinks = BLOCK;
PROCESS songInfoPlayLinks attributes = "&track.id=" _ sess item = details.mixers.0;
END;
PROCESS songinfo_header.html
albumFirst = 1
plugin_meta = {
title => details.title.0.name
};
image = undef;
END %]
[%- WRAPPER $container %]
[% IF image %]
[% END %]
[% IF itemsHaveAudio %]
[%- BLOCK allcontrol -%]
[% WRAPPER playlink %]onclick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest(location.pathname + '?[% searchquery | replace("'", "%27") | uri %]action=playall&index=[% currentIndex %]&player=[% player | uri %]&sess=[% sess %]', false, SqueezeJS.string('connecting_for'));"[% END %]
[% WRAPPER addlink %]onclick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest(location.pathname + '?[% searchquery | replace("'", "%27") | uri %]action=addall&index=[% currentIndex %]&player=[% player | uri %]&sess=[% sess %]');"[% END %]
[%- END %]
[%- WRAPPER contentitem controls = 'allcontrol' %]
[% "ALL_SONGS" | string %]
[%- END %]
[% END %]
[%- FOREACH item = items %]
[% lctype = item.web.group | lower; IF details.${ lctype } || details.contributors.${item.web.group}; NEXT; END %]
[% IF item.type == 'search';
WRAPPER contentitem controls = xmlSearchControls;
IF artwork == 1;
itemobj.id = loop.count;
END;
item.name || item.title %]
[% END %]
[% ELSE %]
[%- WRAPPER $contentwrapper controls = 'gencontrol' addClasses = item.type=='text' ? 'defaultCursor' : '' %]
[% IF artwork == 1 || path == 'trackinfo.html';
item.size = thumbSize || 100;
itemobj.id = loop.count;
END %]
[% IF item.image && !(artwork > 0) %]
[% PROCESS pagebar %]
[% END %]
[% 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.web.value || item.name || item.title) | html_line_break %]
[% IF item.weblink || item.type != 'text' %]
[% END %]
[% END %]
[% IF item.image && !(artwork > 0) %]
[% END %]
[%- END %]
[%- END %]
[%- END %]
[%- END %]
[%- END %]
[%- IF hasPagebar; infoTab = BLOCK -%]
[% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %]
[%- END; END -%]
[% IF NOT ajaxUpdate %][% IF !streaminfo %]