Difference: NatSkinUserViewTemplate (r2 vs. r1)

$n" }%%TMPL:END% %{$n" }%%TMPL:END% %{
r2 - 19 Nov 2013 - 11:39 - AdminUser r1 - 19 Nov 2013 - 11:39 - UnknownUser

%{

%{

}%
%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: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"}%

%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::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="$n"
  footer="
" separator="" format="
$percntSPACEOUT{$title}$percnt: $value
}%
%TMPL:DEF{"userinfo::details"}%%RENDERFORDISPLAY{
  topic="%BASEWEB%.%BASETOPIC%"
  exclude="FirstName|LastName"
  hideempty="on"
  header="$n"
  footer="
" separator="" format="
$percntSPACEOUT{$title}$percnt: $value

}%

}%

%{

%{

}%
%TMPL:DEF{"userinfo::photo"}%
%TMPL:P{context="TopicInteractionPluginEnabled" then="userinfo::photo::topicinteraction" else="userinfo::photo::default"}%
%TMPL:END% %{
}%
%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::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%
%{
}%
%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%
%{

}%

}%

r2 - 19 Nov 2013 - 11:39 - AdminUser r1 - 19 Nov 2013 - 11:39 - UnknownUser

View topic | View difference interwoven | History: r3 < r2 < r1 | More topic actions
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback