[% BLOCK statusInfo %] [% IF pluginRandomNowPlaying != '' %] [%# Reload status and playlist to reflect any new mixes %]
[% "PLUGIN_RANDOM_GENERAL_HELP" | string %] [% PROCESS randomLink type="disable" addOnly="0" %]
[% END %] [% END %] [% IF ajaxRequest; PROCESS statusInfo; ELSE %] [%- pagetitle = 'PLUGIN_RANDOMPLAY' | string; pageicon = icons.PLUGIN_RANDOMPLAY -%] [% pageHeaderScripts = BLOCK %] [% END %] [% extJsScripts = BLOCK %] [% END %] [%- pwd_list = BLOCK -%]/ [% "PLUGIN_RANDOMPLAY" | string %] [% END -%] [%- pageHeaderInfo = BLOCK %] [%- IF pluginRandomNowPlaying != '' %] [% "NOW_PLAYING" | string %][% "COLON" | 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 %] [% IF useExtJS %] href="javascript:RandomPlay.mix('[% type %]', '[% addOnly %]');" [% ELSE %] href="[% webroot %]plugins/RandomPlay/mix.html?type=[% type %]&player=[% player | uri %]&addOnly=[% addOnly %]" onclick='document.genreForm.type.value = "[% type %]"; document.genreForm.addOnly.value = [% addOnly %] document.genreForm.submit(); refreshStatus(); return false;' [% END %] [% END %] [% BLOCK randomLink %] [% IF addOnly;link='addlink';ELSE;link='playlink';END %] [% IF type == 'disable' %] [% "PLUGIN_RANDOM_" _ pluginRandomNowPlaying _ "_DISABLE" | string %] [% ELSE %] [% WRAPPER $link noTarget=1 %] [% PROCESS href %] [% END %] [% END %] [% END %] [% IF player == '' %][% "NO_PLAYER_FOUND" | string %]
[% ELSE %] [% END %] [% PROCESS pagefooter.html %] [% END %]