[% 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; music_servicesItems = BLOCK; FOREACH item = additionalLinkOrder.music_services; IF additionalLinks.music_services.exists(item); link.value = additionalLinks.music_services.$item; link.key = item; PROCESS menuItem; END; END; FOREACH link = additionalLinks.music_services; IF !additionalLinkOrder.music_services.grep(link.key).size; additionalLinks.icons.${link.key} = additionalLinks.icons.${link.key} || 'html/images/plugin.png'; PROCESS menuItem; END; END; IF additionalLinks.radios.exists('PLUGIN_PANDORA_MODULE_NAME'); PROCESS menuItem link={ key='PLUGIN_PANDORA_MODULE_NAME', value=additionalLinks.radios.PLUGIN_PANDORA_MODULE_NAME }; END; END; pluginsItems = BLOCK; FOREACH link = additionalLinks.plugins; IF link.key == 'ALARM'; NEXT UNLESS player; 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 %]