[% BLOCK statusInfo; IF pluginRandomNowPlaying != ''; textlink = PROCESS randomLink type="disable" addOnly="0"; WRAPPER contentitem lineclass = "listFullTitle Wrap"; # Reload status and playlist to reflect any new mixes ''; '

'; "PLUGIN_RANDOM_GENERAL_HELP" | string; ' '; "PLUGIN_RANDOM_" _ pluginRandomNowPlaying _ "_DISABLE" | string; '

'; END; END; END; IF ajaxRequest; PROCESS statusInfo; ELSE; pagetitle = 'PLUGIN_RANDOMPLAY' | string; pageicon = 'PLUGIN_RANDOMPLAY'; pwd_list = BLOCK; '/'; ''; "PLUGIN_RANDOMPLAY" | string; ''; END; pageHeaderInfo = BLOCK; IF pluginRandomNowPlaying != ''; "NOW_PLAYING" | string; "COLON" | string; ' '; "PLUGIN_RANDOM_" _ pluginRandomNowPlaying | upper | string; END; END; PROCESS pageheader.html; %] [% # Following block generates links that submit the form if javascript is enabled. This allows # users to make setting changes then click on a new mix without having to press the submit button. BLOCK href %] javascript:followLink('[% type %]', [% addOnly %]); [% END; BLOCK randomLink; IF addOnly; WRAPPER addlink noTarget=1; 'href="'; PROCESS href; '"'; END; ELSE; PROCESS href; END; END; IF player == ''; '

'; "NO_PLAYER_FOUND" | string; '

'; ELSE %]
[%- WRAPPER contentcontainer containerheight = 1; PROCESS activatePLcontainer; WRAPPER contentanchor; "PLUGIN_RANDOM_CHOOSE_BELOW" | string; END; FOREACH type IN ['track','contributor','album','year']; BLOCK controls; PROCESS randomLink type="$type" addOnly="1"; END; textlink = PROCESS randomLink type="$type" addOnly="0"; WRAPPER contentitem controls='controls'; 'PLUGIN_RANDOM_' _ type _ '_WEB' | string; END; END; '
'; PROCESS statusInfo; '
'; BLOCK cts_checkbox %]
[% 'IPENG_ON' | string %][% 'IPENG_OFF' | string %]
[% END; WRAPPER contentitem controls = 'cts_checkbox' lineclass = 'listFullTitle Wrap' fixedwidth = 255 %]
[% "PLUGIN_RANDOM_CONTINUOUS_MODE" | string %]
[% END; WRAPPER contentanchor; "PLUGIN_RANDOM_GENRE_FILTER_WEB" | string; END; USE table pluginRandomGenreList.keys.sort, cols=1, pad=0 %] [%- FOREACH genrerow = table.rows %] [%- FOREACH genre = genrerow %] [%- genreid = "genre_" _ pluginRandomGenreList.item("$genre").id %] [% BLOCK checkbox %]
[% 'IPENG_ON' | string %][% 'IPENG_OFF' | string %]
[% END; WRAPPER contentitem controls = 'checkbox' lineclass = 'listFullTitle Wrap' fixedwidth = 255 %]
[% pluginRandomGenreList.item("$genre").name | html %]
[% END %] [%- END %] [%- END %] [% textlink = ""; WRAPPER contentitem lineclass = 'listFullTitle Wrap' fixedwidth = 308; %]
[% "PLUGIN_RANDOM_BEFORE_NUM_TRACKS" | string %]
[% "SAVE" | string %] [% END; %] [% END %]
[% END; selectedButton = 'RandomPlay'; PROCESS pagefooter.html; END; %]