';
END; END;
IF streaminfo;
IF streaminfo.item.enclosure || streaminfo.item.url;
'';
END;
PROCESS xmlbrowser_details.html;
END;
IF search %]
[%- odd = 1;
IF items.size;
IF hasPagebar;
PROCESS top_pagebar;
END;
BLOCK favoritescontrol %]
[% IF item.favorites == 1;
WRAPPER favaddlink noTarget=1;
IF useAJAX -%]href="javascript:void(0);" onClick="ajaxUpdate('[% path %]', 'action=favadd&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]')"
[%- ELSE -%]href="[% path; '?action=favadd&index='; index _ (start + loop.index); '&start=';
pageinfo.startitem; '&player='; playerURI %]"
[%- END;
END;
ELSIF item.favorites == 2;
WRAPPER favdellink noTarget=1;
IF useAJAX -%]href="javascript:void(0);" onClick="ajaxUpdate('[% path %]', 'action=favdel&index=[% index _ (start + loop.index) %]&start=[% pageinfo.startitem %]')"
[%- ELSE -%]href="[% path; '?action=favdel&index='; index _ (start + loop.index); '&start=';
pageinfo.startitem; '&player='; playerURI %]"
[%- END;
END;
END; '';
END;
WRAPPER contentcontainer containerheight = 1 omitPCTRL = 1;
IF image %]
[% END;
IF itemsHaveAudio;
BLOCK allcontrol;
WRAPPER addlink %]href="[% path; '?'; searchquery; 'action=addall&index='; currentIndex;
'&player='; playerURI %]"[%
END;
END;
textlink = path _ "?" _ searchquery _ "action=playall&index=" _ currentIndex _ "&player=" _ playerURI;
target = "";
WRAPPER contentitem leftcontrols = 'dummylink' rightcontrols = 'allcontrol' lineclass = ' ';
"ALL_SONGS" | string;
END;
odd = (not odd);
END;
FOREACH item = items;
BLOCK gencontrol;
IF item.type == 'audio' || item.enclosure || item.play;
WRAPPER addlink %]href="[% path; '?'; searchquery; 'action=add';
IF item.type == 'playlist'; 'all'; END;
'&index='; index _ (start + loop.index); '&player='; playerURI %]" target=""[% END;
ELSIF item.type == 'playlist';
WRAPPER playlink %]href="[% path; '?'; searchquery; 'action=playall&index=';
index _ (start + loop.index); '&player='; playerURI %]" target=""[% END;
ELSE;
PROCESS dummylink;
END;
END;
IF item.type == 'search' %]
[% ELSE;
IF item.type == 'playlist';
IF item.weblink;
textlink = item.weblink;
target = "_blank";
ELSIF item.type != 'text';
textlink = path _ "?" _ searchquery _ "index=" _ index _ (start + loop.index) _ "&player=" _ playerURI;
target = "";
END;
fixedwidth = 210;
ELSIF item.type == 'audio' || item.enclosure || item.play;
textlink = path _ "?" _ searchquery _ "action=play";
IF item.type == 'playlist';
textlink = textlink _ "all";
END;
textlink = textlink _ "&index=" _ index _ (start + loop.index) _ "&player=" _ playerURI;
target = "";
fixedwidth = 210;
ELSE;
IF item.weblink;
textlink = item.weblink;
target = "_blank";
ELSIF item.type != 'text';
textlink = path _ "?" _ searchquery _ "index=" _ index _ (start + loop.index) _ "&player=" _ playerURI;
target = "";
END;
fixedwidth = 275;
END;
lcontent = item.name || item.title;
FOREACH omit = omitList;
olen = omit.length;
IF (lcontent.length > olen) && (lcontent.substr(0, olen) == omit);
lcontent = lcontent.substr(olen);
END;
END;
# lcontent = lcontent | truncate(48);
IF (lcontent.length > 19) || lcontent.match('(\n|\r|\f)');
lineclass = '';
ELSE; lineclass = ' '; fixedwidth = 0; END;
WRAPPER contentitem rightcontrols = 'gencontrol' leftcontrols = 'favoritescontrol';
IF lcontent.match('(\n|\r|\f)');
lcontent.split('(\n|\r|\f)').0;
'
';
lcontent.split('(\n|\r|\f)').1;
ELSE;
lcontent;
END;
END;
END;
odd = (not odd);
END;
END;
IF hasPagebar;
PROCESS bottom_pagebar;
END;
END;
'