[% PROCESS settings/header.html %] [% prefixes = [ 'plugin_musicinfo_centerA' 'plugin_musicinfo_lineA' 'plugin_musicinfo_overlayA' 'plugin_musicinfo_centerB' 'plugin_musicinfo_lineB' 'plugin_musicinfo_overlayB' 'plugin_musicinfo_center_dbl' 'plugin_musicinfo_line_dbl' 'plugin_musicinfo_overlay_dbl' ]; postfixes = [ '' '_P' '_X' '_2X' '_PX', '_A', '_AX', '_OFF', '_OFFX' ]; updateIFrames = ''; %] [% BLOCK screenElements %]
[% script = "url = '" _ webroot _ "plugins/MusicInfoSCR/settings/preview.html?playerid=" _ playerid _ "&postfix=" _ postfix _ "&lines=" _ lines _ "&live=' + (document.getElementById('livepreview').checked ? '1' : '0') + '&';\n"; FOREACH prefix = prefixes; item = prefix _ postfix; NEXT IF lines==1 && NOT prefix.match('_dbl'); NEXT IF lines==2 && prefix.match('_dbl'); %] [% script = script _ "url += '" _ prefix _ "=' + document.getElementById('" _ item _ "').value + '&';\n"; script = script _ "url += '" _ prefix _ "_size=' + document.getElementById('" _ item _ "_size').value + '&';\n"; %] [% END %] [% updateIFrames = updateIFrames _ "updateFrame" _ postfix _ lines _ "(false);\n" %] [% END %] [% BLOCK addHiddenFields %] [% FOREACH prefix = prefixes %] [% item = prefix _ postfix %] [% END %] [% item = 'plugin_musicinfo_size' _ postfix %] [% END %] [% BLOCK toggleOption %]
[% END %] [% BLOCK toggleScreenElement %]
[% END %] [% # don't display font selector for non-graphical displays (SliMP3 & SB1) BLOCK toggleSizeSetting; sizeOption = "plugin_musicinfo_size" _ postfix; IF isaSqueezebox2; PROCESS toggleOption option=sizeOption label="SETUP_PLUGIN_MUSICINFO_SIZE"; IF prefs.$sizeOption; lines=2; '
'; "SETUP_PLUGIN_MUSICINFO_SIZE1" | string; '
'; ELSE; lines=''; END; ELSE; prefs.$sizeOption = 1; lines=2; END; END; %] [% WRAPPER settingSection; IF isaSqueezebox2; options = [ 'plugin_musicinfo_stream_fallback', 'plugin_musicinfo_disable_visualizer', 'plugin_musicinfo_jump_back' ]; ELSE; options = [ 'plugin_musicinfo_stream_fallback', 'plugin_musicinfo_jump_back' ]; END; IF canAlternativeVolume; options.unshift('plugin_musicinfo_alt_volume'); END; FOREACH option = options; title = "SETUP_" _ option | string; desc = "SETUP_" _ option _ "_DESC" | string; WRAPPER settingGroup; PROCESS toggleOption label = "SETUP_" _ option; END; END; END %] [% WRAPPER settingSection; WRAPPER settingGroup title="SETUP_PLUGIN_MUSICINFO_DISPLAY1" desc="" %]
[% "SETUP_PLUGIN_MUSICINFO_DISPLAY1_DESC" | string %]
[% END; WRAPPER settingGroup title="" desc="SETUP_PLUGIN_MUSICINFO_PREVIEW_DESC" %]
[% "SETUP_PLUGIN_MUSICINFO_PREVIEW" | string %]
[% PROCESS toggleSizeSetting postfix=''; fixedSize=prefs.plugin_musicinfo_size; %] [% PROCESS screenElements postfix='' %] [% IF prefs.plugin_musicinfo_size %]
[% "SETUP_PLUGIN_MUSICINFO_SIZE2" | string %]
[% PROCESS screenElements postfix='' lines=1; lines=2; %] [% END %] [% END %] [% WRAPPER settingGroup title="SETUP_PLUGIN_MUSICINFO_SHOW_ICONS_CHOOSE" desc="" %] [% END %] [% WRAPPER settingGroup title="SETUP_PLUGIN_MUSICINFO_SHOW_SLEEP_CHOOSE" desc="" %]
[% END %] [% IF hasDualscreen; WRAPPER settingGroup title="SETUP_PLUGIN_MUSICINFO_DISPLAY2" desc="SETUP_PLUGIN_MUSICINFO_DISPLAY2_DESC"; PROCESS screenElements postfix='_X'; IF prefs.plugin_musicinfo_size; PROCESS screenElements postfix='_X' lines=1; lines=2; END; END; END; END %] [% WRAPPER setting title="SETUP_PLUGIN_MUSICINFO_ALARM" desc="SETUP_PLUGIN_MUSICINFO_ALARM_DESC"; PROCESS toggleScreenElement item='plugin_musicinfo_alarm'; IF prefs.plugin_musicinfo_alarm == '2'; PROCESS toggleSizeSetting postfix='_A'; fixedSize=prefs.plugin_musicinfo_size_A; PROCESS screenElements postfix='_A'; IF prefs.plugin_musicinfo_size_A; PROCESS screenElements postfix='_A' lines=1; lines=2; END; ELSE; PROCESS addHiddenFields postfix='_A'; END; IF hasDualscreen; IF prefs.plugin_musicinfo_alarm == '2' %]
[% "SETUP_PLUGIN_MUSICINFO_ALARM2" | string %]
[% PROCESS screenElements postfix='_AX'; IF prefs.plugin_musicinfo_size_A; PROCESS screenElements postfix='_AX' lines=1; lines=2; END; ELSE; PROCESS addHiddenFields postfix='_AX'; END; END; END %] [% WRAPPER setting title="SETUP_PLUGIN_MUSICINFO_PLAYLIST" desc="SETUP_PLUGIN_MUSICINFO_PLAYLIST_DESC"; PROCESS toggleScreenElement item='plugin_musicinfo_playlist'; IF prefs.plugin_musicinfo_playlist == '2'; PROCESS toggleSizeSetting postfix='_P'; fixedSize=prefs.plugin_musicinfo_size_P; PROCESS screenElements postfix='_P'; IF prefs.plugin_musicinfo_size_P; PROCESS screenElements postfix='_P' lines=1; lines=2; END; ELSE; PROCESS addHiddenFields postfix='_P'; END; IF hasDualscreen; IF prefs.plugin_musicinfo_playlist == '2' %]
[% "SETUP_PLUGIN_MUSICINFO_PLAYLIST2" | string %]
[% PROCESS screenElements postfix='_PX'; IF prefs.plugin_musicinfo_size_P; PROCESS screenElements postfix='_PX' lines=1; lines=2; END; ELSE; PROCESS addHiddenFields postfix='_PX'; END; END; END %] [% WRAPPER setting title="SETUP_PLUGIN_MUSICINFO_OFF" desc="SETUP_PLUGIN_MUSICINFO_OFF_DESC"; PROCESS toggleSizeSetting postfix='_OFF'; fixedSize=prefs.plugin_musicinfo_size_OFF; PROCESS screenElements postfix='_OFF'; IF prefs.plugin_musicinfo_size_OFF; PROCESS screenElements postfix='_OFF' lines=1; lines=2; END; IF hasDualscreen %]
[% "SETUP_PLUGIN_MUSICINFO_OFF2" | string %]
[% PROCESS screenElements postfix='_OFFX'; IF prefs.plugin_musicinfo_size_OFF; PROCESS screenElements postfix='_OFFX' lines=1; lines=2; END; END; END %] [% IF hasDualscreen; WRAPPER setting title="SETUP_PLUGIN_MUSICINFO_EXTENDED" desc="SETUP_PLUGIN_MUSICINFO_EXTENDED_DESC"; PROCESS toggleScreenElement item='plugin_musicinfo_extended'; IF prefs.plugin_musicinfo_extended == '2'; PROCESS toggleSizeSetting postfix='_2X'; fixedSize=prefs.plugin_musicinfo_size_2X; PROCESS screenElements postfix='_2X'; IF prefs.plugin_musicinfo_size_2X; PROCESS screenElements postfix='_2X' lines=1; lines=2; END; ELSE; PROCESS addHiddenFields postfix='_2X'; END; END; END %] [% WRAPPER setting title="SETUP_PLUGIN_MUSICINFO_RESET" desc="SETUP_PLUGIN_MUSICINFO_RESET_DESC" %]
[% "SETUP_PLUGIN_MUSICINFO_RESET" | string %]
[% END %] [% PROCESS settings/footer.html %]