@ -1,88 +1,88 @@
|
|||||||
<div class="copyright">
|
<div class="copyright">
|
||||||
© ${year} - <a href="${servePath}">${blogTitle}</a>${footerContent}<br/>
|
© ${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/>
|
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>.
|
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>
|
</div>
|
||||||
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
|
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var latkeConfig = {
|
var latkeConfig = {
|
||||||
"servePath": "${servePath}",
|
"servePath": "${servePath}",
|
||||||
"staticServePath": "${staticServePath}"
|
"staticServePath": "${staticServePath}"
|
||||||
};
|
};
|
||||||
|
|
||||||
var Label = {
|
var Label = {
|
||||||
"adminLabel": "${adminLabel}",
|
"adminLabel": "${adminLabel}",
|
||||||
"logoutLabel": "${logoutLabel}",
|
"logoutLabel": "${logoutLabel}",
|
||||||
"skinDirName": "${skinDirName}",
|
"skinDirName": "${skinDirName}",
|
||||||
"loginLabel": "${loginLabel}",
|
"loginLabel": "${loginLabel}",
|
||||||
"em00Label": "${em00Label}",
|
"em00Label": "${em00Label}",
|
||||||
"em01Label": "${em01Label}",
|
"em01Label": "${em01Label}",
|
||||||
"em02Label": "${em02Label}",
|
"em02Label": "${em02Label}",
|
||||||
"em03Label": "${em03Label}",
|
"em03Label": "${em03Label}",
|
||||||
"em04Label": "${em04Label}",
|
"em04Label": "${em04Label}",
|
||||||
"em05Label": "${em05Label}",
|
"em05Label": "${em05Label}",
|
||||||
"em06Label": "${em06Label}",
|
"em06Label": "${em06Label}",
|
||||||
"em07Label": "${em07Label}",
|
"em07Label": "${em07Label}",
|
||||||
"em08Label": "${em08Label}",
|
"em08Label": "${em08Label}",
|
||||||
"em09Label": "${em09Label}",
|
"em09Label": "${em09Label}",
|
||||||
"em10Label": "${em10Label}",
|
"em10Label": "${em10Label}",
|
||||||
"em11Label": "${em11Label}",
|
"em11Label": "${em11Label}",
|
||||||
"em12Label": "${em12Label}",
|
"em12Label": "${em12Label}",
|
||||||
"em13Label": "${em13Label}",
|
"em13Label": "${em13Label}",
|
||||||
"em14Label": "${em14Label}"
|
"em14Label": "${em14Label}"
|
||||||
};
|
};
|
||||||
|
|
||||||
// init brush
|
// init brush
|
||||||
var buildBrush = function () {
|
var buildBrush = function () {
|
||||||
$("#brush").height(document.documentElement.scrollHeight - document.documentElement.clientHeight).css("background-position",
|
$("#brush").height(document.documentElement.scrollHeight - document.documentElement.clientHeight).css("background-position",
|
||||||
parseInt((document.documentElement.scrollWidth - 910) / 2 - 56) + "px -150px");
|
parseInt((document.documentElement.scrollWidth - 910) / 2 - 56) + "px -150px");
|
||||||
};
|
};
|
||||||
|
|
||||||
// init
|
// init
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
Util.init();
|
Util.init();
|
||||||
Util.replaceSideEm($("#naviComments li .side-comment"));
|
Util.replaceSideEm($("#naviComments li .side-comment"));
|
||||||
|
|
||||||
// brush
|
// brush
|
||||||
buildBrush();
|
buildBrush();
|
||||||
|
|
||||||
$(window).resize(function () {
|
$(window).resize(function () {
|
||||||
buildBrush();
|
buildBrush();
|
||||||
});
|
});
|
||||||
|
|
||||||
// bg
|
// bg
|
||||||
$("#changeBG a").click(function () {
|
$("#changeBG a").click(function () {
|
||||||
if (this.className !== 'selected') {
|
if (this.className !== 'selected') {
|
||||||
switch (this.id) {
|
switch (this.id) {
|
||||||
case "greyBG":
|
case "greyBG":
|
||||||
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-grey.jpg)");
|
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-grey.jpg)");
|
||||||
break;
|
break;
|
||||||
case "blueBG":
|
case "blueBG":
|
||||||
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-blue.jpg)");
|
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-blue.jpg)");
|
||||||
break;
|
break;
|
||||||
case "brownBG":
|
case "brownBG":
|
||||||
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-brown.jpg)");
|
$("body").css("background-image", "url(/skins/${skinDirName}/images/bg-brown.jpg)");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#changeBG a").removeClass();
|
$("#changeBG a").removeClass();
|
||||||
this.className = "selected";
|
this.className = "selected";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// page navi
|
// page navi
|
||||||
$(".side-tool li li a").hover(function () {
|
$(".side-tool li li a").hover(function () {
|
||||||
if (parseInt($(this).css("padding-left")) === 9) {
|
if (parseInt($(this).css("padding-left")) === 9) {
|
||||||
$(this).animate({
|
$(this).animate({
|
||||||
"padding-left": "54px"
|
"padding-left": "54px"
|
||||||
}, 600 );
|
}, 600 );
|
||||||
}
|
}
|
||||||
}, function () {
|
}, function () {
|
||||||
$(this).animate({
|
$(this).animate({
|
||||||
"padding-left": "9px"
|
"padding-left": "9px"
|
||||||
}, 600 );
|
}, 600 );
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
<script type="text/javascript" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
||||||
${plugins}
|
${plugins}
|
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 149 KiB |
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 149 KiB |
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 149 KiB |
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
@ -1,120 +1,120 @@
|
|||||||
<#macro comments commentList article>
|
<#macro comments commentList article>
|
||||||
<h2 class="comment-label">${commentLabel}</h2>
|
<h2 class="comment-label">${commentLabel}</h2>
|
||||||
<div id="comments">
|
<div id="comments">
|
||||||
<#list commentList as comment>
|
<#list commentList as comment>
|
||||||
<#include "common-comment.ftl"/>
|
<#include "common-comment.ftl"/>
|
||||||
</#list>
|
</#list>
|
||||||
</div>
|
</div>
|
||||||
<#if article.commentable>
|
<#if article.commentable>
|
||||||
<table id="commentForm" class="comment-form" cellpadding="0" cellspacing="0">
|
<table id="commentForm" class="comment-form" cellpadding="0" cellspacing="0">
|
||||||
<tbody>
|
<tbody>
|
||||||
<#if !isLoggedIn>
|
<#if !isLoggedIn>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="115px">
|
<th width="115px">
|
||||||
${commentNameLabel}
|
${commentNameLabel}
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentName"/>
|
<input type="text" id="commentName"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
${commentEmailLabel}
|
${commentEmailLabel}
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentEmail"/>
|
<input type="text" id="commentEmail"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
${commentURLLabel}
|
${commentURLLabel}
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentURL"/>
|
<input type="text" id="commentURL"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</#if>
|
</#if>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
${commentEmotionsLabel}
|
${commentEmotionsLabel}
|
||||||
</th>
|
</th>
|
||||||
<td id="emotions">
|
<td id="emotions">
|
||||||
<span class="em00" title="${em00Label}"></span>
|
<span class="em00" title="${em00Label}"></span>
|
||||||
<span class="em01" title="${em01Label}"></span>
|
<span class="em01" title="${em01Label}"></span>
|
||||||
<span class="em02" title="${em02Label}"></span>
|
<span class="em02" title="${em02Label}"></span>
|
||||||
<span class="em03" title="${em03Label}"></span>
|
<span class="em03" title="${em03Label}"></span>
|
||||||
<span class="em04" title="${em04Label}"></span>
|
<span class="em04" title="${em04Label}"></span>
|
||||||
<span class="em05" title="${em05Label}"></span>
|
<span class="em05" title="${em05Label}"></span>
|
||||||
<span class="em06" title="${em06Label}"></span>
|
<span class="em06" title="${em06Label}"></span>
|
||||||
<span class="em07" title="${em07Label}"></span>
|
<span class="em07" title="${em07Label}"></span>
|
||||||
<span class="em08" title="${em08Label}"></span>
|
<span class="em08" title="${em08Label}"></span>
|
||||||
<span class="em09" title="${em09Label}"></span>
|
<span class="em09" title="${em09Label}"></span>
|
||||||
<span class="em10" title="${em10Label}"></span>
|
<span class="em10" title="${em10Label}"></span>
|
||||||
<span class="em11" title="${em11Label}"></span>
|
<span class="em11" title="${em11Label}"></span>
|
||||||
<span class="em12" title="${em12Label}"></span>
|
<span class="em12" title="${em12Label}"></span>
|
||||||
<span class="em13" title="${em13Label}"></span>
|
<span class="em13" title="${em13Label}"></span>
|
||||||
<span class="em14" title="${em14Label}"></span>
|
<span class="em14" title="${em14Label}"></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th valign="top">
|
<th valign="top">
|
||||||
${commentContentLabel}
|
${commentContentLabel}
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<textarea rows="10" id="comment"></textarea>
|
<textarea rows="10" id="comment"></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<#if !isLoggedIn>
|
<#if !isLoggedIn>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
${captchaLabel}
|
${captchaLabel}
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentValidate"/>
|
<input type="text" id="commentValidate"/>
|
||||||
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
|
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</#if>
|
</#if>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="right">
|
<td colspan="2" align="right">
|
||||||
<button class="right" id="submitCommentButton" onclick="page.submitComment();">${submmitCommentLabel}</button>
|
<button class="right" id="submitCommentButton" onclick="page.submitComment();">${submmitCommentLabel}</button>
|
||||||
<span style="margin-top: 13px;" class="right error-msg" id="commentErrorTip"></span>
|
<span style="margin-top: 13px;" class="right error-msg" id="commentErrorTip"></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</#if>
|
</#if>
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
||||||
<#macro comment_script oId>
|
<#macro comment_script oId>
|
||||||
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var page = new Page({
|
var page = new Page({
|
||||||
"nameTooLongLabel": "${nameTooLongLabel}",
|
"nameTooLongLabel": "${nameTooLongLabel}",
|
||||||
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
|
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
|
||||||
"mailInvalidLabel": "${mailInvalidLabel}",
|
"mailInvalidLabel": "${mailInvalidLabel}",
|
||||||
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
|
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
|
||||||
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
|
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
|
||||||
"captchaErrorLabel": "${captchaErrorLabel}",
|
"captchaErrorLabel": "${captchaErrorLabel}",
|
||||||
"loadingLabel": "${loadingLabel}",
|
"loadingLabel": "${loadingLabel}",
|
||||||
"oId": "${oId}",
|
"oId": "${oId}",
|
||||||
"skinDirName": "${skinDirName}",
|
"skinDirName": "${skinDirName}",
|
||||||
"blogHost": "${blogHost}",
|
"blogHost": "${blogHost}",
|
||||||
"randomArticles1Label": "${randomArticles1Label}",
|
"randomArticles1Label": "${randomArticles1Label}",
|
||||||
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
|
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
|
||||||
});
|
});
|
||||||
|
|
||||||
var replyTo = function (id) {
|
var replyTo = function (id) {
|
||||||
var commentFormHTML = "<table class='comment-form' id='replyForm' cellpadding='0' cellspacing='0'>";
|
var commentFormHTML = "<table class='comment-form' id='replyForm' cellpadding='0' cellspacing='0'>";
|
||||||
|
|
||||||
page.addReplyForm(id, commentFormHTML);
|
page.addReplyForm(id, commentFormHTML);
|
||||||
};
|
};
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
page.load();
|
page.load();
|
||||||
// emotions
|
// emotions
|
||||||
page.replaceCommentsEm("#comments .comment-content");
|
page.replaceCommentsEm("#comments .comment-content");
|
||||||
<#nested>
|
<#nested>
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</#macro>
|
</#macro>
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@ -1,106 +1,106 @@
|
|||||||
<div class="content paddingTop12 paddingBottom12">
|
<div class="content paddingTop12 paddingBottom12">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div>
|
<div>
|
||||||
<span style="color: gray;">© ${year}</span> - <a href="${servePath}">${blogTitle}</a>${footerContent}
|
<span style="color: gray;">© ${year}</span> - <a href="${servePath}">${blogTitle}</a>${footerContent}
|
||||||
</div>
|
</div>
|
||||||
Powered by <a href="http://b3log.org" target="_blank">B3log 开源</a> • <a href="https://hacpai.com/tag/solo" target="_blank">Solo</a> ${version}
|
Powered by <a href="http://b3log.org" target="_blank">B3log 开源</a> • <a href="https://hacpai.com/tag/solo" target="_blank">Solo</a> ${version}
|
||||||
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>.
|
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>
|
||||||
<div class="right nowrap">
|
<div class="right nowrap">
|
||||||
<div class="goTop right" onclick="Util.goTop();">${goTopLabel}</div>
|
<div class="goTop right" onclick="Util.goTop();">${goTopLabel}</div>
|
||||||
<br/>
|
<br/>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
${viewCount1Label}
|
${viewCount1Label}
|
||||||
<span class='error-msg'>
|
<span class='error-msg'>
|
||||||
${statistic.statisticBlogViewCount}
|
${statistic.statisticBlogViewCount}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
${articleCount1Label}
|
${articleCount1Label}
|
||||||
<span class='error-msg'>
|
<span class='error-msg'>
|
||||||
${statistic.statisticPublishedBlogArticleCount}
|
${statistic.statisticPublishedBlogArticleCount}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
${commentCount1Label}
|
${commentCount1Label}
|
||||||
<span class='error-msg'>
|
<span class='error-msg'>
|
||||||
${statistic.statisticPublishedBlogCommentCount}
|
${statistic.statisticPublishedBlogCommentCount}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</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/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" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var latkeConfig = {
|
var latkeConfig = {
|
||||||
"servePath": "${servePath}",
|
"servePath": "${servePath}",
|
||||||
"staticServePath": "${staticServePath}"
|
"staticServePath": "${staticServePath}"
|
||||||
};
|
};
|
||||||
|
|
||||||
var Label = {
|
var Label = {
|
||||||
"adminLabel": "${adminLabel}",
|
"adminLabel": "${adminLabel}",
|
||||||
"logoutLabel": "${logoutLabel}",
|
"logoutLabel": "${logoutLabel}",
|
||||||
"skinDirName": "${skinDirName}",
|
"skinDirName": "${skinDirName}",
|
||||||
"loginLabel": "${loginLabel}",
|
"loginLabel": "${loginLabel}",
|
||||||
"loginLabel": "${loginLabel}",
|
"loginLabel": "${loginLabel}",
|
||||||
"em00Label": "${em00Label}",
|
"em00Label": "${em00Label}",
|
||||||
"em01Label": "${em01Label}",
|
"em01Label": "${em01Label}",
|
||||||
"em02Label": "${em02Label}",
|
"em02Label": "${em02Label}",
|
||||||
"em03Label": "${em03Label}",
|
"em03Label": "${em03Label}",
|
||||||
"em04Label": "${em04Label}",
|
"em04Label": "${em04Label}",
|
||||||
"em05Label": "${em05Label}",
|
"em05Label": "${em05Label}",
|
||||||
"em06Label": "${em06Label}",
|
"em06Label": "${em06Label}",
|
||||||
"em07Label": "${em07Label}",
|
"em07Label": "${em07Label}",
|
||||||
"em08Label": "${em08Label}",
|
"em08Label": "${em08Label}",
|
||||||
"em09Label": "${em09Label}",
|
"em09Label": "${em09Label}",
|
||||||
"em10Label": "${em10Label}",
|
"em10Label": "${em10Label}",
|
||||||
"em11Label": "${em11Label}",
|
"em11Label": "${em11Label}",
|
||||||
"em12Label": "${em12Label}",
|
"em12Label": "${em12Label}",
|
||||||
"em13Label": "${em13Label}",
|
"em13Label": "${em13Label}",
|
||||||
"em14Label": "${em14Label}"
|
"em14Label": "${em14Label}"
|
||||||
},
|
},
|
||||||
maxLength = parseInt("${mostCommentArticles?size}");
|
maxLength = parseInt("${mostCommentArticles?size}");
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// article header: user list.
|
// article header: user list.
|
||||||
var isAuthorArticle = false;
|
var isAuthorArticle = false;
|
||||||
$(".header-user a").each(function () {
|
$(".header-user a").each(function () {
|
||||||
var it = this;
|
var it = this;
|
||||||
if (window.location.pathname === it.pathname) {
|
if (window.location.pathname === it.pathname) {
|
||||||
it.className = "star-current-icon";
|
it.className = "star-current-icon";
|
||||||
isAuthorArticle = true;
|
isAuthorArticle = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (isAuthorArticle) {
|
if (isAuthorArticle) {
|
||||||
$(".moon-current-icon").removeClass().addClass("moon-icon");
|
$(".moon-current-icon").removeClass().addClass("moon-icon");
|
||||||
}
|
}
|
||||||
|
|
||||||
Util.init();
|
Util.init();
|
||||||
|
|
||||||
$(".footer-block").each(function (num) {
|
$(".footer-block").each(function (num) {
|
||||||
var $lis = $(this).find("li");
|
var $lis = $(this).find("li");
|
||||||
if ($lis.length > maxLength) {
|
if ($lis.length > maxLength) {
|
||||||
for (var i = maxLength; i < $lis.length; i++) {
|
for (var i = maxLength; i < $lis.length; i++) {
|
||||||
$lis.get(i).style.display = "none";
|
$lis.get(i).style.display = "none";
|
||||||
}
|
}
|
||||||
$(this).find("h4").append("<span class='down-icon' onmouseover=\"showFooterBlock(this, " + num + ");\"></span>");
|
$(this).find("h4").append("<span class='down-icon' onmouseover=\"showFooterBlock(this, " + num + ");\"></span>");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
var showFooterBlock = function (it, num) {
|
var showFooterBlock = function (it, num) {
|
||||||
var $li = $($(".footer-block").get(num)).find("li");
|
var $li = $($(".footer-block").get(num)).find("li");
|
||||||
for (var i = maxLength; i < $li.length; i++) {
|
for (var i = maxLength; i < $li.length; i++) {
|
||||||
if (it.className === "down-icon") {
|
if (it.className === "down-icon") {
|
||||||
$($li.get(i)).slideDown("normal");
|
$($li.get(i)).slideDown("normal");
|
||||||
} else {
|
} else {
|
||||||
$($li.get(i)).slideUp("normal");
|
$($li.get(i)).slideUp("normal");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (it.className === "down-icon") {
|
if (it.className === "down-icon") {
|
||||||
it.className = "up-icon";
|
it.className = "up-icon";
|
||||||
} else {
|
} else {
|
||||||
it.className = "down-icon";
|
it.className = "down-icon";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
${plugins}
|
${plugins}
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 119 B After Width: | Height: | Size: 119 B |
@ -1,137 +1,137 @@
|
|||||||
<#macro comments commentList article>
|
<#macro comments commentList article>
|
||||||
<div id="comments">
|
<div id="comments">
|
||||||
<#list commentList as comment>
|
<#list commentList as comment>
|
||||||
<#include "common-comment.ftl"/>
|
<#include "common-comment.ftl"/>
|
||||||
</#list>
|
</#list>
|
||||||
</div>
|
</div>
|
||||||
<#if article.commentable>
|
<#if article.commentable>
|
||||||
<div class="comment-title">
|
<div class="comment-title">
|
||||||
${postCommentsLabel}
|
${postCommentsLabel}
|
||||||
</div>
|
</div>
|
||||||
<table id="commentForm" class="comment" cellpadding="0" cellspacing="0" width="100%">
|
<table id="commentForm" class="comment" cellpadding="0" cellspacing="0" width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
<#if !isLoggedIn>
|
<#if !isLoggedIn>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="200px">
|
<th width="200px">
|
||||||
<span class="comment-label">
|
<span class="comment-label">
|
||||||
${commentNameLabel}
|
${commentNameLabel}
|
||||||
</span>
|
</span>
|
||||||
<span class="arrow-right"></span>
|
<span class="arrow-right"></span>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentName"/>
|
<input type="text" id="commentName"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<span class="comment-label">
|
<span class="comment-label">
|
||||||
${commentEmailLabel}
|
${commentEmailLabel}
|
||||||
</span>
|
</span>
|
||||||
<span class="arrow-right"></span>
|
<span class="arrow-right"></span>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentEmail"/>
|
<input type="text" id="commentEmail"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<span class="comment-label">
|
<span class="comment-label">
|
||||||
${commentURLLabel}
|
${commentURLLabel}
|
||||||
</span>
|
</span>
|
||||||
<span class="arrow-right"></span>
|
<span class="arrow-right"></span>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentURL"/>
|
<input type="text" id="commentURL"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</#if>
|
</#if>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<span class="comment-label">
|
<span class="comment-label">
|
||||||
${commentEmotionsLabel}
|
${commentEmotionsLabel}
|
||||||
</span>
|
</span>
|
||||||
<span class="arrow-right"></span>
|
<span class="arrow-right"></span>
|
||||||
</th>
|
</th>
|
||||||
<td id="emotions">
|
<td id="emotions">
|
||||||
<span class="em00" title="${em00Label}"></span>
|
<span class="em00" title="${em00Label}"></span>
|
||||||
<span class="em01" title="${em01Label}"></span>
|
<span class="em01" title="${em01Label}"></span>
|
||||||
<span class="em02" title="${em02Label}"></span>
|
<span class="em02" title="${em02Label}"></span>
|
||||||
<span class="em03" title="${em03Label}"></span>
|
<span class="em03" title="${em03Label}"></span>
|
||||||
<span class="em04" title="${em04Label}"></span>
|
<span class="em04" title="${em04Label}"></span>
|
||||||
<span class="em05" title="${em05Label}"></span>
|
<span class="em05" title="${em05Label}"></span>
|
||||||
<span class="em06" title="${em06Label}"></span>
|
<span class="em06" title="${em06Label}"></span>
|
||||||
<span class="em07" title="${em07Label}"></span>
|
<span class="em07" title="${em07Label}"></span>
|
||||||
<span class="em08" title="${em08Label}"></span>
|
<span class="em08" title="${em08Label}"></span>
|
||||||
<span class="em09" title="${em09Label}"></span>
|
<span class="em09" title="${em09Label}"></span>
|
||||||
<span class="em10" title="${em10Label}"></span>
|
<span class="em10" title="${em10Label}"></span>
|
||||||
<span class="em11" title="${em11Label}"></span>
|
<span class="em11" title="${em11Label}"></span>
|
||||||
<span class="em12" title="${em12Label}"></span>
|
<span class="em12" title="${em12Label}"></span>
|
||||||
<span class="em13" title="${em13Label}"></span>
|
<span class="em13" title="${em13Label}"></span>
|
||||||
<span class="em14" title="${em14Label}"></span>
|
<span class="em14" title="${em14Label}"></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th valign="top">
|
<th valign="top">
|
||||||
<span class="comment-label">
|
<span class="comment-label">
|
||||||
${commentContentLabel}
|
${commentContentLabel}
|
||||||
</span>
|
</span>
|
||||||
<span class="arrow-right"></span>
|
<span class="arrow-right"></span>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<textarea rows="10" id="comment"></textarea>
|
<textarea rows="10" id="comment"></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<#if !isLoggedIn>
|
<#if !isLoggedIn>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<span class="comment-label">
|
<span class="comment-label">
|
||||||
${captchaLabel}
|
${captchaLabel}
|
||||||
</span>
|
</span>
|
||||||
<span class="arrow-right"></span>
|
<span class="arrow-right"></span>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="commentValidate"/>
|
<input type="text" id="commentValidate"/>
|
||||||
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
|
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</#if>
|
</#if>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<span style="margin-top: 20px;" class="right error-msg" id="commentErrorTip"></span>
|
<span style="margin-top: 20px;" class="right error-msg" id="commentErrorTip"></span>
|
||||||
<input id="submitCommentButton" type="button" onclick="page.submitComment();" value="${submmitCommentLabel}"/>
|
<input id="submitCommentButton" type="button" onclick="page.submitComment();" value="${submmitCommentLabel}"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</#if>
|
</#if>
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
||||||
<#macro comment_script oId>
|
<#macro comment_script oId>
|
||||||
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var page = new Page({
|
var page = new Page({
|
||||||
"nameTooLongLabel": "${nameTooLongLabel}",
|
"nameTooLongLabel": "${nameTooLongLabel}",
|
||||||
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
|
"mailCannotEmptyLabel": "${mailCannotEmptyLabel}",
|
||||||
"mailInvalidLabel": "${mailInvalidLabel}",
|
"mailInvalidLabel": "${mailInvalidLabel}",
|
||||||
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
|
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
|
||||||
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
|
"captchaCannotEmptyLabel": "${captchaCannotEmptyLabel}",
|
||||||
"captchaErrorLabel": "${captchaErrorLabel}",
|
"captchaErrorLabel": "${captchaErrorLabel}",
|
||||||
"loadingLabel": "${loadingLabel}",
|
"loadingLabel": "${loadingLabel}",
|
||||||
"oId": "${oId}",
|
"oId": "${oId}",
|
||||||
"skinDirName": "${skinDirName}",
|
"skinDirName": "${skinDirName}",
|
||||||
"blogHost": "${blogHost}",
|
"blogHost": "${blogHost}",
|
||||||
"randomArticles1Label": "${randomArticles1Label}",
|
"randomArticles1Label": "${randomArticles1Label}",
|
||||||
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
|
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
|
||||||
});
|
});
|
||||||
var replyTo = function (id) {
|
var replyTo = function (id) {
|
||||||
var commentFormHTML = "<table width='100%' cellspacing='0' cellpadding='0' class='comment' id='replyForm'>";
|
var commentFormHTML = "<table width='100%' cellspacing='0' cellpadding='0' class='comment' id='replyForm'>";
|
||||||
page.addReplyForm(id, commentFormHTML);
|
page.addReplyForm(id, commentFormHTML);
|
||||||
};
|
};
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
page.load();
|
page.load();
|
||||||
page.replaceCommentsEm("#comments .comment-content");
|
page.replaceCommentsEm("#comments .comment-content");
|
||||||
<#nested>
|
<#nested>
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</#macro>
|
</#macro>
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |