Skip to content

Commit

Permalink
#18 集成社区评论组件
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 14, 2020
1 parent 59bb386 commit 2bfda21
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/skins/9IPHP/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@
</#if>
</div>
</footer>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" class="fn__none">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Andrea/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@
<div class="clear"></div>
<div id="externalRelevantArticles" class="article-relative"></div>
</div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Bruce/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
</div>
</div>
</div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Bubble/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@
<#include "../../common-template/toc.ftl"/>
</div>
</#if>
<#if commentable>
<div class="wrapper">
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Casper/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@
<#include "../../common-template/toc.ftl"/>
</div>
</#if>
<#if commentable>
<div id="vcomment" class="wrapper" style="padding: 40px 0" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Community/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@
<div id="externalRelevantArticles" class="article-relative"></div>
</div>
</div>
<#if commentable>
<div id="vcomment" style="background-color: #ffffff; padding: 10px; margin-bottom: 40px" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Finding/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
<#if externalRelevantArticlesDisplayCount?? && 0 != externalRelevantArticlesDisplayCount>
<div id="externalRelevantArticles" class="fn-wrap"></div>
</#if>
<#if commentable>
<div id="vcomment" class="fn-wrap" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/skins/Jane/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@
</div>
</#if>
</div>

<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Medium/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@
<div class="fn-flex-1" id="relevantArticles"></div>
<div class="fn-flex-1" id="randomArticles"></div>
</div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/NeoEase/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@
<div id="externalRelevantArticles"></div>
</div>
</div>
<#if commentable>
<div id="vcomment" style="padding: 10px 0;" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/Pinghsu/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
</div>
<div class="body--gray post__gray">
<div class="wrapper comment">
<#if commentable>
<div id="vcomment" style="padding: 30px 0;" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/favourite/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@
<div id="randomArticles" class="article-relative"></div>
<div id="externalRelevantArticles" class="article-relative"></div>
</div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/i-nove/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
<div id="randomArticles" class="article-relative"></div>
<div id="externalRelevantArticles" class="article-relative"></div>
</div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/metro-hot/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
${article.articleSign.signHTML}
</#if>
</div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/next/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
</footer>
</article>
</div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/skins/nijigen/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@
</div>
</div>
</#if>

<#if commentable>
<div id="vcomment" class="module__content"
style="border-radius: 5px;margin-bottom: 30px;box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.2);transition: all .3s;"
data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" class="fn__none">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/owmx-3.0/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ ${topBarReplacement}
<div id="relevantArticles" class="article-relative"></div>
<div id="randomArticles"></div>
<div id="externalRelevantArticles"></div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/timeline/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ ${topBarReplacement}
<#if externalRelevantArticlesDisplayCount?? && 0 != externalRelevantArticlesDisplayCount>
<div id="externalRelevantArticles"></div>
</#if>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/tree-house/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
<div id="externalRelevantArticles" class="article-relative"></div>
</div>
<div class="line right"></div>
<#if commentable>
<div id="vcomment" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/skins/yilia/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
</#if>
<br>
</article>
<#if commentable>
<div id="vcomment" style="padding: 30px 60px 30px 50px;" data-name="${article.authorName}" data-postId="${article.oId}"></div>
</#if>
<div id="soloComments" style="display: none;">
<@comments commentList=articleComments article=article></@comments>
</div>
Expand Down

0 comments on commit 2bfda21

Please sign in to comment.