Changeset 10817
- Timestamp:
- 02/27/11 12:58:36 (2 years ago)
- Location:
- trunk/BlogAddOn
- Files:
-
- 7 edited
-
data/_BlogAddOn/BlogPost.txt (modified) (5 diffs)
-
data/_BlogAddOn/BlogPostCommentTemplate.txt (modified) (1 diff)
-
data/_BlogAddOn/BlogPostForm.txt (modified) (1 diff)
-
data/_BlogAddOn/BlogPostViewTemplate.txt (modified) (1 diff)
-
pub/System/BlogAddOn/screenshot_list.png (modified) (previous)
-
pub/System/BlogAddOn/screenshot_post.png (modified) (previous)
-
pub/System/BlogAddOn/screenshots.psd (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BlogAddOn/data/_BlogAddOn/BlogPost.txt
r10801 r10817 7 7 then="%display%" 8 8 else="all" 9 }%" 10 poutline="%IF{ 11 "defined outline and $outline!=''" 12 then="%outline%" 13 else="formfield(Summary)" 14 }%" 15 pdefaultoutline="summary(200)" 16 ppicsizesummary="%IF{ 17 "defined picsizesummary and $picsizesummary!=''" 18 then="%picsizesummary%" 19 else="85" 20 }%" 21 ppicsizeauthor="%IF{ 22 "defined picsizeauthor and $picsizeauthor!=''" 23 then="%picsizeauthor%" 24 else="50" 25 }%" 26 ppicsizecommenter="%IF{ 27 "defined picsizecommenter and $picsizecommenter!=''" 28 then="%picsizecommenter%" 29 else="20" 9 30 }%" 10 31 psort="%URLPARAM{ … … 213 234 } 214 235 .blogPostAddOnExcerpt {%IF{ 215 "defined BLOGADDON_AUTHOR_PICTURE_FIELD and $ 'BLOGADDON_AUTHOR_PICTURE_FIELD'!=''"236 "defined BLOGADDON_AUTHOR_PICTURE_FIELD and $BLOGADDON_AUTHOR_PICTURE_FIELD!=''" 216 237 then=" 217 margin-left: 50px;238 margin-left:%ppicsizeauthor%px; 218 239 padding-left:10px; 219 240 "}%} 220 241 .blogPostAddOnItem h3 { 221 font-size:1 15%;242 font-size:120%; 222 243 font-weight:bold; 223 padding:0 0 3px 0;244 padding:0 0 5px 0; 224 245 margin:0; 225 246 border:none; 226 247 } 227 248 .blogPostAddOnSummary { 228 margin:.5em 0 0 0; 249 margin:10px 0 0 0; 250 } 251 .blogPostAddOnHasSummaryImage .blogPostAddOnSummaryText { 252 margin-left:%ppicsizesummary%px; /* image width %ppicsizesummary%px */ 253 padding-left:15px; 254 } 255 .blogPostAddOnSummaryPicture { 256 float:left; 257 width:%ppicsizesummary%px; 258 min-height:%ppicsizesummary%px; 259 border:none; 260 margin:0 10px 5px 0; 229 261 } 230 262 .blogPostAddOnPicture { 231 263 float:left; 232 264 } 233 .blogPostAddOnLatestComment{265 ul.blogPostAddOnCommentStatus { 234 266 margin:.5em 0 0 0; 267 padding:0; 268 list-style:none; 269 position:relative; 270 width:35em; 271 } 272 ul.blogPostAddOnCommentStatus li { 273 display:block; 274 background:#f6f6f5; 275 padding:3px 0; 276 margin:0 0 2px 0; 277 font-size:86%; 278 } 279 ul.blogPostAddOnCommentStatus li .blogPostAddOnPicture { 280 margin:0 10px; 281 } 282 .blogPostAddOnCommentStatusText { 283 padding:0 10px; 235 284 } 236 285 .blogPostAddOnLatestCommentCount {} … … 315 364 %STARTSECTION{"blogPostAddOnItem"}%<div class='blogPostAddOnItem'> 316 365 %IF{ 317 "defined BLOGADDON_AUTHOR_PICTURE_FIELD and $ 'BLOGADDON_AUTHOR_PICTURE_FIELD'!=''"318 then="$percntINCLUDE{$quot%WEB%.BlogPost$quot section=$quotblogPostAuthorPicture$quot imgWeb=$quot%USERSWEB%$quot imgTopic=$quot$formfield(Author)$quot imgWidth=$quot 50$quot}$percnt"366 "defined BLOGADDON_AUTHOR_PICTURE_FIELD and $BLOGADDON_AUTHOR_PICTURE_FIELD!=''" 367 then="$percntINCLUDE{$quot%WEB%.BlogPost$quot section=$quotblogPostAuthorPicture$quot imgWeb=$quot%USERSWEB%$quot imgTopic=$quot$formfield(Author)$quot imgWidth=$quot%ppicsizeauthor%$quot}$percnt" 319 368 }%<div class='blogPostAddOnExcerpt'><h3>[[$web.$topic][$formfield(Title)]]</h3> 369 <!-- author, category, tags --> 320 370 <div class='blogPostAddOnHeaderInfo foswikiUnvisited'>$percntINCLUDE{$quot%WEB%.%TOPIC%$quot section=$quotblogPostInfo$quot web=$quot$web$quot topic=$quot$topic$quot author=$quot$formfield(Author)$quot}$percnt</div> 321 <div class='blogPostAddOnSummary'>$summary(200)</div>$percntSEARCH{$quot$topicComments%IF{"($WIKINAME = '%BLOGADDON_HIDE_COMMENTS%') OR (($WIKINAME ingroup '%BLOGADDON_HIDE_COMMENTS%')" then="n0nEToP1C"}%$quot web=$quot%IF{"defined BLOGADDON_COMMENTS_WEB and $BLOGADDON_COMMENTS_WEB!=''" then="%BLOGADDON_COMMENTS_WEB%" else="$web"}%$quot scope=$quottopic$quot nonoise=$quoton$quot format=$quot<span class='blogPostAddOnLatestComment foswikiGrayText'>Comments: $dollarcount(.*?(#CommentDate).*) - <a href='$percntSCRIPTURL{view}$percnt/$web/$topic?r=$dollarrev#BlogPostPrompt'>latest comment by $percntSPACEOUT{$quot<nop>$dollarwikiname$quot}$percnt</a> - $dollardate</span>$quot}$percnt 371 <!-- summary --> 372 <div class='blogPostAddOnSummary$percntIF{$quot'$formfield(SummaryImage)'!=''$quot then=$quot blogPostAddOnHasSummaryImage$quot}$percnt'>$percntIF{$quot'$formfield(SummaryImage)'!=''$quot then=$quot$percntINCLUDE{$quot%WEB%.%TOPIC%$quot section=$quotsummaryPicture$quot imgWeb=$quot$web$quot imgTopic=$quot$topic$quot imgName=$quot$formfield(SummaryImage)$quot}$percnt$quot}$percnt<div class='blogPostAddOnSummaryText'><div class='foswikiGrayText'>$percntIF{$quot'$%poutline%'!=''$quot then=$quot$%poutline%$quot else=$quot$%pdefaultoutline%$quot}$percnt</div>$percntSEARCH{$quot$topicComments%IF{"($WIKINAME = '%BLOGADDON_HIDE_COMMENTS%') OR (($WIKINAME ingroup '%BLOGADDON_HIDE_COMMENTS%')" then="n0nEToP1C"}%$quot web=$quot%IF{"defined BLOGADDON_COMMENTS_WEB and $BLOGADDON_COMMENTS_WEB!=''" then="%BLOGADDON_COMMENTS_WEB%" else="$web"}%$quot scope=$quottopic$quot nonoise=$quoton$quot format=$quot<ul class='blogPostAddOnCommentStatus'> 373 <li><div class='blogPostAddOnCommentStatusText'>Comments: $dollarcount(.*?(#CommentDate).*)</div></li><li>$dollarpercntIF{$dollarquot(defined BLOGADDON_AUTHOR_PICTURE_FIELD and $BLOGADDON_AUTHOR_PICTURE_FIELD!='') AND (istopic '$dollarwikiusername')$dollarquot then=$dollarquot$percntINCLUDE{$quot%TOPIC%$quot section=$quotblogPostAuthorPicture$quot imgTopic=$quot$dollarwikiusername$quot imgWeb=$quot%USERSWEB%$quot imgWidth=$quot%ppicsizecommenter%$quot}$percnt$dollarquot}$dollarpercnt<div class='blogPostAddOnCommentStatusText'><a href='$percntSCRIPTURL{view}$percnt/$web/$topic?r=$dollarrev#BlogPostPrompt'>Latest comment by $percntSPACEOUT{$quot<nop>$dollarwikiname$quot}$percnt</a><span class='foswikiGrayText'> - $dollardate</span></div></li></ul>$quot}$percnt</div></div> 322 374 </div><div class='foswikiClear'></div></div>%ENDSECTION{"blogPostAddOnItem"}% 323 375 … … 343 395 "%WEB%.%TOPIC%" 344 396 section="%includeSection%" 345 listtopic="%IF{"defined BLOGADDON_LIST_TOPIC and $ 'BLOGADDON_LIST_TOPIC'!=''" then="%BLOGADDON_LIST_TOPIC%" else="%WEB%.BlogPost"}%"397 listtopic="%IF{"defined BLOGADDON_LIST_TOPIC and $BLOGADDON_LIST_TOPIC!=''" then="%BLOGADDON_LIST_TOPIC%" else="%WEB%.BlogPost"}%" 346 398 authortopic="%author%" 347 399 }%%ENDSECTION{"_info"}% … … 388 440 389 441 <!-- ########################################################################### 390 authorPicture391 params: imgWeb, imgTopic , imgWidth442 blogPostAuthorPicture 443 params: imgWeb, imgTopic 392 444 --> 393 445 %STARTSECTION{"blogPostAuthorPicture"}%<div class='blogPostAddOnPicture'>%INCLUDE{ 446 "%TOPIC%" 447 section="%IF{"context ImagePluginEnabled" then="imagePluginImage" else="pubImage"}%" 448 }% 449 </div>%ENDSECTION{"blogPostAuthorPicture"}% 450 451 %STARTSECTION{"pubImage"}%$percntIF{$quot'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot<a href='%SCRIPTURL{view}%/%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'><img src='%PUBURL%/%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%/$percntQUERY{\"'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%\"}$percnt' width='%imgWidth%' title='%MAKETEXT{"Author page"}%' alt='%MAKETEXT{"Author picture"}%' /></a>$quot else=$quot<img src='%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/silhouette.gif' width='%imgWidth%' alt='' />$quot}$percnt%ENDSECTION{"pubImage"}% 452 453 %STARTSECTION{"imagePluginImage"}%$percntIF{$quot'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot$percntIMAGE{web=\"%imgWeb%\" topic=\"%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%\" href=\"%SCRIPTURL{view}%/%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%\" \"$percntQUERY{\"'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%\"}$percnt\" align=\"none\" zoom=\"on\" title=\"%MAKETEXT{"Author page"}%\" alt=\"%MAKETEXT{"Author picture"}%\" size=\"%imgWidth%\"}$percnt$quot else=$quot$percntIMAGE{web=\"%SYSTEMWEB%\" topic=\"PersonalInfoAddOn\" \"silhouette.gif\" align=\"none\" alt=\"\" size=\"%imgWidth%\"}$percnt$quot}$percnt%ENDSECTION{"imagePluginImage"}% 454 455 456 <!-- ########################################################################### 457 summaryPicture 458 params: imgWeb, imgTopic, imgName 459 --> 460 %STARTSECTION{"summaryPicture"}%<div class='blogPostAddOnSummaryPicture'>%INCLUDE{ 394 461 "%TOPIC%" 395 section="%IF{"context ImagePluginEnabled" then="imagePluginImage" else="pubImage"}%" 396 }% 397 </div>%ENDSECTION{"blogPostAuthorPicture"}% 398 399 %STARTSECTION{"pubImage"}%$percntIF{$quot'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot<a href='%SCRIPTURL{view}%/%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'><img src='%PUBURL%/%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%/$percntQUERY{\"'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%\"}$percnt' width='%imgWidth%' title='%MAKETEXT{"Author page"}%' alt='%MAKETEXT{"Author picture"}%' /></a>$quot else=$quot<img src='%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/silhouette.gif' width='%imgWidth%' alt='' />$quot}$percnt%ENDSECTION{"pubImage"}% 400 401 %STARTSECTION{"imagePluginImage"}%$percntIF{$quot'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%$quot then=$quot$percntIMAGE{web=\"%imgWeb%\" topic=\"%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%\" href=\"%SCRIPTURL{view}%/%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%\" \"$percntQUERY{\"'%imgWeb%/%CALC{$SUBSTITUTE(%imgTopic%,%USERSWEB%.,)}%'/%BLOGADDON_AUTHOR_PICTURE_FIELD%\"}$percnt\" align=\"none\" title=\"%MAKETEXT{"Author page"}%\" alt=\"%MAKETEXT{"Author picture"}%\" size=\"%imgWidth%\"}$percnt$quot else=$quot$percntIMAGE{web=\"%SYSTEMWEB%\" topic=\"PersonalInfoAddOn\" \"silhouette.gif\" align=\"none\" alt=\"\" size=\"%imgWidth%\"}$percnt$quot}$percnt%ENDSECTION{"imagePluginImage"}% 462 section="%IF{"context ImagePluginEnabled" then="summaryImagePluginImage" else="summaryPubImage"}%" 463 imgWidth="%ppicsizesummary%" 464 }% 465 </div>%ENDSECTION{"summaryPicture"}% 466 467 %STARTSECTION{"summaryPubImage"}%<a href='%SCRIPTURL{view}%/%imgWeb%/%imgTopic%'><img src='%PUBURL%/%imgWeb%/%imgTopic%/%imgName%' width='%imgWidth%' alt='' /></a>%ENDSECTION{"summaryPubImage"}% 468 469 %STARTSECTION{"summaryImagePluginImage"}%$percntIMAGE{web=\"%imgWeb%\" topic=\"%imgTopic%\" \"%imgName%\" align=\"center\" alt=\"\" size=\"%imgWidth%x%imgWidth%\" zoom=\"on\" href=\"%SCRIPTURL{view}%/%imgWeb%/%imgTopic%\"}$percnt%ENDSECTION{"summaryImagePluginImage"}% 402 470 403 471 <!-- ########################################################################### -
trunk/BlogAddOn/data/_BlogAddOn/BlogPostCommentTemplate.txt
r10798 r10817 8 8 <verbatim> 9 9 %TMPL:DEF{FORM:blogpost}%#BlogPostPrompt 10 <form method="post" action="%SCRIPTURL{save}%/%IF{"defined BLOGADDON_COMMENTS_WEB and $BLOGADDON_COMMENTS_WEB!=''" then="%BLOGADDON_COMMENTS_WEB%" else="%BASEWEB%"}%/%BASETOPIC%Comments" enctype="application/x-www-form-urlencoded" name="blogpostcomment" id="blogpostcomment"> 10 <form method="post" action="%SCRIPTURL{save}%/%IF{"defined BLOGADDON_COMMENTS_WEB and $BLOGADDON_COMMENTS_WEB!=''" then="%BLOGADDON_COMMENTS_WEB%" else="%BASEWEB%"}%/%BASETOPIC%Comments" enctype="application/x-www-form-urlencoded" name="blogpostcomment" id="blogpostcomment">%IF{ 11 "$BLOGADDON_ALLOW_GUEST_COMMENTS='1'" 12 then='<input type="hidden" name="username" value="WikiGuest" /> 13 <input type="hidden" name="password" value="" />' 14 }% 11 15 <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> 12 16 <input type="hidden" name="topicparent" value="%BASEWEB%.%BASETOPIC%" /> -
trunk/BlogAddOn/data/_BlogAddOn/BlogPostForm.txt
r10745 r10817 6 6 | *Name* | *Type* | *Size* | *Values* | *Tooltip message* | *Attributes* | 7 7 | Title | text | 80 | | Blog post title | M,H | 8 | Author | text | 50 | %WIKINAME% | Blog post author | M,H | 9 | <nop>PublishingDate | date | 30 | %GMTIME{"$day $month $year"}% | | H | 8 10 | Category | select | 1 | %CALC{$LISTJOIN($comma,$LISTSORT($LISTUNIQUE(%FORMFIELD{"Category" topic="%BASEWEB%.%BASETOPIC%"}%, %SEARCH{" *\s*.*?" topic="BlogCategory" type="regex" multiple="on" casesensitive="on" nonoise="on" separator="," format="$pattern(.* \*\s*([^\n]*).*)"}%)))}% | Edit values in BlogCategory | H | 9 | Author | text | 50 | %WIKINAME% | Blog post author | M,H |10 11 | Tags | text | 100 | | | H | 11 | <nop>PublishingDate | date | 30 | %GMTIME{"$day $month $year"}% | | H | 12 | Summary | textarea | 100x4 | | | H | 13 | <nop>SummaryImage | select | 1 | ,%QUERY{"'%BASEWEB%.%BASETOPIC%'/attachments[NOT name=~'igp.*'].name"}% | | H | 12 14 | <nop>CommentsDisabled | checkbox | 1 | disabled | | H | 13 15 | <nop>CommentsClosed | checkbox | 1 | closed | | H | -
trunk/BlogAddOn/data/_BlogAddOn/BlogPostViewTemplate.txt
r10802 r10817 67 67 }%" 68 68 }%</div><div class="foswikiClear"></div></div></noautolink> 69 % TEXT% %IF{"(lc(CommentsDisabled)!='disabled') AND NOT (($WIKINAME = '%BLOGADDON_HIDE_COMMENTS%') OR (($WIKINAME ingroup '%BLOGADDON_HIDE_COMMENTS%'))" then="$percntTMPL:P{$quotcomments$quot}$percnt"}%69 %FORMFIELD{"Summary" format="<p>$value</p>"}% %TEXT% %IF{"(lc(CommentsDisabled)!='disabled') AND NOT (($WIKINAME = '%BLOGADDON_HIDE_COMMENTS%') OR (($WIKINAME ingroup '%BLOGADDON_HIDE_COMMENTS%'))" then="$percntTMPL:P{$quotcomments$quot}$percnt"}% 70 70 #BlogPostEnd 71 71 %TMPL:END%
Note: See TracChangeset
for help on using the changeset viewer.
