Van 2017-08-31 00:43:25 +08:00
parent 399073c5bd
commit 9f7b1a6a07
154 changed files with 2912 additions and 2912 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,88 +1,88 @@
<div class="copyright">
&copy; ${year} - <a href="${servePath}">${blogTitle}</a>${footerContent}<br/>
Powered by <a href="http://b3log.org" target="_blank">B3log 开源</a> • <a href="https://hacpai.com/tag/solo" target="_blank">Solo</a> ${version}<br/>
Theme by <a rel="friend" href="http://www.madeincima.eu/" target="_blank">Andrea</a> & <a rel="friend" href="http://vanessa.b3log.org" target="_blank">Vanessa</a>.
</div>
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript">
var latkeConfig = {
"servePath": "${servePath}",
"staticServePath": "${staticServePath}"
};
var Label = {
"adminLabel": "${adminLabel}",
"logoutLabel": "${logoutLabel}",
"skinDirName": "${skinDirName}",
"loginLabel": "${loginLabel}",
"em00Label": "${em00Label}",
"em01Label": "${em01Label}",
"em02Label": "${em02Label}",
"em03Label": "${em03Label}",
"em04Label": "${em04Label}",
"em05Label": "${em05Label}",
"em06Label": "${em06Label}",
"em07Label": "${em07Label}",
"em08Label": "${em08Label}",
"em09Label": "${em09Label}",
"em10Label": "${em10Label}",
"em11Label": "${em11Label}",
"em12Label": "${em12Label}",
"em13Label": "${em13Label}",
"em14Label": "${em14Label}"
};
// init brush
var buildBrush = function () {
$("#brush").height(document.documentElement.scrollHeight - document.documentElement.clientHeight).css("background-position",
parseInt((document.documentElement.scrollWidth - 910) / 2 - 56) + "px -150px");
};
// init
$(document).ready(function () {
Util.init();
Util.replaceSideEm($("#naviComments li .side-comment"));
// brush
buildBrush();
$(window).resize(function () {
buildBrush();
});
// bg
$("#changeBG a").click(function () {
if (this.className !== 'selected') {
switch (this.id) {
case "greyBG":
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-grey.jpg)");
break;
case "blueBG":
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-blue.jpg)");
break;
case "brownBG":
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-brown.jpg)");
break;
}
$("#changeBG a").removeClass();
this.className = "selected";
}
});
// page navi
$(".side-tool li li a").hover(function () {
if (parseInt($(this).css("padding-left")) === 9) {
$(this).animate({
"padding-left": "54px"
}, 600 );
}
}, function () {
$(this).animate({
"padding-left": "9px"
}, 600 );
});
});
</script>
<script type="text/javascript" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<div class="copyright">
&copy; ${year} - <a href="${servePath}">${blogTitle}</a>${footerContent}<br/>
Powered by <a href="http://b3log.org" target="_blank">B3log 开源</a> • <a href="https://hacpai.com/tag/solo" target="_blank">Solo</a> ${version}<br/>
Theme by <a rel="friend" href="http://www.madeincima.eu/" target="_blank">Andrea</a> & <a rel="friend" href="http://vanessa.b3log.org" target="_blank">Vanessa</a>.
</div>
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript">
var latkeConfig = {
"servePath": "${servePath}",
"staticServePath": "${staticServePath}"
};
var Label = {
"adminLabel": "${adminLabel}",
"logoutLabel": "${logoutLabel}",
"skinDirName": "${skinDirName}",
"loginLabel": "${loginLabel}",
"em00Label": "${em00Label}",
"em01Label": "${em01Label}",
"em02Label": "${em02Label}",
"em03Label": "${em03Label}",
"em04Label": "${em04Label}",
"em05Label": "${em05Label}",
"em06Label": "${em06Label}",
"em07Label": "${em07Label}",
"em08Label": "${em08Label}",
"em09Label": "${em09Label}",
"em10Label": "${em10Label}",
"em11Label": "${em11Label}",
"em12Label": "${em12Label}",
"em13Label": "${em13Label}",
"em14Label": "${em14Label}"
};
// init brush
var buildBrush = function () {
$("#brush").height(document.documentElement.scrollHeight - document.documentElement.clientHeight).css("background-position",
parseInt((document.documentElement.scrollWidth - 910) / 2 - 56) + "px -150px");
};
// init
$(document).ready(function () {
Util.init();
Util.replaceSideEm($("#naviComments li .side-comment"));
// brush
buildBrush();
$(window).resize(function () {
buildBrush();
});
// bg
$("#changeBG a").click(function () {
if (this.className !== 'selected') {
switch (this.id) {
case "greyBG":
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-grey.jpg)");
break;
case "blueBG":
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-blue.jpg)");
break;
case "brownBG":
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-brown.jpg)");
break;
}
$("#changeBG a").removeClass();
this.className = "selected";
}
});
// page navi
$(".side-tool li li a").hover(function () {
if (parseInt($(this).css("padding-left")) === 9) {
$(this).animate({
"padding-left": "54px"
}, 600 );
}
}, function () {
$(this).animate({
"padding-left": "9px"
}, 600 );
});
});
</script>
<script type="text/javascript" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
${plugins}

View File

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 149 KiB

View File

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 149 KiB

View File

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 149 KiB

View File

Before

Width:  |  Height:  |  Size: 110 B

After

Width:  |  Height:  |  Size: 110 B

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View File

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -1,120 +1,120 @@
<#macro comments commentList article>
<h2 class="comment-label">${commentLabel}</h2>
<div id="comments">
<#list commentList as comment>
<#include "common-comment.ftl"/>
</#list>
</div>
<#if article.commentable>
<table id="commentForm" class="comment-form" cellpadding="0" cellspacing="0">
<tbody>
<#if !isLoggedIn>
<tr>
<th width="115px">
${commentNameLabel}
</th>
<td>
<input type="text" id="commentName"/>
</td>
</tr>
<tr>
<th>
${commentEmailLabel}
</th>
<td>
<input type="text" id="commentEmail"/>
</td>
</tr>
<tr>
<th>
${commentURLLabel}
</th>
<td>
<input type="text" id="commentURL"/>
</td>
</tr>
</#if>
<tr>
<th>
${commentEmotionsLabel}
</th>
<td id="emotions">
<span class="em00" title="${em00Label}"></span>
<span class="em01" title="${em01Label}"></span>
<span class="em02" title="${em02Label}"></span>
<span class="em03" title="${em03Label}"></span>
<span class="em04" title="${em04Label}"></span>
<span class="em05" title="${em05Label}"></span>
<span class="em06" title="${em06Label}"></span>
<span class="em07" title="${em07Label}"></span>
<span class="em08" title="${em08Label}"></span>
<span class="em09" title="${em09Label}"></span>
<span class="em10" title="${em10Label}"></span>
<span class="em11" title="${em11Label}"></span>
<span class="em12" title="${em12Label}"></span>
<span class="em13" title="${em13Label}"></span>
<span class="em14" title="${em14Label}"></span>
</td>
</tr>
<tr>
<th valign="top">
${commentContentLabel}
</th>
<td>
<textarea rows="10" id="comment"></textarea>
</td>
</tr>
<#if !isLoggedIn>
<tr>
<th>
${captchaLabel}
</th>
<td>
<input type="text" id="commentValidate"/>
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
</td>
</tr>
</#if>
<tr>
<td colspan="2" align="right">
<button class="right" id="submitCommentButton" onclick="page.submitComment();">${submmitCommentLabel}</button>
<span style="margin-top: 13px;" class="right error-msg" id="commentErrorTip"></span>
</td>
</tr>
</tbody>
</table>
</#if>
</#macro>
<#macro comment_script oId>
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<script type="text/javascript">
var page = new Page({
"nameTooLongLabel": "${nameTooLongLabel}",
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
"mailInvalidLabel": "${mailInvalidLabel}",
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
"captchaErrorLabel": "${captchaErrorLabel}",
"loadingLabel": "${loadingLabel}",
"oId": "${oId}",
"skinDirName": "${skinDirName}",
"blogHost": "${blogHost}",
"randomArticles1Label": "${randomArticles1Label}",
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
});
var replyTo = function (id) {
var commentFormHTML = "<table class='comment-form' id='replyForm' cellpadding='0' cellspacing='0'>";
page.addReplyForm(id, commentFormHTML);
};
(function () {
page.load();
// emotions
page.replaceCommentsEm("#comments .comment-content");
<#nested>
})();
</script>
<#macro comments commentList article>
<h2 class="comment-label">${commentLabel}</h2>
<div id="comments">
<#list commentList as comment>
<#include "common-comment.ftl"/>
</#list>
</div>
<#if article.commentable>
<table id="commentForm" class="comment-form" cellpadding="0" cellspacing="0">
<tbody>
<#if !isLoggedIn>
<tr>
<th width="115px">
${commentNameLabel}
</th>
<td>
<input type="text" id="commentName"/>
</td>
</tr>
<tr>
<th>
${commentEmailLabel}
</th>
<td>
<input type="text" id="commentEmail"/>
</td>
</tr>
<tr>
<th>
${commentURLLabel}
</th>
<td>
<input type="text" id="commentURL"/>
</td>
</tr>
</#if>
<tr>
<th>
${commentEmotionsLabel}
</th>
<td id="emotions">
<span class="em00" title="${em00Label}"></span>
<span class="em01" title="${em01Label}"></span>
<span class="em02" title="${em02Label}"></span>
<span class="em03" title="${em03Label}"></span>
<span class="em04" title="${em04Label}"></span>
<span class="em05" title="${em05Label}"></span>
<span class="em06" title="${em06Label}"></span>
<span class="em07" title="${em07Label}"></span>
<span class="em08" title="${em08Label}"></span>
<span class="em09" title="${em09Label}"></span>
<span class="em10" title="${em10Label}"></span>
<span class="em11" title="${em11Label}"></span>
<span class="em12" title="${em12Label}"></span>
<span class="em13" title="${em13Label}"></span>
<span class="em14" title="${em14Label}"></span>
</td>
</tr>
<tr>
<th valign="top">
${commentContentLabel}
</th>
<td>
<textarea rows="10" id="comment"></textarea>
</td>
</tr>
<#if !isLoggedIn>
<tr>
<th>
${captchaLabel}
</th>
<td>
<input type="text" id="commentValidate"/>
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
</td>
</tr>
</#if>
<tr>
<td colspan="2" align="right">
<button class="right" id="submitCommentButton" onclick="page.submitComment();">${submmitCommentLabel}</button>
<span style="margin-top: 13px;" class="right error-msg" id="commentErrorTip"></span>
</td>
</tr>
</tbody>
</table>
</#if>
</#macro>
<#macro comment_script oId>
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<script type="text/javascript">
var page = new Page({
"nameTooLongLabel": "${nameTooLongLabel}",
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
"mailInvalidLabel": "${mailInvalidLabel}",
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
"captchaErrorLabel": "${captchaErrorLabel}",
"loadingLabel": "${loadingLabel}",
"oId": "${oId}",
"skinDirName": "${skinDirName}",
"blogHost": "${blogHost}",
"randomArticles1Label": "${randomArticles1Label}",
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
});
var replyTo = function (id) {
var commentFormHTML = "<table class='comment-form' id='replyForm' cellpadding='0' cellspacing='0'>";
page.addReplyForm(id, commentFormHTML);
};
(function () {
page.load();
// emotions
page.replaceCommentsEm("#comments .comment-content");
<#nested>
})();
</script>
</#macro>

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because it is too large Load Diff

View File

@ -1,106 +1,106 @@
<div class="content paddingTop12 paddingBottom12">
<div class="left">
<div>
<span style="color: gray;">&copy; ${year}</span> - <a href="${servePath}">${blogTitle}</a>${footerContent}
</div>
Powered by <a href="http://b3log.org" target="_blank">B3log 开源</a> • <a href="https://hacpai.com/tag/solo" target="_blank">Solo</a> ${version}&nbsp;&nbsp;
Theme by <a rel="friend" href="http://vanessa.b3log.org" target="_blank">Vanessa</a> & <a rel="friend" href="http://demo.woothemes.com/skeptical/" target="_blank">Skeptical</a>.
</div>
<div class="right nowrap">
<div class="goTop right" onclick="Util.goTop();">${goTopLabel}</div>
<br/>
<div class="right">
${viewCount1Label}
<span class='error-msg'>
${statistic.statisticBlogViewCount}
</span>
&nbsp;&nbsp;
${articleCount1Label}
<span class='error-msg'>
${statistic.statisticPublishedBlogArticleCount}
</span>
&nbsp;&nbsp;
${commentCount1Label}
<span class='error-msg'>
${statistic.statisticPublishedBlogCommentCount}
</span>
</div>
</div>
<div class="clear"></div>
</div>
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<script type="text/javascript">
var latkeConfig = {
"servePath": "${servePath}",
"staticServePath": "${staticServePath}"
};
var Label = {
"adminLabel": "${adminLabel}",
"logoutLabel": "${logoutLabel}",
"skinDirName": "${skinDirName}",
"loginLabel": "${loginLabel}",
"loginLabel": "${loginLabel}",
"em00Label": "${em00Label}",
"em01Label": "${em01Label}",
"em02Label": "${em02Label}",
"em03Label": "${em03Label}",
"em04Label": "${em04Label}",
"em05Label": "${em05Label}",
"em06Label": "${em06Label}",
"em07Label": "${em07Label}",
"em08Label": "${em08Label}",
"em09Label": "${em09Label}",
"em10Label": "${em10Label}",
"em11Label": "${em11Label}",
"em12Label": "${em12Label}",
"em13Label": "${em13Label}",
"em14Label": "${em14Label}"
},
maxLength = parseInt("${mostCommentArticles?size}");
$(document).ready(function () {
// article header: user list.
var isAuthorArticle = false;
$(".header-user a").each(function () {
var it = this;
if (window.location.pathname === it.pathname) {
it.className = "star-current-icon";
isAuthorArticle = true;
}
});
if (isAuthorArticle) {
$(".moon-current-icon").removeClass().addClass("moon-icon");
}
Util.init();
$(".footer-block").each(function (num) {
var $lis = $(this).find("li");
if ($lis.length > maxLength) {
for (var i = maxLength; i < $lis.length; i++) {
$lis.get(i).style.display = "none";
}
$(this).find("h4").append("<span class='down-icon' onmouseover=\"showFooterBlock(this, " + num + ");\"></span>");
}
});
});
var showFooterBlock = function (it, num) {
var $li = $($(".footer-block").get(num)).find("li");
for (var i = maxLength; i < $li.length; i++) {
if (it.className === "down-icon") {
$($li.get(i)).slideDown("normal");
} else {
$($li.get(i)).slideUp("normal");
}
}
if (it.className === "down-icon") {
it.className = "up-icon";
} else {
it.className = "down-icon";
}
}
</script>
<div class="content paddingTop12 paddingBottom12">
<div class="left">
<div>
<span style="color: gray;">&copy; ${year}</span> - <a href="${servePath}">${blogTitle}</a>${footerContent}
</div>
Powered by <a href="http://b3log.org" target="_blank">B3log 开源</a> • <a href="https://hacpai.com/tag/solo" target="_blank">Solo</a> ${version}&nbsp;&nbsp;
Theme by <a rel="friend" href="http://vanessa.b3log.org" target="_blank">Vanessa</a> & <a rel="friend" href="http://demo.woothemes.com/skeptical/" target="_blank">Skeptical</a>.
</div>
<div class="right nowrap">
<div class="goTop right" onclick="Util.goTop();">${goTopLabel}</div>
<br/>
<div class="right">
${viewCount1Label}
<span class='error-msg'>
${statistic.statisticBlogViewCount}
</span>
&nbsp;&nbsp;
${articleCount1Label}
<span class='error-msg'>
${statistic.statisticPublishedBlogArticleCount}
</span>
&nbsp;&nbsp;
${commentCount1Label}
<span class='error-msg'>
${statistic.statisticPublishedBlogCommentCount}
</span>
</div>
</div>
<div class="clear"></div>
</div>
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<script type="text/javascript">
var latkeConfig = {
"servePath": "${servePath}",
"staticServePath": "${staticServePath}"
};
var Label = {
"adminLabel": "${adminLabel}",
"logoutLabel": "${logoutLabel}",
"skinDirName": "${skinDirName}",
"loginLabel": "${loginLabel}",
"loginLabel": "${loginLabel}",
"em00Label": "${em00Label}",
"em01Label": "${em01Label}",
"em02Label": "${em02Label}",
"em03Label": "${em03Label}",
"em04Label": "${em04Label}",
"em05Label": "${em05Label}",
"em06Label": "${em06Label}",
"em07Label": "${em07Label}",
"em08Label": "${em08Label}",
"em09Label": "${em09Label}",
"em10Label": "${em10Label}",
"em11Label": "${em11Label}",
"em12Label": "${em12Label}",
"em13Label": "${em13Label}",
"em14Label": "${em14Label}"
},
maxLength = parseInt("${mostCommentArticles?size}");
$(document).ready(function () {
// article header: user list.
var isAuthorArticle = false;
$(".header-user a").each(function () {
var it = this;
if (window.location.pathname === it.pathname) {
it.className = "star-current-icon";
isAuthorArticle = true;
}
});
if (isAuthorArticle) {
$(".moon-current-icon").removeClass().addClass("moon-icon");
}
Util.init();
$(".footer-block").each(function (num) {
var $lis = $(this).find("li");
if ($lis.length > maxLength) {
for (var i = maxLength; i < $lis.length; i++) {
$lis.get(i).style.display = "none";
}
$(this).find("h4").append("<span class='down-icon' onmouseover=\"showFooterBlock(this, " + num + ");\"></span>");
}
});
});
var showFooterBlock = function (it, num) {
var $li = $($(".footer-block").get(num)).find("li");
for (var i = maxLength; i < $li.length; i++) {
if (it.className === "down-icon") {
$($li.get(i)).slideDown("normal");
} else {
$($li.get(i)).slideUp("normal");
}
}
if (it.className === "down-icon") {
it.className = "up-icon";
} else {
it.className = "down-icon";
}
}
</script>
${plugins}

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

Before

Width:  |  Height:  |  Size: 119 B

After

Width:  |  Height:  |  Size: 119 B

View File

Before

Width:  |  Height:  |  Size: 119 B

After

Width:  |  Height:  |  Size: 119 B

View File

@ -1,137 +1,137 @@
<#macro comments commentList article>
<div id="comments">
<#list commentList as comment>
<#include "common-comment.ftl"/>
</#list>
</div>
<#if article.commentable>
<div class="comment-title">
${postCommentsLabel}
</div>
<table id="commentForm" class="comment" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<#if !isLoggedIn>
<tr>
<th width="200px">
<span class="comment-label">
${commentNameLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentName"/>
</td>
</tr>
<tr>
<th>
<span class="comment-label">
${commentEmailLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentEmail"/>
</td>
</tr>
<tr>
<th>
<span class="comment-label">
${commentURLLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentURL"/>
</td>
</tr>
</#if>
<tr>
<th>
<span class="comment-label">
${commentEmotionsLabel}
</span>
<span class="arrow-right"></span>
</th>
<td id="emotions">
<span class="em00" title="${em00Label}"></span>
<span class="em01" title="${em01Label}"></span>
<span class="em02" title="${em02Label}"></span>
<span class="em03" title="${em03Label}"></span>
<span class="em04" title="${em04Label}"></span>
<span class="em05" title="${em05Label}"></span>
<span class="em06" title="${em06Label}"></span>
<span class="em07" title="${em07Label}"></span>
<span class="em08" title="${em08Label}"></span>
<span class="em09" title="${em09Label}"></span>
<span class="em10" title="${em10Label}"></span>
<span class="em11" title="${em11Label}"></span>
<span class="em12" title="${em12Label}"></span>
<span class="em13" title="${em13Label}"></span>
<span class="em14" title="${em14Label}"></span>
</td>
</tr>
<tr>
<th valign="top">
<span class="comment-label">
${commentContentLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<textarea rows="10" id="comment"></textarea>
</td>
</tr>
<#if !isLoggedIn>
<tr>
<th>
<span class="comment-label">
${captchaLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentValidate"/>
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
</td>
</tr>
</#if>
<tr>
<td colspan="2">
<span style="margin-top: 20px;" class="right error-msg" id="commentErrorTip"></span>
<input id="submitCommentButton" type="button" onclick="page.submitComment();" value="${submmitCommentLabel}"/>
</td>
</tr>
</tbody>
</table>
</#if>
</#macro>
<#macro comment_script oId>
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<script type="text/javascript">
var page = new Page({
"nameTooLongLabel": "${nameTooLongLabel}",
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
"mailInvalidLabel": "${mailInvalidLabel}",
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
"captchaErrorLabel": "${captchaErrorLabel}",
"loadingLabel": "${loadingLabel}",
"oId": "${oId}",
"skinDirName": "${skinDirName}",
"blogHost": "${blogHost}",
"randomArticles1Label": "${randomArticles1Label}",
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
});
var replyTo = function (id) {
var commentFormHTML = "<table width='100%' cellspacing='0' cellpadding='0' class='comment' id='replyForm'>";
page.addReplyForm(id, commentFormHTML);
};
(function () {
page.load();
page.replaceCommentsEm("#comments .comment-content");
<#nested>
})();
</script>
<#macro comments commentList article>
<div id="comments">
<#list commentList as comment>
<#include "common-comment.ftl"/>
</#list>
</div>
<#if article.commentable>
<div class="comment-title">
${postCommentsLabel}
</div>
<table id="commentForm" class="comment" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<#if !isLoggedIn>
<tr>
<th width="200px">
<span class="comment-label">
${commentNameLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentName"/>
</td>
</tr>
<tr>
<th>
<span class="comment-label">
${commentEmailLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentEmail"/>
</td>
</tr>
<tr>
<th>
<span class="comment-label">
${commentURLLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentURL"/>
</td>
</tr>
</#if>
<tr>
<th>
<span class="comment-label">
${commentEmotionsLabel}
</span>
<span class="arrow-right"></span>
</th>
<td id="emotions">
<span class="em00" title="${em00Label}"></span>
<span class="em01" title="${em01Label}"></span>
<span class="em02" title="${em02Label}"></span>
<span class="em03" title="${em03Label}"></span>
<span class="em04" title="${em04Label}"></span>
<span class="em05" title="${em05Label}"></span>
<span class="em06" title="${em06Label}"></span>
<span class="em07" title="${em07Label}"></span>
<span class="em08" title="${em08Label}"></span>
<span class="em09" title="${em09Label}"></span>
<span class="em10" title="${em10Label}"></span>
<span class="em11" title="${em11Label}"></span>
<span class="em12" title="${em12Label}"></span>
<span class="em13" title="${em13Label}"></span>
<span class="em14" title="${em14Label}"></span>
</td>
</tr>
<tr>
<th valign="top">
<span class="comment-label">
${commentContentLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<textarea rows="10" id="comment"></textarea>
</td>
</tr>
<#if !isLoggedIn>
<tr>
<th>
<span class="comment-label">
${captchaLabel}
</span>
<span class="arrow-right"></span>
</th>
<td>
<input type="text" id="commentValidate"/>
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
</td>
</tr>
</#if>
<tr>
<td colspan="2">
<span style="margin-top: 20px;" class="right error-msg" id="commentErrorTip"></span>
<input id="submitCommentButton" type="button" onclick="page.submitComment();" value="${submmitCommentLabel}"/>
</td>
</tr>
</tbody>
</table>
</#if>
</#macro>
<#macro comment_script oId>
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<script type="text/javascript">
var page = new Page({
"nameTooLongLabel": "${nameTooLongLabel}",
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
"mailInvalidLabel": "${mailInvalidLabel}",
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
"captchaErrorLabel": "${captchaErrorLabel}",
"loadingLabel": "${loadingLabel}",
"oId": "${oId}",
"skinDirName": "${skinDirName}",
"blogHost": "${blogHost}",
"randomArticles1Label": "${randomArticles1Label}",
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
});
var replyTo = function (id) {
var commentFormHTML = "<table width='100%' cellspacing='0' cellpadding='0' class='comment' id='replyForm'>";
page.addReplyForm(id, commentFormHTML);
};
(function () {
page.load();
page.replaceCommentsEm("#comments .comment-content");
<#nested>
})();
</script>
</#macro>

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Some files were not shown because too many files have changed in this diff Show More