[%# 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 %] [% "ADD" | string %] [% ELSE %] [% "PLAY" | string %] [% END %] [% END -%] [%- pagetitle = 'PLUGIN_RANDOM' | string; pageicon = 'PLUGIN_RANDOM' -%] [% PROCESS pageheader.html %] [% IF pluginRandomNowPlaying != '' %] [%# Reload status and playlist to reflect any new mixes %] [% END %]

[% "PLUGIN_RANDOM" | string %]

[% "HOME" | string %] / [% "PLUGIN_RANDOM" | string %]

[% IF player == '' %] [% ELSE %] [% odd = 1 %] [% FOREACH type IN ['track','artist','album','year'] %] [% SET class = odd ? 'class="odd" bgcolor="#d0d0d0"':'class="even" bgcolor="#ffffff"' %] [% odd = (not odd) %] [% END %] [% IF pluginRandomNowPlaying != '' %] [% END %] [% END %]
[% "NO_PLAYER_FOUND" | string %]
[% "PLUGIN_RANDOM_CHOOSE_BELOW" | string %]
[% 'PLUGIN_RANDOM_' _ type _ '_WEB' | upper | string %] [% PROCESS playLink type="$type" addOnly="0" %] [% PROCESS playLink type="$type" addOnly="1" %]
[% "NOW_PLAYING" | string %]: [% "PLUGIN_RANDOM_" _ pluginRandomNowPlaying | upper | string %]
 
[% "PLUGIN_RANDOM_GENERAL_HELP" | string %] [% PROCESS playLink type="disable" addOnly="0" %]
 
 

 
[% "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 %]