[% IF mixeritems && !item.musicmagic_mixable %] [%- tmpitem = item -%][%# store item object so we don't lose it for good %] [%- item = mixeritems -%] [% END %] [%- IF item.musicmagic_mixable %] [% WRAPPER cmdlink cmdimage='b_mmmix.gif' cmdtitle='MUSICMAGIC_MIX' %] href="[% webroot %]plugins/MusicMagic/musicmagic_mix.html?[% IF item.playlist %]playlist=[% item.item | uri %]&[% ELSIF item.mmmixable_not_descend %]song=[% item.item | uri %]&[% ELSIF item.levelName == "year" %]year=[% item.text | uri %]&[% END %][% IF item.genre %]genre=[% item.genre | uri %]&[% END %][% IF item.levelName == "age" %]album=[% item.age %][% ELSE %][% IF item.contributor %]artist=[% item.contributor | uri %]&[% END %][% IF item.artist %]artist=[% item.artist.id | uri %]&[% END %][% END %][% IF item.album %]album=[% item.album | uri %]&[% END %]player=[% playerURI %]" [% IF browserTarget %]target="[% browserTarget %]"[% END %] [% END %] [% ELSE %] [%- PROCESS dummylink -%] [%- END %] [%- IF tmpitem; item = tmpitem; END -%]