[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# # u : user object # simple : boolean, if true an unadorned name will be displayed (no gravatar, no menu) (default: false) # gravatar_size : size of the gravator icon (default 0, which disables the gravatar) # gravatar_only : boolean, if true output just the gravatar (not-simple only) # nick_only : boolean, if true, the nickname will be used instead of the full name # id : string, if provided the id of the vcard div #%] [% IF !u.id; "---"; RETURN; END; DEFAULT gravatar_size = 0; IF user.settings.show_gravatars.value != 'On'; gravatar_size = 0; END; %]
[% FILTER collapse %] [% IF simple %] [% IF user.id %] [% u.nick FILTER html %] [% ELSE %] [% u.nick FILTER html %] [% END %] [% ELSE %] [% IF gravatar_size %] [% END %] [% UNLESS gravatar_only %] [% nick_only ? u.nick : (u.name || u.nick) FILTER html %] [%~~%] [% END %] [% END %] [% END %]