[% WRAPPER playlink %]onclick="Utils.processCommandURL('[% path %]?[% searchquery %]action=play&index=[% streaminfo.index %]&player=[% player | uri %]');"[% END %]
[% WRAPPER addlink %]onclick="Utils.processCommandURL('[% path %]?[% searchquery %]action=add&index=[% streaminfo.index %]&player=[% player | uri %]');"[% END %]
[% END; END %]
[% PROCESS xmlbrowser_details.html %]
[% END %]
[% IF search;
WRAPPER contentitem controls = xmlSearchControls;
"SEARCH" | string %]
[% END;
END %]
[%- IF items.size -%]
[% IF hasPagebar %]
[% END %]
[%- BLOCK gencontrol -%]
[% IF item.favorites == 1 %]
[% WRAPPER favaddlink noTarget=1 %]
href="[% path %]?action=favadd&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&player=[% player | uri %]"
[% END %]
[% ELSIF item.favorites == 2 %]
[% WRAPPER favdellink noTarget=1 %]
href="[% path %]?action=favdel&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]&player=[% player | uri %]"
[% END %]
[% END %]
[% IF item.type == 'audio' || item.type == 'playlist' || item.enclosure || item.play %]
[% WRAPPER playlink %]onclick="Utils.processCommandURL('[% path %]?[% searchquery %]action=play[% IF item.type == 'playlist' %]all[% END %]&index=[% index _ (start + loop.index) %]&player=[% player | uri %]');"[% END %]
[% WRAPPER addlink %]onclick="Utils.processCommandURL('[% path %]?[% searchquery %]action=add[% IF item.type == 'playlist' %]all[% END %]&index=[% index _ (start + loop.index) %]&player=[% player | uri %]');"[% END %]
[% ELSE %]
[% PROCESS dummylink %]
[% PROCESS dummylink %]
[% END %]
[%- END %]
[%- WRAPPER $container %]
[% IF image %]
[% PROCESS pagebar %]
[% END %]
[% IF item.weblink %]
[% ELSIF item.type != 'text' %]
[% END %]
[% item.name || item.title %]
[% IF item.weblink || item.type != 'text' %]
[% 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 %]