
%{
}%
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"form"}%%TMPL:END%
%TMPL:DEF{"revinfo"}%%TMPL:END%
%TMPL:DEF{"userinfo::photo::width"}%100%TMPL:END%
%TMPL:DEF{"beforetext"}%%TMPL:P{"userinfo"}%%TMPL:END%
%{
}%
%{
}%
%TMPL:DEF{"userinfo"}%
%TMPL:P{"userinfo::photo"}%
%TMPL:P{"userinfo::title"}%
%TMPL:P{"userinfo::details"}%
%CLEAR%
%TMPL:END%
%{
}%
%{
}%
%TMPL:DEF{"userinfo::title"}%
%IF{
"'%WEB%.%TOPIC%'/FirstName or '%WEB%.%TOPIC'/LastName"
then="%FORMFIELD{"FirstName"}% %FORMFIELD{"LastName"}%"
else="%TOPICTITLE%"
}%
%TMPL:END%
%{
}%
%{
}%
%TMPL:DEF{"userinfo::details"}%%RENDERFORDISPLAY{
topic="%BASEWEB%.%BASETOPIC%"
exclude="FirstName|LastName"
hideempty="on"
header="}%
%{
}%
%TMPL:DEF{"userinfo::photo"}%
%TMPL:P{context="TopicInteractionPluginEnabled" then="userinfo::photo::topicinteraction" else="userinfo::photo::default"}%
%TMPL:END%
%{
}%
%{
}%
%TMPL:DEF{"userinfo::photo::default"}%
%IMAGE{
"%IF{"'%BASEWEB%.%BASETOPIC%'/Photo"
then="$percntFORMFIELD{\"Photo\" topic=\"%BASEWEB%.%BASETOPIC%\"}$percnt"
else="%IF{"'%BASEWEB%.%BASETOPIC%'/attachments[name=~'\.(gif|png|jpe?g)$']"
then="%QUERY{"'%BASEWEB%.%BASETOPIC%'/attachments[name=~'\.(gif|png|jpe?g)'][0].name"}%"
else="%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/images/nobody.gif"
}%"
}%"
topic="%BASEWEB%.%BASETOPIC%"
type="plain"
align="left"
width="%TMPL:P{"userinfo::photo::width"}%"
}%
%TMPL:END%
%{
}%
%{
}%
%TMPL:DEF{"userinfo::photo::topicinteraction"}%
%ATTACHMENTS{
"%BASEWEB%.%BASETOPIC%"
name=".*\.(jpe?g|gif|png|JE?PG|GIF|PNG)"
warn="off"
limit="1"
sort="comment:name"
hidenull="off"
nullformat="$percntIMAGE{
\"nobody.gif\"
topic=\"System.MetaCommentPlugin\"
align=\"left\"
type=\"plain\"
width=\"%TMPL:P{"userinfo::photo::width"}%\"
crop=\"northwest\"
title=\"%FORMFIELD{"FirstName"}% %FORMFIELD{"LastName"}%\"
warn=\"off\"
}$percnt"
format="$percntIMAGE{
\"$name\"
topic=\"$web.$topic\"
align=\"left\"
type=\"plain\"
width=\"%TMPL:P{"userinfo::photo::width"}%\"
crop=\"northwest\"
title=\"%FORMFIELD{"FirstName"}% %FORMFIELD{"LastName"}%\"
warn=\"off\"
}$percnt"
}%
%TMPL:END%
%{
}%
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.