[% 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; FOREACH item = additionalLinkOrder.browse; IF additionalLinks.browse.exists(item); link = { key=item, value=additionalLinks.browse.$item }; additionalLinks.icons.${link.key} = additionalLinks.icons.${link.key} || 'html/images/plugin.png'; IF link.key == 'FAVORITES'; useFavorites = 1; ELSIF link.key == 'SEARCH' %]
[% title = link.key | getstring %]
[% title %] ([% "ADVANCEDSEARCH" | string %])
[% ELSE; PROCESS menuItem; END; 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('^https?:') ? "_blank" : ""; 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 %]
[% string = link.key; stringUC = link.key | upper; IF string == stringUC; string = link.key | getstring; END; %] [% IF expandable %] [% ELSE %] [% END %] [% IF (additionalLinks.icons.item(link.key) || link.icon) && !noIcon; link.icon = additionalLinks.icons.item(link.key) || link.icon; %]
[% END %] [% IF dontGetString; link.key | html; ELSE; string | html; END %] [% IF link.icon && !noIcon %]
[% END %] [% IF !expandable %] [% END %] [% IF control %] [% control %] [% END %]
[% control=''; END %] [% pagetitle = stringHOME %] [% menu = BLOCK %]
[% IF hasLibrary %] [% expanded = cookies.${"Squeezebox-expanded-MY_MUSIC"}.value %] [% PROCESS menuItem link.key="MY_MUSIC" link.value="home.html?" expandable="my_music" noIcon=1 %]
[%- my_musicItems -%]
[% END %] [% expanded = cookies.${"Squeezebox-expanded-RADIO"}.value %] [% PROCESS menuItem link.key="RADIO" link.value="home.html?" expandable="radio" noIcon=1 %]
[%- radioItems -%]
[% IF additionalLinks.my_apps %] [% expanded = cookies.${"Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME"}.value %] [% PROCESS menuItem link.key="PLUGIN_MY_APPS_MODULE_NAME" link.value="home.html?" expandable="my_apps" noIcon=1 %]
[%- my_appsItems -%]
[% END %] [% IF favorites; expanded = cookies.${"Squeezebox-expanded-FAVORITES"}.value; control = BLOCK; WRAPPER editlink noTarget=1; 'href="' _ webroot _ 'plugins/Favorites/index.html?fav"'; END; END; PROCESS menuItem expandable=1 noIcon=1 link = { key = 'FAVORITES', value = additionalLinks.browse.FAVORITES } %]
[% expandable = 0; dontGetString = 1; FOREACH entry = favorites; control = BLOCK; IF entry.type == "audio" || entry.type == "playlist"; WRAPPER playlink noTarget=1 -%] href="javascript:void(0);" onClick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest('[% webroot %]plugins/Favorites/index.html?action=play&index=[% loop.index %]&player=[% playerURI %]', true, SqueezeJS.string('connecting_for'));" [%- END; IF allLinks; WRAPPER insertlink noTarget=1 -%] href="javascript:void(0);" onClick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest('[% webroot %]plugins/Favorites/index.html?action=insert&index=[% loop.index %]&player=[% playerURI %]', true, SqueezeJS.string('connecting_for'));" [%- END; END; WRAPPER addlink noTarget=1 -%] href="javascript:void(0);" onClick="SqueezeJS.UI.setProgressCursor();SqueezeJS.Controller.urlRequest('[% webroot %]plugins/Favorites/index.html?action=add&index=[% loop.index %]&player=[% playerURI %]', true, SqueezeJS.string('connecting_for'));" [%- END; ELSE; PROCESS dummylink; PROCESS dummylink; END; END; PROCESS menuItem noIcon=!entry.icon link = { icon = entry.icon, key = entry.text, value = webroot _ "plugins/Favorites/index.html?sess=1&index=" _ loop.index _ "&player=" _ playerURI }; END; noIcon=1 dontGetString = 0; %]
[% END %] [% IF additionalLinks.plugins %] [% expanded = cookies.${"Squeezebox-expanded-PLUGINS"}.value %] [% PROCESS menuItem link.key="PLUGINS" link.value="home.html?" expandable="plugins"; expandable = 0 %]
[%- pluginsItems -%]
[% END %]
[% 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 %] [% stringBY -%] [% artist_count %][% IF library_name; ' (' _ library_name _ ')'; END %]. [% END %] [% END %]
[% PROCESS pagefooter.html %] [% END %]