[% IF page == 'help'; pagetitle = "HELP" | string; PROCESS helpheader.html noCrumbList=1; WRAPPER helpTopicList; "
"; FOREACH link = additionalLinks.help; title = link.key | string | html; href = link.value; PROCESS helpTopic; END; END; PROCESS helpfooter.html; ELSE %] [% extJsScripts = BLOCK %]
[% END %] [% my_musicItems = BLOCK; orderedLinks = ['BROWSE_BY_ARTIST', 'BROWSE_BY_ALBUM', 'BROWSE_BY_GENRE', 'BROWSE_BY_YEAR', 'BROWSE_NEW_MUSIC', 'PLUGIN_RANDOMPLAY']; FOREACH item = orderedLinks; IF additionalLinks.browse.exists(item); link = { key=item, value=additionalLinks.browse.$item }; PROCESS menuItem; END; END; FOREACH link = additionalLinks.browse; IF link.key.search('\W') || (link.key != 'FAVORITES' && !orderedLinks.grep(link.key).size); additionalLinks.icons.${link.key} = additionalLinks.icons.${link.key} || 'html/images/plugin.png'; PROCESS menuItem; ELSIF link.key == 'FAVORITES'; useFavorites = 1; END; END; FOREACH link = additionalLinks.search; IF link.key == 'SEARCHMUSIC'; control = BLOCK %] [% END; PROCESS menuItem; END; END; END; radioItems = BLOCK; FOREACH item = additionalLinkOrder.radios; IF additionalLinks.radios.exists(item); link.value = additionalLinks.radios.item(item); link.key = item; control = ''; IF link.value.match('search'); control = BLOCK %] [% END; END; PROCESS menuItem; END; END; FOREACH link = additionalLinks.radios; IF !additionalLinkOrder.radios.grep(link.key).size; additionalLinks.icons.${link.key} = additionalLinks.icons.${link.key} || 'html/images/plugin.png'; PROCESS menuItem; END; END; additionalLinks.icons.RADIO_TUNEIN = 'html/images/ServiceProviders/tuneinurl.png'; control = BLOCK %] [% WRAPPER playlink %]onclick="Home.tuneInUrl('play');"[% END %] [% WRAPPER addlink %]onclick="Home.tuneInUrl('add');"[% END %] [% END; PROCESS menuItem link={ key='RADIO_TUNEIN', value='tunein.html?' }; END; my_appsItems = BLOCK; FOREACH item = additionalLinkOrder.my_apps; IF additionalLinks.my_apps.exists(item); link.value = additionalLinks.my_apps.$item; link.target = additionalLinks.my_apps.$item.match('^http:') ? "mysb" : ""; link.key = item; PROCESS menuItem; END; END; FOREACH link = additionalLinks.apps; IF !additionalLinkOrder.my_apps.grep(link.key).size; additionalLinks.icons.${link.key} = additionalLinks.icons.${link.key} || 'html/images/plugin.png'; PROCESS menuItem; END; END; END; pluginsItems = BLOCK; FOREACH link = additionalLinks.plugins; IF link.key == 'ALARM'; NEXT UNLESS player; NEXT IF (nosetup || noserver); link.value = webroot _ 'settings/index.html?activePage=ALARM&'; link.target = 'sc_settings'; END; IF link.key == 'PLUGIN_LINE_OUT'; NEXT UNLESS player; link.value = webroot _ 'settings/index.html?activePage=AUDIO_SETTINGS&'; link.target = 'sc_settings'; END; IF link.key == 'PLUGIN_LINE_IN'; link.value = 'PLUGIN_LINE_IN_IN_USE' | getstring; link.value = "javascript:Home.setLineIn('" _ link.value _"');\" \""; END; # we want an icon for every item in the Extras menu... additionalLinks.icons.${link.key} = additionalLinks.icons.${link.key} || 'html/images/plugin.png'; PROCESS menuItem; END; END %] [% BLOCK menuItem %]
[% control=''; END %] [% pagetitle = "HOME" | string %] [% menu = BLOCK %]
[% END %] [% PROCESS pageheader.html noHomeLink=1 useSpecialExt="-browse" %] [% menu %] [% IF NOT warn AND (album_count OR artistcount OR song_count) %] [% infoTab = BLOCK %] [% album_count %] [% "WITH" | string -%] [%- song_count %] [% "BY" | string -%] [% artist_count %]. [% END %] [% END %]
[% PROCESS pagefooter.html %] [% END %]