[% pagetitle = 'PLUGIN_FOLDERCHOOSER' | string; pwd_list = []; crumbItem = BLOCK %] [% "PLUGIN_FOLDERCHOOSER" | string %] [% END; pwd_list.push(crumbItem) %] [% PROCESS pageheader.html %] [%- playerUri = player | uri; BLOCK folderitem; dirUri = newdir | uri; href = "href=\"" _ webroot _ path _ "?player=" _ playerUri _ "&curdir=" _ curdirUri _ "&newdir=" _ dirUri _ "\""; WRAPPER contentitem controls = 'browsecontrols' showdescend = 1 showplay = 0 showplayall = 0 %] [% content %] [%- END; END; %] [% odd = 0 %] [% IF saved %]

Something useful will be done...

[% END %] [% IF curdir; curdirUri = curdir | uri; %]
[%- FOREACH part = pathparts; IF part; mypath = mypath _ part _ "/" -%] [% part %] [% IF part != "/" %]/[%- END; END; END -%] [% IF playerid %][% END %]
[% IF mypath %] [% odd = (not odd) %] [% WRAPPER folderitem newdir = ".." %][..][% END %] [% END %] [% END %] [% FOREACH dir = subdirs %] [% odd = (not odd) %] [% WRAPPER folderitem newdir = dir %][% dir %][% END %] [% END -%] [% PROCESS pagefooter.html %]