[%# 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 -%] [%- pagetitle = 'PLUGIN_RANDOM' | string; -%] [% PROCESS pageheader.html %] [% WRAPPER submenu linktitle=pagetitle %][% END %]

[% IF player == '' %]

[% "NO_PLAYER_FOUND" | string %]

[% ELSE %]

[% "PLUGIN_RANDOM_CHOOSE_BELOW" | string %]

[% odd = 0 %] [% FOREACH type IN ['track','artist','album','year'] %] [% odd = (not odd) %] [% END %]
[% 'PLUGIN_RANDOM_' _ type _ '_WEB' | upper | string %] [% PROCESS playLink type="$type" addOnly="0" %] [% PROCESS playLink type="$type" addOnly="1" %]
[% 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 %] [%- END %]
[% nbsp = " "; nbsp.repeat(10) %]

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

[% PROCESS pagefooter.html %]