<mt:Ignore>
USERPIC MODULE
This module is called to display a userpic for an author or commenter
with an optional link to a profile for the user. It can be called
with the following options:
size - specifies the height and width. Default is 36
alt - Specified the alt text. Default is 'user-pic'
userpic_type -
Provides a hint to select from typical formts. Recognized
values are 'profile', 'commenter' and 'userlist'
</mt:Ignore><mt:Ignore> DEFAULT USERPIC IMAGE </mt:Ignore><mt:StaticWebPathcat="images/default-userpic-90.jpg"setvar="defaultpic"><mt:Ignore> DEFAULT USERPIC SIZE </mt:Ignore><mt:Varname="size"default="36"setvar="size"><mt:Ignore> DEFAULT IMAGE ATTRIBUTES </mt:Ignore><mt:SetVarBlockname="attrstr">
width="<mt:Varname="size">"
height="<mt:Varname="size">"
alt="<mt:Varname="alt"default="user-pic">"
</mt:SetVarBlock><mt:Ignore> DEFAULT PROFILE URL </mt:Ignore><mt:Varname="profile_view_url"encode_html="1"setvar="href"><mt:Ignore>
USERPIC DISPLAY MODULE: This is the template that will be used to display
the userpic, possibly linked if an href is given
</mt:Ignore><mt:SetVarTemplatename="userpic_display"><mt:SetVarBlockname="image"><imgsrc="<$mt:Var name="src" default="$defaultpic"$>"
<$mt:Varname="attrstr"$> />
<mt:Iftag="CommenterAuthIconURL"><spanclass="auth-icon"><imgsrc="<$mt:CommenterAuthIconURL size="logo_small"$>"alt="<$mt:CommenterAuthType$>"/></span></mt:If></mt:SetVarBlock><mt:Ifname="href"><ahref="<$mt:Var name="href" trim="1">"><mt:Varname="image"></a><mt:Else><mt:Varname="image"></mt:If></mt:SetVarTemplate><mt:Ignore>
DETERMINING THE IMAGE SRC AND LINK HREF ATTRIBUTES
</mt:Ignore><mt:Ifname="userpic_type"eq="profile"><$mt:AuthorUserpicURLsetvar="src"$><mt:Elsename="userpic_type"eq="commenter"><mt:CommenterUserpicURLsetvar="src"><mt:IfCommenterIsAuthor><mt:Ignore> Native MTCS user </mt:Ignore><mt:SetVarBlockname="href"append="1"><$mt:CommenterID$></mt:SetVarBlock><mt:Else><mt:Iftag="CommenterID"><mt:Ignore> Authenticated user (OpenID, Vox, LJ, etc) </mt:Ignore><mt:CommenterURLsetvar="href"><mt:Else><mt:Ignore> Anonymous commenter </mt:Ignore><mt:CommentURLsetvar="href"></mt:If></mt:IfCommenterIsAuthor><mt:Elsename="userpic_type"eq="userlist"><mt:AuthorUserpicURLsetvar="src"><mt:SetVarBlockname="href"append="1"><$mt:AuthorID$></mt:SetVarBlock><mt:Else><mt:EntryAuthorUserpicURLsetvar="src"><mt:SetVarBlockname="href"append="1"><$mt:EntryAuthorID$></mt:SetVarBlock></mt:If><mt:Ignore>
DISPLAY THE USERPIC
</mt:Ignore><divclass="user-pic"><mt:Varname="userpic_display"trim="1"strip=""></div>