[%- pagetitle = 'PLUGIN_DYNAMICPLAYLIST' | string; pageicon = 'PLUGIN_DYNAMICPLAYLIST' -%] [%- pwd_list = BLOCK -%]/ [% "PLUGIN_DYNAMICPLAYLIST" | string %] [% FOREACH group IN pluginDynamicPlayListContext %] [% IF group.dynamicplaylistenabled %] / [% group.name %] [% END %] [% END %] [% END -%] [%- pageHeaderInfo = BLOCK %] [% IF pluginDynamicPlayListNowPlaying != '' %] [% "NOW_PLAYING" | 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 %] href="[% webroot %][%- IF customurl -%] [%- customurl -%]&player=[% player | uri %]" [%- ELSE -%] plugins/DynamicPlayList/dynamicplaylist_mix.html?type=[% type %]&addOnly=[% addOnly %]&player=[% player | uri %][% IF playlisttype and dynamicplaylist_parameter_1 %]&dynamicplaylist_parameter_1=[% dynamicplaylist_parameter_1 %][% END %]" onclick='document.genreForm.type.value = "[% type %]"; document.genreForm.addOnly.value = [% addOnly %] [% IF playlisttype and dynamicplaylist_parameter_1 %]document.genreForm.dynamicplaylist_parameter_1.value = [% dynamicplaylist_parameter_1 %][% END %] document.genreForm.submit(); return false;' [%- END -%] [% END %] [% BLOCK dynamicPlayListLink %] [% IF addOnly;link='addlink';ELSE;link='playlink';END %] [% IF type == 'disable' %] [% "PLUGIN_DYNAMICPLAYLIST_DISABLE" | string %] [% ELSIF parameters %] [% WRAPPER $link noTarget=1 %] [% PROCESS href %] [% END %] [% ELSE %] [% WRAPPER $link %] href="[% webroot %][% statusroot %]?p0=dynamicplaylist&p1=playlist&p2=[% IF addOnly %]add[% ELSE %]play[% END %]&p3=[% type %]&player=[% player |uri%]" onClick="setTimeout('document.location.reload(true)',500)" [% END %] [% END %] [% END %]