[% pagetitle = "HOME" | string %] [% pageicon = 'MUSIC' %] [% browse = '1' %] [% music = '1' %][% playlist = '0' %] [%- thispage = 'home' -%] [%- IF ajaxRequest -%]
[% PROCESS ajaxRequest.txt page = thispage %]
        
[%- ELSE -%] [% title = 'SqueezeCenter'; homeString = 'Home'; goHomeURI = 'href = "' _ webroot _ 'home.html?player=' _ playerURI _ '"' %][%# %] [% PROCESS iHeaderVert.html noShowBar = 1 %]

 
[% PROCESS browseDatabase; %] [% PROCESS browseLists; %] [% PROCESS browseSettings; %] [% PROCESS browseRadio; %] [% PROCESS musicServices; %]
[%# PROCESS plugin_add %] [% PROCESS playerChoose %] [%# END %]
iPeng v0.2 (C) 2007 Joerg Schwieder
[% PROCESS iFooterVert.html selectedButton = 'Home' classFooter = " selected = 'true' class = 'toolbar' " %] [%- END -%] [% BLOCK browseDatabase %] [% browseCategories = { BROWSE_BY_ALBUM = { icon = 'iAlbumWhite.png', text = 'ALBUMS' }, BROWSE_BY_ARTIST = { icon = 'iArtistWhite.png', text = 'ARTIST' }, BROWSE_BY_GENRE = { icon = 'iGenreWhite.png', text = 'GENRES' }, BROWSE_MUSIC_FOLDER = { icon = 'iFolderWhite2.png', text = 'SETUP_AUDIODIR' }, BROWSE_BY_YEAR = { icon = 'iAlbumWhite.png', text = 'BROWSE_BY_YEAR' }, PLUGIN_CUSTOMBROWSE = { icon = 'iAlbumWhite.png', text = 'PLUGIN_CUSTOMBROWSE' } } %]
[% orderByList = { 'album.titlesort' => 'ALBUM', 'album.year,album.titlesort' => 'SORT_YEARALBUM', 'album.year,contributor.namesort,album.titlesort' => 'SORT_YEARARTISTALBUM', 'contributor.namesort,album.titlesort' => 'SORT_ARTISTALBUM', 'contributor.namesort,album.year,album.titlesort' => 'SORT_ARTISTYEARALBUM', 'genre.namesort,album.titlesort' => 'SORT_GENREALBUM', 'genre.namesort,contributor.namesort,album.titlesort' => 'SORT_GENREARTISTALBUM', } %] [%# 'ALBUMS' | string %]
[% "SORT_BY" | string %]
[% END %] [% BLOCK browseLists %] [% browseMoreCategories = { SAVED_PLAYLISTS = { icon = 'iPlaylistWhite.png', text = 'PLAYLISTS' }, FAVORITES = { icon = 'iFavoritesWhite.png', text = 'FAVORITES' }, BROWSE_NEW_MUSIC = { icon = 'iNewWhite.png', text = 'BROWSE_NEW_MUSIC' }, PLUGIN_RANDOMPLAY = { icon = 'iRandomWhite.png', text = 'PLUGIN_RANDOMPLAY' } } %]



[% END %] [% BLOCK playerChoose %] [% IF player_chooser_list %]
[% "CURRENT_PLAYER" | string %] [% IF page %][% END %] [% IF playerid %][% END %]
[% ELSE %] [%- USE Clients; players = Clients.get("id") -%] [% temp = '0'; FOREACH playerobj IN players %] [% IF player == playerobj.id; temp = '1'; %] [% "CURRENT_PLAYER" | string %] [% IF playerobj.name %][% playerobj.name %][% ELSE %][% player %][% END %]
[% END %] [% END %] [% IF !temp %] [% "CURRENT_PLAYER" | string %] [% "NONE" | string %]
[% END %] [% END %] [% END %] [% BLOCK browseSettings %]
[% END %] [% BLOCK browseRadio %]
[% PROCESS tune_in_form %]


[% END %] [% BLOCK tune_in_form %]
[% "RADIO_TUNEIN_CHOOSE" | string %] [% END %] [% BLOCK plugin_add %] [% IF additionalLinks.plugins %]
[% "PLUGINS" | string | upper %]
[% END %] [% END %] [% BLOCK musicServices %]
[%- END %] [% BLOCK library_stats %] [%# to add back in on a rainy day... %] [% IF song_count %] [% END %]
[% "ABOUT_SHORT" | string %] |  [% "SERVER_SETTINGS" | string %] |  [% "PLAYER_SETTINGS" | string %]
[% "LIBRARY_CONTAINS" | string %] [% album_count %] [% "WITH" | string %] [% song_count %] [% "BY" | string %] [% artist_count %].
[% END %]