[%# Following two blocks generate 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 playLink %] [% IF type == "disable" %] [% "PLUGIN_RANDOM_" _ pluginRandomNowPlaying _ "_DISABLE" | string %]. [% ELSIF addOnly %] [% ELSE %] [% END %] [% END -%] [% PROCESS header.html pwd="yes" clink="0" %]
[% "PLUGIN_RANDOM" | string %] /
[% IF pluginRandomNowPlaying != '' %] [%# Reload status and playlist to reflect any new mixes %]
[% END %]

[% IF player == '' %]
[% "NO_PLAYER_FOUND" | string %]
[% ELSE %]
[% "PLUGIN_RANDOM_CHOOSE_BELOW" | string %]

[% FOREACH type IN ['track','contributor','album','year'] %]
[% PROCESS playLink type="$type" addOnly="0" %] | [% PROCESS playLink type="$type" addOnly="1" %] | [% 'PLUGIN_RANDOM_' _ type _ '_WEB' | upper | string %]
[% END %]

[% IF pluginRandomNowPlaying != '' %]
[% "NOW_PLAYING" | string %][% "COLON" | string %] [% "PLUGIN_RANDOM_" _ pluginRandomNowPlaying | upper | string %]
[% "PLUGIN_RANDOM_GENERAL_HELP" | string %] [% PROCESS playLink type="disable" addOnly="0" %]
[% END %] [% END %]

[% "PLUGIN_RANDOM_GENRE_FILTER_WEB" | string %]

[% USE table pluginRandomGenreList.keys.sort, cols=2, pad=0 %] [%- FOREACH genrerow = table.rows %]
[%- FOREACH genre = genrerow %] [%- genreid = "genre_" _ pluginRandomGenreList.$genre.id %] [%- IF not loop.first %]
[%- END %]
[%- END %]
[% nbsp = " "; nbsp.repeat(10) %] | [% genre | html %]
[%- END %]

[% "PLUGIN_RANDOM_BEFORE_NUM_TRACKS" | string %] [% "PLUGIN_RANDOM_AFTER_NUM_TRACKS" | string %] [% "PLUGIN_RANDOM_AFTER_NUM_OLD_TRACKS" | string %]