[% 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' %]
[%- ELSE %]
[% END -%]
[% "RADIO" | string %] + [% "MUSIC_SERVICES" | string %] | [% "BROWSE" | string %] ([% "MORE" | string %]) | [% 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.music_services %][% key = item %][% value = additionalLinks.music_services.$item %] [% linkList.push([key,value]) %] [%- END %] [%- FOREACH link = additionalLinks.music_services; IF !additionalLinkOrder.music_services.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 %]
[% IF loop.index % 2 || loop.last %]
| [% key | string %]
[% END %] [% END %] [% END %]

[% ELSE %]

[% "BROWSE" | string %]

[% IF not nosetup %]
[% END %] [% IF additionalLinks.plugins %]
[% 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 %]