[%- pagetitle = 'PLUGIN_SQLPLAYLIST' | string; pageicon = 'PLUGIN_SQLPLAYLIST' -%]
[%- pwd_list = BLOCK -%]/
[% "PLUGIN_SQLPLAYLIST" | string %]
[% END -%]
[%- pageHeaderInfo = BLOCK %]
[% IF pluginSQLPlayListNowPlaying != '' %]
[% "NOW_PLAYING" | string %]:
[% pluginSQLPlayListNowPlaying %]
[% 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 %]plugins/DynamicPlayList/dynamicplaylist_mix.html?type=[% IF type!= 'disable' %]sqlplaylist_[% END %][% type |uri %]&player=[% player | uri %]&addOnly=[% addOnly %]"
[% 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=[% IF type!= 'disable' %]sqlplaylist_[% END %][% type |uri %]&player=[% player |uri%]" onClick="setTimeout('document.location.reload(true)',500)"
[% END %]
[% END %]
[% END %]
[% IF player == '' %]
[% "NO_PLAYER_FOUND" | string %]
[% ELSE %]
[% "PLUGIN_SQLPLAYLIST_CHOOSE_BELOW" | string %]
[% WRAPPER contentcontainer %]
|
[% odd = 1 %]
[% FOREACH playlist IN pluginSQLPlayListPlayLists %]
[% BLOCK controls %]
[%- IF playlist.customplaylist and !playlist.downloadedplaylist %]
[% "PLUGIN_SQLPLAYLIST_PUBLISH_ITEM" | string %]
[%- END %]
[%- IF !playlist.defaultplaylist %]
[% "PLUGIN_SQLPLAYLIST_REMOVE_ITEM" | string %]
[%- END %]
[% "PLUGIN_SQLPLAYLIST_EDIT_ITEM" | string %]
[% PROCESS dynamicPlayListLink type=playlist.id addOnly="0" parameters=playlist.parameters %]
[% PROCESS dynamicPlayListLink type=playlist.id addOnly="1" parameters=playlist.parameters %]
[% END %]
[%- WRAPPER contentitem controls='controls' %]
[% playlist.name %]
[% END %]
[% odd = (not odd) %]
[% END %]
[% odd = 0 %]
[% IF pluginSQLPlayListNowPlaying != '' %]
[%# Reload status and playlist to reflect any new mixes %]
|
[%- WRAPPER contentitem %]
[% "PLUGIN_SQLPLAYLIST_GENERAL_HELP" | string %]
[% PROCESS dynamicPlayListLink type="disable" addOnly="0" %]
[% END %]
|
[% END %]
[% END %]
|
[% "PLUGIN_SQLPLAYLIST_NEW_ITEM" | string %] [% "PLUGIN_SQLPLAYLIST_REFRESH_PLAYLISTS" | string %] [% "PLUGIN_SQLPLAYLIST_REFRESH_DOWNLOADED_ITEMS" | string %]([% "PLUGIN_SQLPLAYLIST" | string %] [% pluginSQLPlayListVersion %]) |
[% IF pluginSQLPlayListError %]
[% pluginSQLPlayListError %] |
[% END %]
[% IF pluginSQLPlayListMessage %]
[% pluginSQLPlayListMessage %] |
[% END %]
[% IF pluginWebAdminMethodsError %]
[% pluginWebAdminMethodsError %]
|
[% END %]
[% IF pluginWebAdminMethodsMessage %]
[% pluginWebAdminMethodsMessage %] |
[% END %]
[% END %]
[% PROCESS pagefooter.html %]