[%- IF ajaxRequest -%]

    	[% PROCESS ajaxHome.txt %]

[%- ELSE -%] [% FILTER null %] [% pagetitle = stringHOME; 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 %] [% stringBY %] [% 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 item = additionalLinkOrder.browse %] [%- IF additionalLinks.browse.exists(item) %]
- [% item | getstring | html %]
[% IF item == 'SEARCH' && additionalLinks.search.ADVANCEDSEARCH %]
- [% "ADVANCEDSEARCH" | getstring | html %]
[% END %] [%- END %] [%- END %] [%- FOREACH link = additionalLinks.browse; IF !additionalLinkOrder.browse.grep(link.key).size %]
- [% link.key | getstring | html %]
[%- END; 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 %]