[%# Page home.html %] [%- FILTER null %] [% BLOCK menu %] [% PROCESS subtitle title=menutitle %]

[% IF menulist %] [% FOREACH item = orderlist %]
- [% item | getstring %]
[% END %] [% FOREACH link = menulist; IF !orderlist.grep(link.key).size %]
- [% link.key | getstring %]
[% END;END %] [% END %] [% FOREACH link = additionalmenu %]
- [% link.key | getstring %]
[% END %]

[% END %] [% pagetitle = "HOME" | string %] [% END -%] [% IF warn && !refresh; refresh = 30; refreshurl = webroot _ '?'; END; %] [%- PROCESS pageheader.html %] [% PROCESS menu menutitle='BROWSE_MUSIC' menulist=additionalLinks.browse %] [% IF additionalLinks.music_services %] [% IF additionalLinks.radios.exists('PLUGIN_PANDORA_MODULE_NAME') %] [% additionalmenu = {'PLUGIN_PANDORA_MODULE_NAME' => additionalLinks.radios.PLUGIN_PANDORA_MODULE_NAME } %] [% END %] [% PROCESS menu menutitle='MUSIC_SERVICES' menulist=additionalLinks.music_services orderlist=additionalLinkOrder.music_services %] [% END %] [% PROCESS menu menutitle='RADIO' menulist=additionalLinks.radios orderlist=additionalLinkOrder.radios additionalmenu = {'RADIO_TUNEIN' => 'tunein.html'} -%] [% PROCESS menu menutitle='SEARCH' menulist=additionalLinks.search orderlist={} additionalmenu={} %] [% IF additionalLinks.plugins %] [% PROCESS menu menutitle='PLUGINS' menulist=additionalLinks.plugins additionalmenu={} orderlist={} %] [% END %] [% PROCESS menu menutitle='HELP' menulist=additionalLinks.help %] [% IF warn && NOT pageHeaderInfo; pageHeaderInfo = BLOCK %] [% "NOTE" | string %] [% "HOME_SCAN_WARNING" | string %] ([% "SCANNER_PROGRESS" | string %]) [% END %] [% ELSIF album_count && NOT pageHeaderInfo; pageHeaderInfo = BLOCK %] [% album_count %] | [% song_count %] | [% artist_count %] [% END; END %] [% PROCESS pagefooter.html %] [%# /Page home.html %]