[% btButtons = [ { num = 1, icon = 'Album', text = 'ALBUMS', href = 'dummy' }, { num = 2, icon = 'Artist', text = 'ARTIST', href = 'dummy' }, { num = 3, icon = 'Playlist', text = 'Lists', href = 'dummy' }, { num = 4, icon = 'Search', text = 'Search', href = 'dummy' }, { num = 5, icon = 'Home', text = 'Home', href = webroot _ 'home.html?player=' _ playerURI _ '#Main' } ] %] [% btButtons.0.text = 'ALBUMS' | string %] [% btButtons.1.text = 'ARTIST' | string %] [% btButtons.3.text = 'SEARCH' | string %] [% btButtons.0.href = PROCESS browseAlbumLink %] [% btButtons.1.href = PROCESS browseArtistLink %] [% btButtons.2.href = PROCESS browsePlaylistsLink %] [% btButtons.3.href = PROCESS browseSearchLink %]
[% FOREACH btItem = btButtons %] [% IF btItem.icon == selectedButton %]
[% END %] [% END %]
[% FOREACH btItem = btButtons %] [% PROCESS btDisplay %] [% END %]
[% BLOCK btDisplay %]
[% btItem.text %] [% IF btItem.href %] [% END %] [% END %] [% BLOCK browseAlbumLink %] [% webroot _ 'browsedb.html?hierarchy=album,track&level=0&&player=' _ playerURI %] [% END %] [% BLOCK browseArtistLink %] [% webroot _ 'browsedb.html?hierarchy=contributor,album,track&level=0&&player=' _ playerURI %] [% END %] [% BLOCK browsePlaylistsLink %] [% webroot _ 'browsedb.html?hierarchy=playlist,playlistTrack&level=0&&player=' _ playerURI %] [% END %] [% BLOCK browseSearchLink %] [% webroot _ 'search.html?player=' _ playerURI %] [% END %]