[% control=''; END %]
[% pagetitle = "HOME" | string %]
[% menu = BLOCK %]
[% PROCESS menuItem link.key="MY_MUSIC" link.value="home.html?" expandable="my_music" %]
[%- my_musicItems -%]
[% IF additionalLinks.radios %]
[% PROCESS menuItem link.key="RADIO" link.value="home.html?" expandable="radio" %]
[%- radioItems -%]
[% END %]
[% IF additionalLinks.music_services %]
[% PROCESS menuItem link.key="MUSIC_SERVICES" link.value="home.html?" expandable="music_services" %]
[%- music_servicesItems -%]
[% END %]
[% IF favorites;
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;
FOREACH entry = favorites;
control = BLOCK;
IF entry.type == "audio";
WRAPPER playlink noTarget=1 -%]
href="javascript:void(0);" onClick="Utils.processCommandURL('[% webroot %]plugins/Favorites/index.html?action=play&index=[% loop.index %]&player=[% player | uri %]');"
[%- END;
WRAPPER addlink noTarget=1 -%]
href="javascript:void(0);" onClick="Utils.processCommandURL('[% webroot %]plugins/Favorites/index.html?action=add&index=[% loop.index %]&player=[% player | uri %]');"
[%- END;
ELSE;
PROCESS dummylink;
PROCESS dummylink;
END;
END;
PROCESS menuItem
link = {
key = entry.text,
value = webroot _ "plugins/Favorites/index.html?&index=" _ loop.index _ "&player=" _ playerURI
};
END
%]
[% END %]
[% IF additionalLinks.plugins %]
[% PROCESS menuItem link.key="PLUGINS" link.value="home.html?" expandable="plugins"; expandable = 0 %]
[%- pluginsItems -%]
[% END %]
[% END %]
[% PROCESS pageheader.html noHomeLink=1 %]
[% 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 %]