[%- IF ajaxRequest -%]

    	[% PROCESS ajaxRequest.txt page = 'status' %][% PROCESS FBajaxRequest.txt page='status' %][% IF NOT light %][% PROCESS ajaxRequest.txt page = 'playlist' %][% END %]

[%- ELSE -%] [%- FILTER null %] [% BLOCK spacer -%] [%- END %] [% BLOCK volumectl %] [% PROCESS spacer %] [% END %] [%- BLOCK progressOverlay -%]
[%- FOREACH jump = [1..20] -%]
[%- END -%]
[%- END -%] [%- BLOCK volumecontrol %] [% vols = { '2' => '0', '4' => '6', '6' => '12', '8' => '18', '10' => '24', '12' => '30', '14' => '36', '16' => '42', '18' => '48', '20' => '54', '22' => '60', '24' => '66', '26' => '72', '28' => '78', '30' => '84', '32' => '90', '34' => '95', '36' => '100', } %] [%- FOREACH level = vols.nsort.reverse %]
[% PROCESS volumectl vol = vols.$level %]
[% PROCESS volumectl vol = vols.$level %]
[% PROCESS volumectl vol = vols.$level %]
[%- END -%] [% END -%] [% BLOCK statectrl %] [% cmdstring | string | upper%] [% END %] [% BLOCK playctl %] [% END %] [% BLOCK remove %] [x] [% END %] [% END -%]
[% pagetitle = player_name %] [% PROCESS customheader.html %]
[% IF playercount == '0' %]
[% END %]
[% "CONNECTING_FOR" | string | upper %].
[% "LOADING" | string | upper %].
[% IF undock %] [% END %] [% IF sync %][% "UNSYNC" | string %] / [% END %] [% IF sleeptime %][% sleep %][% ELSE %][% "SLEEP" | string %][% END %] / [% IF not nosetup %][% "SETTINGS" | string %] [%- END -%] [%- IF not undock -%] / Undock [%- END %]
[%- IF NOT undock -%]
[% IF player_chooser_list -%]
[%- ELSE -%] [% IF player_name -%][% player_name %][%- END -%] [%- IF sync %][% "SYNCHRONIZED_WITH" | string %] [% sync %][% END -%] [%- END %]
[% END %]
[%- PROCESS progressOverlay -%]
[% IF coverThumb -%] [%- PROCESS statusImg width="100" -%] [%- ELSIF itemobj.isRemoteURL && plugin_meta.cover -%] [%- ELSIF itemobj.isRemoteURL && plugin_meta.icon -%] [%- ELSE -%] [%- END %]
[% "PLAYLIST_EMPTY" | string %][% "COLON" | string %]
[% IF modeplay %][% status = "PLAYING" %][% END %][% IF modepause %][% status = "PAUSED_ON" %][% END %][% IF modestop %][% status = "STOPPED_ON" %][% END %] [% IF currentsong %][% status | string %][% END %] [% IF currentsong %][% currentsong %][% END %] [% "OUT_OF" | string %] [% IF songcount %][% songcount %][% END %] [zap][% "COLON" | string %]
[% IF itemobj.title %][% itemobj.title %][% END %] [% IF itemobj.duration %]([% itemobj.duration | html %])[% END %] [% IF bitrate %]([% bitrate %])[% END %]
[% "ARTIST" | string %] [% PROCESS remove param="contributor.id" value = "$itemobj.artist.id" %]
[% PROCESS artistsAsHTML.html noby=1 %]
[% "ALBUM" | string %] [% PROCESS remove param="album.id" value = "$itemobj.album.id" %]
[% IF itemobj.album.title %][% itemobj.album.title | html %][% END %] ([% IF itemobj.year %][% itemobj.year %][% END %])

[% PROCESS playctl command='p0=play' img='play' width='42' height='43' condition=modeplay && rate == 'norm' -%] [% PROCESS playctl command='p0=stop' img='stop' width='23' height='32' condition=modestop -%]
[% PROCESS playctl command='p0=button&p1=rew.hold' width='30' height='19' img='rew' condition=rate == 'rew' -%] [% PROCESS playctl command='p0=button&p1=fwd.hold' img='ffwd' condition=rate == 'ffwd' -%] |
[% plusone = '%2B1' | uri -%][%- minusone = '%2D1' | uri -%] [%- PROCESS playctl command="p0=playlist&p1=jump&p2=$minusone" width='30' height='19' img='back' condition='0' -%] [%- PROCESS playctl command="p0=playlist&p1=jump&p2=$plusone" img='forward' condition='0' -%] [%- PROCESS playctl command='p0=pause' img='pause' condition=modepause -%] [%- PROCESS playctl command='p0=button&p1=muting' img='mute' condition=mute -%]

[% PROCESS volumecontrol %]
[% "VOLUME" | string | upper%][% "COLON" | string %]
[% "REPEAT" | string | upper%][% "COLON" | string %]
[% FOREACH type = ['off','one','all'] %] [% PROCESS statectrl item = 'playlist' condition=repeat == loop.index command='repeat' arg=loop.index cmdstring=type %] [% END %]
[% "POWER" | string | upper%][% "COLON" | string %]
[% FOREACH type = ['on','off'] %] [% PROCESS statectrl condition=mode == type item='power' command=1-loop.index arg='' cmdstring=type %] [% END %]
[% "SHUFFLE" | string | upper%][% "COLON" | string %]
[% FOREACH type = ['off','song','album'] %] [% PROCESS statectrl condition=shuffle == loop.index item = 'playlist' command='shuffle' arg=loop.index cmdstring=type %] [% END %]
[% IF NOT undock %]
[% "CURRENT_PLAYLIST" | string %][% "COLON" | string %] [% IF current_playlist %][% current_playlist_name %][% END %] [% IF myClientState %]([% myClientState.playlist.size %] [% "SONGS" | string %])[% END %] ([% "MODIFIED" | string %])
[% img = '' %][% PROCESS savePlaylistLink %] / [% PROCESS downloadPlaylistLink playlist_items = 1 %] / [% "CLEAR" | string %]
Drag here to delete
[% playlist %]
[% END %] [% PROCESS pagefooter.html %] [% END %]