Skip to content

Commit

Permalink
Item10348: BLOGPOSTADDON_AUTHOR_PICTURE_FIELD preference may not be set
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/BlogAddOn@10701 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Feb 14, 2011
1 parent 66b364f commit 74dfd05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions data/_BlogAddOn/BlogPost.txt
Expand Up @@ -14,7 +14,7 @@ text="<literal><style type=\"text/css\" media=\"all\">
border-bottom:1px solid #eee;
}
.blogPostAddOnExcerpt {%IF{
"$BLOGPOSTADDON_AUTHOR_PICTURE_FIELD"
"defined BLOGPOSTADDON_AUTHOR_PICTURE_FIELD and $BLOGPOSTADDON_AUTHOR_PICTURE_FIELD!=''"
then="
margin-left:50px;
padding-left:15px;
Expand Down Expand Up @@ -147,7 +147,7 @@ blogPostAddOnItem
-->
%STARTSECTION{"blogPostAddOnItem"}%<div class='blogPostAddOnItem'>
%IF{
"$BLOGPOSTADDON_AUTHOR_PICTURE_FIELD"
"defined BLOGPOSTADDON_AUTHOR_PICTURE_FIELD and $BLOGPOSTADDON_AUTHOR_PICTURE_FIELD!=''"
then="$percntINCLUDE{$quot%WEB%.BlogPost$quot section=$quotblogPostAuthorPicture$quot imgWeb=$quot%USERSWEB%$quot imgTopic=$quot$formfield(Author)$quot imgWidth=$quot50$quot}$percnt"
}%<div class='blogPostAddOnExcerpt'><h3>[[$web.$topic][$formfield(Title)]]</h3>
<div class='blogPostAddOnHeaderInfo foswikiUnvisited'>$percntINCLUDE{$quot%WEB%.BlogPost$quot section=$quotblogPostInfo$quot web=$quot$web$quot topic=$quot$topic$quot}$percnt</div>
Expand Down Expand Up @@ -203,8 +203,8 @@ section="%IF{"context ImagePluginEnabled" then="imagePluginImage" else="pubImage
}%
</div>%ENDSECTION{"blogPostAuthorPicture"}%

%STARTSECTION{"pubImage"}%$percntIF{$quot'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot<img src='%PUBURL%/%imgWeb%/%imgTopic%/$percntQUERY{\"'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%\"}$percnt' width='%imgWidth%' />$quot else=$quot<img src='%PUBURL%/%SYSTEMWEB%/BlogAddOn/silhouette.gif' width='%imgWidth%' />$quot}$percnt%ENDSECTION{"pubImage"}%
%STARTSECTION{"pubImage"}%$percntIF{$quot'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot<img src='%PUBURL%/%imgWeb%/%imgTopic%/$percntQUERY{\"'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%\"}$percnt' width='%imgWidth%' />$quot else=$quot<img src='%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/silhouette.gif' width='%imgWidth%' />$quot}$percnt%ENDSECTION{"pubImage"}%

%STARTSECTION{"imagePluginImage"}%$percntIF{$quot'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot$percntIMAGE{web=\"%imgWeb%\" topic=\"%imgTopic%\" \"$percntQUERY{\"'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%\"}$percnt\" align=\"none\" title=\"%MAKETEXT{"Enlarge"}%\" size=\"%imgWidth%\"}$percnt$quot else=$quot$percntIMAGE{web=\"%SYSTEMWEB%\" topic=\"BlogAddOn\" \"silhouette.gif\" align=\"none\" size=\"%imgWidth%\"}$percnt$quot}$percnt%ENDSECTION{"imagePluginImage"}%
%STARTSECTION{"imagePluginImage"}%$percntIF{$quot'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot$percntIMAGE{web=\"%imgWeb%\" topic=\"%imgTopic%\" \"$percntQUERY{\"'%imgWeb%/%imgTopic%'/%BLOGPOSTADDON_AUTHOR_PICTURE_FIELD%\"}$percnt\" align=\"none\" title=\"%MAKETEXT{"Enlarge"}%\" size=\"%imgWidth%\"}$percnt$quot else=$quot$percntIMAGE{web=\"%SYSTEMWEB%\" topic=\"PersonalInfoAddOn\" \"silhouette.gif\" align=\"none\" size=\"%imgWidth%\"}$percnt$quot}$percnt%ENDSECTION{"imagePluginImage"}%

</verbatim>
4 changes: 2 additions & 2 deletions data/_BlogAddOn/BlogPostViewTemplate.txt
Expand Up @@ -19,13 +19,13 @@ text="<literal><style type=\"text/css\" media=\"all\">
margin:0 10px 10px 0;
}
.blogPostAddOnHeaderInfo {%IF{
"$BLOGPOSTADDON_AUTHOR_PICTURE_FIELD"
"defined BLOGPOSTADDON_AUTHOR_PICTURE_FIELD and $BLOGPOSTADDON_AUTHOR_PICTURE_FIELD!=''"
then="
padding-left:65px;
"}%}
</style></literal>"
}%<div class="foswikiTopic">%IF{
"$BLOGPOSTADDON_AUTHOR_PICTURE_FIELD"
"defined BLOGPOSTADDON_AUTHOR_PICTURE_FIELD and $BLOGPOSTADDON_AUTHOR_PICTURE_FIELD!=''"
then="%INCLUDE{
"%WEB%.BlogPost" section="blogPostAuthorPicture"
imgWeb="%USERSWEB%"
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Contrib/BlogAddOn.pm
Expand Up @@ -9,7 +9,7 @@ our $VERSION = '$Rev$';
# This is a free-form string you can use to "name" your own plugin version.
# It is *not* used by the build automation tools, but is reported as part
# of the version number in PLUGINDESCRIPTIONS.
our $RELEASE = '1.5';
our $RELEASE = '1.5.1';

our $SHORTDESCRIPTION = 'Automates build and packaging process, including installer generation, for extension modules.';

Expand Down

0 comments on commit 74dfd05

Please sign in to comment.