[% pagetitle = "HOME" | string; pageicon = 'MUSIC'; browse = '1'; music = '1'; playlist = '0'; thispage = 'home'; IF ajaxRequest; '
';
	PROCESS ajaxRequest.txt page = thispage;
	'
'; ELSIF runAlarm; PROCESS alarm_set.html; ELSIF runSleep; PROCESS sleep_set.html; ELSIF runRescan; PROCESS rescan_set.html; ELSE; title = 'SqueezeCenter'; homeString = 'IPENG_BUTTON_HOME' | string; goHomeURI = 'href = "' _ webroot _ 'home.html?player=' _ playerURI _ '"'; # "HOME" | string pageHeaderScripts = PROCESS HomeHeader; PROCESS iHeaderVert.html noShowBar = 1; BLOCK HomeHeader %] [% END %] [%- PROCESS homeTopbar; %] [%- PROCESS browseDatabase; IF !additionalLinks.browseiPeng.PLUGIN_IPENG_CUSTOM_BROWSE_MORE; PROCESS browseLists; END; PROCESS browseSettings; PROCESS browseRadio; #PROCESS musicServices; #PROCESS alarmSet; -%] '; PROCESS iFooterVert.html selectedButton = 'Home' context = 'home' classFooter = " selected = 'true' class = 'toolbar' "; ''; ''; ''; END; BLOCK browseDatabase; browseCategories = { BROWSE_BY_ALBUM = { icon = 'html/images/iAlbumWhite.png', text = 'ALBUMS' }, BROWSE_BY_ARTIST = { icon = 'html/images/iArtistWhite.png', text = 'ARTIST' }, BROWSE_BY_GENRE = { icon = 'html/images/iGenreWhite.png', text = 'GENRES' }, BROWSE_MUSIC_FOLDER = { icon = 'html/images/iFolderWhite2.png', text = 'SETUP_AUDIODIR' }, BROWSE_BY_YEAR = { icon = 'html/images/iTimeWhite.png', text = 'BROWSE_BY_YEAR' }, BROWSE_NEW_MUSIC = { icon = 'html/images/iNewWhite.png', text = 'BROWSE_NEW_MUSIC' }, #PLUGIN_CUSTOMBROWSE = { icon = additionalLinks.icons.${'PLUGIN_CUSTOMBROWSE'}.replace('.png', "_40x30_f.png"), text = 'PLUGIN_CUSTOMBROWSE' } } -%] '; END; BLOCK browseLists %] '; END; BLOCK blDetails; 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' } }; temp = 'PLUGIN_IPENG_CUSTOM_BROWSE_MORE' | getstring; browseMoreExclude = [ 'PLUGIN_IPENG_CUSTOM_BROWSE_MORE', temp ]; -%] '; END; BLOCK playerChoose; USE Clients; players = Clients.get("id"); IF player_chooser_list %]
[% 'IPENG_PLAYER' | string %] [% IF page %][% END; IF playerid %][% END; '
'; '
'; ELSE; temp = '0'; FOREACH playerobj IN players; IF player == playerobj.id; temp = '1'; %] [% "IPENG_PLAYER" | string; " "; IF playerobj.name; playerobj.name; ELSE; player; END; ''; '
'; END; END; IF !temp %] [% "IPENG_PLAYER" | string %] [% "NONE" | string %]
[% END; END; END; BLOCK browseSettings %] '; END; BLOCK browseRadio %] '; END; BLOCK tune_in_form %]
[% "RADIO_TUNEIN_CHOOSE" | string; ''; END; BLOCK homeTopbar %]
[% END; BLOCK spacer %]
[% END %]