35
classic/common-comment.ftl
Normal file
@@ -0,0 +1,35 @@
|
||||
<div id="${comment.oId}">
|
||||
<div class="comment-panel">
|
||||
<div class="comment-title">
|
||||
<#if "http://" == comment.commentURL>
|
||||
<a>${comment.commentName}</a>
|
||||
<#else>
|
||||
<a href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
|
||||
</#if>
|
||||
<#if comment.isReply>
|
||||
@
|
||||
<a href="${servePath}${article.permalink}#${comment.commentOriginalCommentId}"
|
||||
onmouseover="page.showComment(this, '${comment.commentOriginalCommentId}', 23);"
|
||||
onmouseout="page.hideComment('${comment.commentOriginalCommentId}')">${comment.commentOriginalCommentName}</a>
|
||||
</#if>
|
||||
<div class="right">
|
||||
${comment.commentDate2?string("yyyy-MM-dd HH:mm:ss")}
|
||||
|
||||
<#if article.commentable>
|
||||
<a class="no-underline"
|
||||
href="javascript:replyTo('${comment.oId}');">${replyLabel}</a>
|
||||
</#if>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="comment-body">
|
||||
<div class="left comment-picture">
|
||||
<img alt="${comment.commentName}" src="${comment.commentThumbnailURL}"/>
|
||||
</div>
|
||||
<div class="comment-content content-reset">
|
||||
${comment.commentContent}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 948 B |
Before Width: | Height: | Size: 910 B |
Before Width: | Height: | Size: 1012 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 970 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 3.9 KiB |
@@ -58,21 +58,6 @@ recentCommentsLabel=Recent Comments
|
||||
postCommentsLabel=Post Comment
|
||||
mostCommentArticlesLabel=Most Comment Articles
|
||||
mostViewCountArticlesLabel=Most View Articles
|
||||
em00Label=Smile
|
||||
em01Label=Laughter
|
||||
em02Label=Happy
|
||||
em03Label=Sad
|
||||
em04Label=Cry
|
||||
em05Label=No Comments
|
||||
em06Label=Fidget
|
||||
em07Label=Angry
|
||||
em08Label=Look Around
|
||||
em09Label=Surprise
|
||||
em10Label=Cool
|
||||
em11Label=Cheeky
|
||||
em12Label=Heart
|
||||
em13Label=Heart Broken
|
||||
em14Label=Devil
|
||||
linkLabel=Friend Links
|
||||
sumLabel=
|
||||
pageLabel=Page
|
||||
|
@@ -58,21 +58,6 @@ recentCommentsLabel=\u6700\u65B0\u8BC4\u8BBA
|
||||
postCommentsLabel=\u53D1\u8868\u8BC4\u8BBA
|
||||
mostCommentArticlesLabel=\u8BC4\u8BBA\u6700\u591A\u7684\u6587\u7AE0
|
||||
mostViewCountArticlesLabel=\u8BBF\u95EE\u6700\u591A\u7684\u6587\u7AE0
|
||||
em00Label=\u5FAE\u7B11
|
||||
em01Label=\u5927\u7B11
|
||||
em02Label=\u9AD8\u5174
|
||||
em03Label=\u60B2\u4F24
|
||||
em04Label=\u54ED\u6CE3
|
||||
em05Label=\u65E0\u8BED
|
||||
em06Label=\u70E6\u8E81
|
||||
em07Label=\u751F\u6C14
|
||||
em08Label=\u6211\u7785
|
||||
em09Label=\u60CA\u8BB6
|
||||
em10Label=\u9177
|
||||
em11Label=\u987D\u76AE
|
||||
em12Label=\u7231\u5FC3
|
||||
em13Label=\u5FC3\u788E
|
||||
em14Label=\u9B54\u9B3C
|
||||
linkLabel=\u53CB\u60C5\u94FE\u63A5
|
||||
sumLabel=\u5171
|
||||
pageLabel=\u9875
|
||||
|
@@ -5,41 +5,7 @@
|
||||
${noCommentLabel}
|
||||
</#if>
|
||||
<#list commentList as comment>
|
||||
<div id="${comment.oId}">
|
||||
<div class="comment-panel">
|
||||
<div class="comment-title">
|
||||
<#if "http://" == comment.commentURL>
|
||||
<a>${comment.commentName}</a>
|
||||
<#else>
|
||||
<a href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
|
||||
</#if>
|
||||
<#if comment.isReply>
|
||||
@
|
||||
<a href="${servePath}${article.permalink}#${comment.commentOriginalCommentId}"
|
||||
onmouseover="page.showComment(this, '${comment.commentOriginalCommentId}', 23);"
|
||||
onmouseout="page.hideComment('${comment.commentOriginalCommentId}')">${comment.commentOriginalCommentName}</a>
|
||||
</#if>
|
||||
<div class="right">
|
||||
${comment.commentDate?string("yyyy-MM-dd HH:mm:ss")}
|
||||
|
||||
<#if article.commentable>
|
||||
<a class="no-underline"
|
||||
href="javascript:replyTo('${comment.oId}');">${replyLabel}</a>
|
||||
</#if>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="comment-body">
|
||||
<div class="left comment-picture">
|
||||
<img alt="${comment.commentName}" src="${comment.commentThumbnailURL}"/>
|
||||
</div>
|
||||
<div class="comment-content content-reset">
|
||||
${comment.commentContent}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#include "common-comment.ftl"/>
|
||||
</#list>
|
||||
</div>
|
||||
<#if article.commentable>
|
||||
@@ -145,29 +111,6 @@
|
||||
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
|
||||
});
|
||||
|
||||
var addComment = function (result, state) {
|
||||
var commentHTML = '<div id="' + result.oId +
|
||||
'"><div class="comment-panel"><div class="comment-title">' + result.replyNameHTML;
|
||||
|
||||
if (state !== "") {
|
||||
var commentOriginalCommentName = $("#" + page.currentCommentId).find(".comment-title a").first().text();
|
||||
commentHTML += ' @ <a href="${servePath}' + result.commentSharpURL.split("#")[0] + '#' + page.currentCommentId + '"'
|
||||
+ 'onmouseover="page.showComment(this, \'' + page.currentCommentId + '\', 23);"'
|
||||
+ 'onmouseout="page.hideComment(\'' + page.currentCommentId + '\')">' + commentOriginalCommentName + '</a>';
|
||||
}
|
||||
|
||||
commentHTML += '<div class="right">' + result.commentDate
|
||||
+ ' <a class="no-underline" href="javascript:replyTo(\'' + result.oId + '\');">${replyLabel}</a>'
|
||||
+ '</div><div class="clear"></div></div><div class="comment-body">'
|
||||
+ '<div class="left comment-picture"><img alt="' + result.userName
|
||||
+ '" src="' + result.commentThumbnailURL + '"/>'
|
||||
+ '</div><div class="comment-content content-reset">' +
|
||||
Util.replaceEmString($("#comment" + state).val())
|
||||
+ '</div><div class="clear"></div>'
|
||||
+ '</div></div></div>';
|
||||
return commentHTML;
|
||||
}
|
||||
|
||||
var replyTo = function (id) {
|
||||
var commentFormHTML = "<table class='form comment-reply' id='replyForm'>";
|
||||
page.addReplyForm(id, commentFormHTML);
|
||||
|