[% BLOCK home_links %] [%# rearrange these as you see fit. this is the layout of the icons on the main home page %] [%# 'INCLUDE year' is not used, but available %]
[% IF not nofolder %] [% INCLUDE music_folder %] [% END %] [%# INCLUDE artwork %] [% INCLUDE albums %] [% INCLUDE artist %] [% INCLUDE new_music %] [% INCLUDE random_mix %]
[% INCLUDE ajax_artwork %] [% INCLUDE playlists %] [% INCLUDE genre %] [% INCLUDE favorites %] [% INCLUDE statistics %]
[% END %] [% pagetitle = "HOME" | string %] [% browse = '1' %] [% music = '1' %][% playlist = '0' %] [%- IF browse_radio -%] [%- thispage = 'radio' -%] [%- ELSE -%] [%- thispage = 'home' -%] [%- END -%] [%- IF ajaxRequest -%]

    [% PROCESS ajaxRequest.txt page = thispage %]

[%- ELSE -%] [% PROCESS pageheader.html class = 'custom' thispage = thispage %] [% IF ! extended_browse %]

[% IF thispage == 'radio' %] [% "RADIO" | string %] + [% "PLUGIN_MY_APPS_MODULE_NAME" | string %] [%- ELSE %] | [% "BROWSE" | string %] ([% "MORE" | string %]) [% END -%] | [% IF thispage == 'radio' %] [% INCLUDE tune_in_form %] [% ELSE %] [% END %]

[% IF thispage != 'radio' %] [% INCLUDE home_links %] [% ELSE %] [% linkList = [] %] [%- FOREACH item = additionalLinkOrder.radios %][% key = item %][% value = additionalLinks.radios.$item %] [% linkList.push([key,value]) %] [%- END %] [%- FOREACH link = additionalLinks.radios; IF !additionalLinkOrder.radios.grep(link.key).size %][% value = link.value %][% key = link.key %] [% linkList.push([key,value]) %] [%- END;END %] [%- FOREACH item = additionalLinkOrder.my_apps %][% key = item %][% value = additionalLinks.my_apps.$item %] [% linkList.push([key,value]) %] [%- END %] [%- FOREACH link = additionalLinks.apps; IF !additionalLinkOrder.my_apps.grep(link.key).size %][% value = link.value %][% key = link.key %] [% linkList.push([key,value]) %] [%- END;END %] [% FOREACH link = linkList %][% key = link.0 %][% value = link.1 %] [%- iconWidth = 80 -%] [% UNLESS loop.index % 2 %]
[% END %] | [% key | getstring %] [% IF loop.index % 2 || loop.last %]
[% END %] [% END %] [% END %]

[% ELSE %]

[% "BROWSE" | string %]

[% "BROWSE_MUSIC" | string | upper %]

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

[% "HELP" | string | upper %]

[%- FOREACH link = additionalLinks.help %]
- [% link.key | string %]
[%- 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 | string %]
[%- END;END %]
- [% "RADIO_TUNEIN" | string %]

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

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

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

[%- FOREACH key = additionalLinks.plugins.keys %]
- [% key | string %]
[%- END %]

[% END %]

[% END %] [% IF thispage == 'radio' %] [% PROCESS pagefooter.html %] [% ELSE %] [% PROCESS pagefooter.html noBuffer = '1' %] [% END %] [%- END -%] [% BLOCK tune_in_form %]
[% 'RADIO_TUNEIN_RADIOURL' | string %] [% END %] [% BLOCK library_stats %] [%# to add back in on a rainy day... %]

[% "ABOUT_SHORT" | string %] | [% "SERVER_SETTINGS" | string %] | [% "PLAYER_SETTINGS" | string %] |
[% IF song_count %]
[% "LIBRARY_CONTAINS" | string %] [% album_count %] [% "WITH" | string %] [% song_count %] [% "BY" | string %] [% artist_count %]. |
[% END %]

[% END %] [% BLOCK link_head %]

[% END %] [% BLOCK link_foot %]
[% title | string %]

[% END %] [% BLOCK statistics %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'STATISTICS' %] [% END %] [% BLOCK favorites %] [% INCLUDE link_head %] [% FOR links IN additionalLinks %][% END %] [% INCLUDE link_foot title = 'FAVORITES' %] [% END %] [% BLOCK genre %] [% IF additionalLinks.browse.BROWSE_BY_GENRE %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'GENRES' %] [% END %] [% END %] [% BLOCK playlists %] [% IF additionalLinks.browse.SAVED_PLAYLISTS %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'PLAYLISTS' %] [% END %] [% END %] [% BLOCK albums %] [% IF additionalLinks.browse.BROWSE_BY_ALBUM %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'ALBUMS' %] [% END %] [% END %] [% BLOCK music_folder %] [% IF additionalLinks.browse.BROWSE_MUSIC_FOLDER %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'SETUP_AUDIODIR' %] [% END %] [% END %] [% BLOCK ajax_artwork %] [% IF additionalLinks.browse.BROWSE_BY_ALBUM %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'ONE_BY_ONE_ARTWORK' %] [% END %] [% END %] [% BLOCK artwork %] [% IF additionalLinks.browse.BROWSE_BY_ALBUM %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'ARTWORK' %] [% END %] [% END %] [% BLOCK artist %] [% IF additionalLinks.browse.BROWSE_BY_ARTIST %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'ARTIST' %] [% END %] [% END %] [% BLOCK new_music %] [% IF additionalLinks.browse.BROWSE_NEW_MUSIC %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'BROWSE_NEW_MUSIC' %] [% END %] [% END %] [% BLOCK random_mix %] [% IF additionalLinks.browse.PLUGIN_RANDOMPLAY %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'PLUGIN_RANDOMPLAY' %] [% END %] [% END %] [% BLOCK year %] [% IF additionalLinks.browse.BROWSE_BY_YEAR %] [% INCLUDE link_head %] [% INCLUDE link_foot title = 'BROWSE_BY_YEAR' %] [% END %] [% END %]