[%- IF ajaxRequest -%]

    	[% PROCESS ajaxHome.txt %]

[%- ELSE -%] [% FILTER null %] [% pagetitle = "HOME" | string; noSpacer = 1; noHomeLink = 1 %] [% IF warn %] [% bodyscript = 'onload="doLoad(1);"' %] [% END %] [% pageHeaderMenu = BLOCK %]
[% "NOTE" | string %] [% "HOME_SCAN_WARNING" | string %]
[%- "LIBRARY_CONTAINS" | string %] [% album_count %] [% "WITH" | string -%] [%- song_count %] [% "BY" | string %] [% artist_count %].
[% IF newVersion %]
[% newVersion %][% END %]
[% END %] [% pageHeaderScripts = BLOCK %]
[% END %] [% END -%] [% PROCESS pageheader.html %]
[% IF progress.name %][% progress.name _ "_PROGRESS" | string %][% END %]
[% progress.bar %]
[% "BROWSE_MUSIC" | string | upper %]

[%- FOREACH link = additionalLinks.browse %]
- [% link.key | getstring | html %]
[%- END %]

[% "SEARCH" | string | upper %]

[%- FOREACH key = additionalLinks.search.keys %]
- [% key | getstring | html %]
[%- END %]

[% "RADIO" | string | upper %]

[%- FOREACH item = additionalLinkOrder.radios %]
- [% item | getstring | html %]
[%- END %] [%- FOREACH link = additionalLinks.radios; IF !additionalLinkOrder.radios.grep(link.key).size %]
- [% link.key | getstring | html %]
[%- END; END %]
- [% "RADIO_TUNEIN" | string | html %]

[% IF additionalLinks.my_apps %]
[% "PLUGIN_MY_APPS_MODULE_NAME" | string | upper %]

[%- FOREACH item = additionalLinkOrder.my_apps %]
- [% item | getstring | html %]
[%- END %] [%- FOREACH link = additionalLinks.apps; IF !additionalLinkOrder.my_apps.grep(link.key).size %]
- [% link.key | getstring | html %]
[%- END; END %]

[%- END %] [% IF not nosetup %]
[% "SETTINGS" | string | upper %]

[%- IF not noserver %]
- [% "SERVER_SETTINGS" | string %]
[%- END %] [%- USE Clients; players = Clients.get("name"); FOREACH client = players.reverse; %]
- [% "PLAYER_SETTINGS" | string %][% IF client.name %] [% "FOR" | string %] [% client.name %][% END %]
[%- END %] [%- FOREACH key = additionalLinks.settings.keys %]
- [% key | getstring | html %]
[%- END %]

[% END %] [% IF additionalLinks.plugins %]
[% "PLUGINS" | string | upper %]

[%- FOREACH link = additionalLinks.plugins %] [% NEXT IF link.key == 'ALARM' && (!player || nosetup) %]
- [% link.key | getstring | html %]
[%- END %]

[% END %]
[% "HELP" | string | upper %]

[%- FOREACH link = additionalLinks.help %]
- [% link.key | string | html %]
[%- END %]

[% PROCESS pagefooter.html %] [% END %]