Van 2019-02-11 01:06:43 +08:00
parent dd015bb41e
commit d7e9db917c
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
289 changed files with 4122 additions and 2277 deletions

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#if 0 != recentComments?size>
<#list articles as article>
<div class="post">

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>
@ -95,7 +115,7 @@
<#include "footer.ftl">
</div>
</div>
<@comment_script oId=article.oId>
<@comment_script oId=article.oId commentable=article.commentable>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
<#if 0 != randomArticlesDisplayCount>
page.loadRandomArticles();

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
@charset "utf-8";
body {
margin:0;
@ -540,74 +557,6 @@ cursor: hand;
border-color:#76B33A #98C64C #98C64C #76B33A;
color:#074A7E;
}
#commentURLLabel,#commentURLLabelReply {
background:url("../images/textfield.gif") repeat-x scroll 50% 0 #FFFFFF;
border:1px solid #A6A6A6;
border-right:0px;
float:left;
height:20px;
line-height:20px;
padding-left:2px;
}
#commentURL,#commentURLReply {
border-left:0 none;
width:157px;
}
.em00,.em01,.em02,.em03,.em04,.em05,.em06,.em07,.em08,.em09,.em10,.em11,.em12,.em13,.em14 {
background-image:url("../images/emotions/emotions-ease.png");
float:left;
height:24px;
margin-right:5px;
width:24px;
}
.error-msg {
color:#3366CC;
}
#emotions span {
cursor:pointer;
}
.em01 {
background-position:-24px 0;
}
.em02 {
background-position:-48px 0;
}
.em03 {
background-position:-72px 0;
}
.em04 {
background-position:-96px 0;
}
.em05 {
background-position:0px -24px;
}
.em06 {
background-position:-24px -24px;
}
.em07 {
background-position:-48px -24px;
}
.em08 {
background-position:-72px -24px;
}
.em09 {
background-position:-96px -24px;
}
.em10 {
background-position:0 -48px;
}
.em11 {
background-position:-24px -48px;
}
.em12 {
background-position:-48px -48px;
}
.em13 {
background-position:-72px -48px;
}
.em14 {
background-position:-96px -48px;
}
.em-span {
line-height:24px;
float:left;

1
skins/5styles/css/5styles.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#wrap{ margin:0 auto; padding:0; width:900px; border-left:3px solid #424242; border-right:3px solid #424242; background:url(../images/side-bg.gif) repeat-y right;}
#maincontent{ float:left; margin:0 0 0 -271px; padding:0; display:inline;width: 100%;}
#maincontent .forFlow{ margin:0 0 0 271px;}

1
skins/5styles/css/layout1.min.css vendored Normal file
View File

@ -0,0 +1 @@
#maincontent,#sidebar{padding:0;display:inline}#wrap{margin:0 auto;padding:0;width:900px;border-left:3px solid #424242;border-right:3px solid #424242;background:url(../images/side-bg.gif) right repeat-y}#maincontent{float:left;margin:0 0 0 -271px;width:100%}#maincontent .forFlow{margin:0 0 0 271px}#sidebar{float:right;margin:10px;width:250px}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#wrap{ margin:0 auto; padding:0; width:900px; border-left:3px solid #424242; border-right:3px solid #424242; background:url(../images/side-bg.gif) repeat-y left;}
#maincontent{ float:right; margin:0 0 0 -271px; padding:0; display:inline;width: 100%;}
#maincontent .forFlow{ margin:0 0 0 271px; float: none; width: auto;}

1
skins/5styles/css/layout2.min.css vendored Normal file
View File

@ -0,0 +1 @@
#maincontent,#sidebar{padding:0;display:inline}#wrap{margin:0 auto;padding:0;width:900px;border-left:3px solid #424242;border-right:3px solid #424242;background:url(../images/side-bg.gif) left repeat-y}#maincontent{float:right;margin:0 0 0 -271px;width:100%}#maincontent .forFlow{margin:0 0 0 271px;float:none;width:auto}#sidebar{float:left;margin:10px;width:250px}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#wrap{margin:0 auto; padding:0; width:900px; border-left:3px solid #424242; border-right:3px solid #424242;}
#maincontent{float:right; margin:0 0 0 0px; padding:0; display:inline;width: 100%;}
#maincontent .forFlow{margin:0 0 0 0px; float: none; width: auto;}

1
skins/5styles/css/layout3.min.css vendored Normal file
View File

@ -0,0 +1 @@
#wrap{margin:0 auto;padding:0;width:900px;border-left:3px solid #424242;border-right:3px solid #424242}#maincontent{float:right;margin:0;padding:0;display:inline;width:100%}#maincontent .forFlow{margin:0;float:none;width:auto}#sidebar{display:none}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#wrap{ margin:0 auto; padding:0; width:100%; background:url(../images/side-bg.gif) repeat-y right;}
#maincontent{ float:left; margin:0 0 0 -271px; padding:0; display:inline;width: 100%;}
#maincontent .forFlow{ margin:0 0 0 271px;}

1
skins/5styles/css/layout4.min.css vendored Normal file
View File

@ -0,0 +1 @@
#maincontent,#sidebar{padding:0;display:inline}#wrap{margin:0 auto;padding:0;width:100%;background:url(../images/side-bg.gif) right repeat-y}#maincontent{float:left;margin:0 0 0 -271px;width:100%}#maincontent .forFlow{margin:0 0 0 271px}#sidebar{float:right;margin:10px;width:250px}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#wrap{margin:0 auto;padding:0;width:100%;background:url(../images/side-bg.gif) repeat-y left;}
#maincontent{float:right;margin:0 0 0 -271px;padding:0;display:inline;width:100%;}
#maincontent .forFlow{margin:0 0 0 271px;float: none;width: auto;}

1
skins/5styles/css/layout5.min.css vendored Normal file
View File

@ -0,0 +1 @@
#maincontent,#sidebar{padding:0;display:inline}#wrap{margin:0 auto;padding:0;width:100%;background:url(../images/side-bg.gif) left repeat-y}#maincontent{float:right;margin:0 0 0 -271px;width:100%}#maincontent .forFlow{margin:0 0 0 271px;float:none;width:auto}#sidebar{float:left;margin:10px;width:250px}

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!--<div id="footer-no"></div>-->
<div id="footer-link">
<p>&copy; ${year} <a href="${servePath}">${blogTitle}</a></p>
@ -67,9 +86,4 @@
});
});
</script>
${plugins}
<!--百度统计-->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F82227c32d41de30d4b92e66760d6e7b9' type='text/javascript'%3E%3C/script%3E"));
</script>
${plugins}

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div id="header">
<div id="header-left">
<h1><a href="${servePath}">${blogTitle}</a></h1>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// *** Cookies ***
function writeCookie(name, value) {
exp = new Date();

View File

@ -1 +1 @@
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('e n(b,h){c=v u();c.w(c.x()+(z*y*t));3.4=b+"="+r(h)+"; o="+c.s()+"; p=/";3.4.q("g=A","g="+h)}e B(b){8 a;a=b+"=";5=3.4.j(a);9(5!=-1){5+=a.d;6=3.4.j(";",5);9(6==-1){6=3.4.d}k K(3.4.L(5,6))}C{k""}}e F(m){8 2=3.M("J");8 7=0;I(8 i=0;i<2.d;i++){9(2[i].E.j("D")>-1&&2[i].f){2[i].l=H;9(2[i].f==m)7=i}}2[7].l=G;n("g",2[7].f)}',49,49,'||objs|document|cookie|offset|end|intFound|var|if|search|name|exp|length|function|title|stylesheet|value||indexOf|return|disabled|strCSS|writeCookie|expires|path|replace|escape|toGMTString|30|Date|new|setTime|getTime|1000|86400|css0|readCookie|else|css|type|setStyleSheet|false|true|for|link|unescape|substring|getElementsByTagName'.split('|'),0,{}))
function writeCookie(e,t){exp=new Date,exp.setTime(exp.getTime()+2592e6),document.cookie=e+"="+escape(t)+"; expires="+exp.toGMTString()+"; path=/",document.cookie.replace("stylesheet=css0","stylesheet="+t)}function readCookie(e){var t;return t=e+"=",offset=document.cookie.indexOf(t),-1!=offset?(offset+=t.length,end=document.cookie.indexOf(";",offset),-1==end&&(end=document.cookie.length),unescape(document.cookie.substring(offset,end))):""}function setStyleSheet(e){for(var t=document.getElementsByTagName("link"),o=0,n=0;n<t.length;n++)-1<t[n].type.indexOf("css")&&t[n].title&&(t[n].disabled=!0,t[n].title==e&&(o=n));t[o].disabled=!1,writeCookie("stylesheet",t[o].title)}

View File

@ -1,17 +1,19 @@
#
# Copyright (c) 2009, 2010, 2011, B3log Team
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#

View File

@ -1,3 +1,21 @@
#
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
adminConsoleLabel=\u540e\u53f0\u7ba1\u7406
adminIndexLabel=\u540e\u53f0\u9996\u9875
postArticleLabel=\u53d1\u5e03\u6587\u7ae0

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#macro comments commentList article>
<div class="comments" id="comments">
<#list commentList as comment>
@ -25,7 +44,7 @@
</div>
<div class="right">
<#if article.commentable>
<a rel="nofollow" class="no-underline" href="javascript:replyTo('${comment.oId}');">${replyLabel}</a>
<a rel="nofollow" class="no-underline" href="javascript:page.toggleEditor('${comment.oId}', '${comment.commentName}');">${replyLabel}</a>
</#if>
</div>
<div class="clear"></div>
@ -39,135 +58,8 @@
</#list>
</div>
<#if article.commentable>
<table id="commentForm" class="comment-form">
<tbody>
<tr>
<td width="208px">
<input type="text" class="normalInput" id="commentName"/>
</td>
<td colspan="2" width="400px">
${commentNameLabel}
</td>
</tr>
<tr>
<td>
<input type="text" class="normalInput" id="commentEmail"/>
</td>
<td colspan="2">
${commentEmailLabel}
</td>
</tr>
<tr>
<td>
<div id="commentURLLabel">
http://
</div>
<input type="text" id="commentURL"/>
</td>
<td colspan="2">
${commentURLLabel}
</td>
</tr>
<tr>
<td id="emotions" colspan="3">
<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>
<td colspan="3">
<textarea rows="10" cols="96" id="comment"></textarea>
</td>
</tr>
<tr>
<td>
<input type="text" class="normalInput" id="commentValidate"/>
</td>
<td>
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
</td>
<th align="right">
<span class="error-msg" id="commentErrorTip"/>
</th>
</tr>
<tr>
<td colspan="3" align="right">
<button id="submitCommentButton" onclick="page.submitComment();">${submmitCommentLabel}</button>
</td>
</tr>
</tbody>
</table>
<div class="comment-form">
<textarea rows="3" placeholder="${postCommentsLabel}" id="comment"></textarea>
</div>
</#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 addComment = function (result, state) {
var commentHTML = '<div id="' + result.oId
+ '" class="comment-body"><div class="comment-panel"><div class="left comment-author">'
+ '<div><img alt="' + $("#commentName" + state).val() + '" src="' +
result.commentThumbnailURL + '"/></div>' + result.replyNameHTML;
commentHTML += '</div><div class="left comment-info"><div class="left">' + result.commentDate;
if (state !== "") {
var commentOriginalCommentName = $("#" + page.currentCommentId).find(".comment-author a").text();
commentHTML += '&nbsp;@&nbsp;<a href="${servePath}' + result.commentSharpURL.split("#")[0] + '#' + page.currentCommentId + '"'
+ 'onmouseover="page.showComment(this, \'' + page.currentCommentId + '\', 3);"'
+ 'onmouseout="page.hideComment(\'' + page.currentCommentId + '\')">' + commentOriginalCommentName + '</a>';
}
commentHTML += '</div><div class="right"> <a rel="nofollow" class="no-underline" href="javascript:replyTo(\''
+ result.oId + '\');">${replyLabel}</a>'
+'</div><div class="clear"></div><div class="comment-content">'
+ Util.replaceEmString($("#comment" + state).val().replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g,"<br/>"))
+ '</div></div><div class="clear"></div></div></div>';
$("#comments").addClass("comments");
return commentHTML;
}
var replyTo = function (id) {
var commentFormHTML = "<table class='marginTop12 comment-form' id='replyForm'>";
page.addReplyForm(id, commentFormHTML);
};
(function () {
page.load();
// emotions
page.replaceCommentsEm("#comments .comment-content");
if ($("#comments div").length === 0) {
$("#comments").removeClass("comments");
}
<#nested>
})();
</script>
</#macro>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#macro head title>
<meta charset="utf-8" />
<title>${title}</title>

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>
@ -38,6 +58,6 @@
<#include "footer.ftl">
</div>
</div>
<@comment_script oId=page.oId></@comment_script>
<@comment_script oId=page.oId commentable=page.commentable></@comment_script>
</body>
</html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#--
<div id="rss">
<a href="#"><div id="rss-pic"></div></a>

View File

@ -1,17 +1,19 @@
#
# Copyright (C) 2011, www.noday.net
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#list articles as article>
<article class="clear">
<section class="postinfo left extracolum">

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>
@ -145,7 +165,7 @@
</div>
<#include "footer.ftl">
</div>
<@comment_script oId=article.oId>
<@comment_script oId=article.oId commentable=article.commentable>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
<#if 0 != randomArticlesDisplayCount>
page.loadRandomArticles('<h3>${randomArticlesLabel}</h3>');

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,time, mark, audio, video {margin: 0;padding: 0;border: 0;font-size: 100%;font: inherit;vertical-align: baseline;}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section,time {display: block;}

View File

@ -1 +1 @@
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,time{display:block}ol,ul,li{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}body{font-size:76%;font-family:,"Microsoft YaHei",Helvetica,Times,Arial,serif;text-align:center;color:#d2d8de}p,li,dd,legend,input,label,select,optgroup,textarea,table{font-size:1em}p{margin:0 0 1.3em 0;line-height:1.4em;font-size:13px}strong,em{font-weight:bold}blockquote{margin:0 0 1.3em 1em;padding:0 2em 0 1em;color:#c5cbd0;border-left:3px solid #a1ff66}code,pre{font:1em "Monaco","Consolas","Courier New","Courier","FreeMono",monospace;color:#c5cbd0}pre{margin:0 0 1.3em 0;padding:0 2em 0 1em;border-left:3px solid #a1ff66}a{font-size:inherit}a:link{text-decoration:none;color:#c5e2b5}a:visited{text-decoration:none;color:#95be7d}a:hover{text-decoration:underline;color:#a1ff66}a:active{text-decoration:none!important;color:#fff}h1,h2,h3,h4,h5{font-family:,"Microsoft YaHei","Arial","Helvetica","Nimbus Sans L",Helvetica,Times,sans-serif;line-height:1em;font-weight:normal}h1{margin:.1em 0 .6em 0;font-size:2.2em;color:#fff}h2{margin:.1em 0 .6em 0;font-size:2.1em;color:#fff}h3{margin:.2em 0 .8em 0;font-size:1.4em;color:#fff}h4{margin:0 0 .2em 0;font-size:1.2em;color:#a1ff66}h5{margin:0;font-size:1em;font-weight:bold;text-transform:uppercase;color:#fff}h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover{color:#b0e194!important}h1 a:active,h2 a:active,h3 a:active,h4 a:active{color:#79ff25!important}.clear:after{content:"";display:block;height:0;clear:both;visibility:hidden}.clear{*+height:1%}.left{float:left}.right{float:right}.c{width:100%;clear:both}.hide{display:none}label{display:block;float:left;width:10em;clear:left;margin-right:1em;padding:.3em 0;text-align:right}input,textarea{width:20em;float:left;margin-bottom:.5em;padding:.4em;color:#c5cbd0;background:transparent url("../images/opaque_10.png") 0 0 repeat;border:0}input:focus,textarea:focus{color:#fff}textarea{width:20em;height:7em;line-height:1.3em;overflow:auto}fieldset .button{background-color:#000;margin:10px 10px 0 0}.button{cursor:pointer;padding:.3em 0 .3em 0;font-size:1em;text-transform:uppercase;text-align:center;color:#fff;width:auto;overflow:visible;background-color:transparent;border:0}.button:hover{background-color:#509f24!important}.button:active{background-color:#800!important}
a:hover,h4{color:#a1ff66}.clear:after,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,time{display:block}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,summary,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}p,pre{margin:0 0 1.3em}h1,h2{margin:.1em 0 .6em;color:#fff}blockquote,pre{padding:0 2em 0 1em;border-left:3px solid #a1ff66}li,ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}body{font-size:76%;font-family:,"Microsoft YaHei",Helvetica,Times,Arial,serif;text-align:center;color:#D2D8DE}dd,input,label,legend,li,optgroup,p,select,table,textarea{font-size:1em}p{line-height:1.4em;font-size:13px}em,strong{font-weight:700}blockquote{margin:0 0 1.3em 1em;color:#C5CBD0}code,pre{font:1em Monaco,Consolas,"Courier New",Courier,FreeMono,monospace;color:#C5CBD0}a{font-size:inherit}a:link{text-decoration:none;color:#c5e2b5}a:visited{text-decoration:none;color:#95be7d}a:hover{text-decoration:underline}a:active{text-decoration:none!important;color:#fff}h1,h2,h3,h4,h5{font-family:,"Microsoft YaHei",Arial,Helvetica,"Nimbus Sans L",Helvetica,Times,sans-serif;line-height:1em;font-weight:400}h1{font-size:2.2em}h2{font-size:2.1em}h3{margin:.2em 0 .8em;font-size:1.4em;color:#fff}h4{margin:0 0 .2em;font-size:1.2em}.button,h5{font-size:1em;text-transform:uppercase}h5{margin:0;font-weight:700;color:#fff}h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover{color:#b0e194!important}h1 a:active,h2 a:active,h3 a:active,h4 a:active{color:#79ff25!important}.clear:after{content:"";height:0;clear:both;visibility:hidden}.left{float:left}.right{float:right}.c{width:100%;clear:both}.hide{display:none}label{display:block;float:left;width:10em;clear:left;margin-right:1em;padding:.3em 0;text-align:right}input,textarea{width:20em;float:left;margin-bottom:.5em;padding:.4em;color:#C5CBD0;background:url(../images/opaque_10.png);border:none}.button,input:focus,textarea:focus{color:#fff}textarea{width:20em;height:7em;line-height:1.3em;overflow:auto}fieldset .button{background-color:#000;margin:10px 10px 0 0}.button{cursor:pointer;padding:.3em 0;text-align:center;width:auto;overflow:visible;background-color:transparent;border:none}.button:hover{background-color:#509f24!important}.button:active{background-color:#800!important}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
body#home{background:url(../images/background.jpg) center center fixed}
body#home #sitemap{position:absolute;top:50%;left:50%;width:960px;height:540px;margin:-280px 0 0 -480px;text-align:left}
#maptitle{position:absolute;top:50px;left:50px}

View File

@ -1 +1 @@
body#home{background:url(../images/background.jpg) center center fixed}body#home #sitemap{position:absolute;top:50%;left:50%;width:960px;height:540px;margin:-280px 0 0 -480px;text-align:left}#maptitle{position:absolute;top:50px;left:50px}#maptitle a:hover{text-decoration:none}#mapcontent{float:right;width:55%;margin:30px 10px 0 0}#mapmenu{margin:30px 20px 0 0}#mapmenu ul{margin:0 10px 0 0;float:right;font-size:14px}#mapmenu ul li{float:left;display:inline;padding:5px 10px 5px 0;-webkit-transform:rotate(-40deg);-o-transform:rotate(-40deg);-moz-transform:rotate(-40deg)}#mapmenu ul li a:hover{text-decoration:none}#mappost{padding:50px 0 0 20px}#mappost .newposts{font-size:15px}#mapnavi{margin:20px 40px 10px 10px}div#mappost ul{border-top:1px solid #26282c;margin:20px 0 0 0}div#mappost ul span{margin:0;color:#747a83;border-bottom:1px solid #26282c}div#mappost span.title{height:24px;width:25em;float:left;word-break:break-all;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}div#mappost span.section{height:24px;width:6em;float:left;padding-left:.5em}div#mappost span.date{height:18px;padding-top:6px;width:8.5em;color:#575b64;padding:0 3px 0 1em;float:left}div#mappost span.section a,div#mappost td.date{text-align:right}div#mappost span.date{height:18px;padding-top:6px;font:1em "Consolas","Courier New","Courier","FreeMono",monospace}div#mappost span a{display:block;padding:.3em 0;text-decoration:none;color:#949ca5}div#mappost li:hover{background:transparent url("../images/row_gradient.png") -9.5em 0 repeat-y}div#mappost li:hover span,div#mappost li:hover span a{color:#fff}div#mappost span.title a{overflow:hidden;text-overflow:ellipsis}div#mappost li{display:inline}#mapfooter{position:absolute;width:100%;bottom:0;margin:0 0 -30px 0}#mapfooter .author{float:right;padding:0 10px 0 0}#pagination{position:absolute;left;0;bottom:1em;right:2em}#pagination a:hover{background-color:#15161e;color:#fff;-webkit-transform:rotate(360deg) scale(1.2)}#pagination a{-webkit-transition:all .2s ease;moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}
#mapmenu ul li a:hover,#maptitle a:hover,div#mappost span a{text-decoration:none}div#mappost span.title,div#mappost span.title a{overflow:hidden;text-overflow:ellipsis}#mapmenu ul li,div#mappost li{display:inline}#mapfooter,#maptitle,#pagination{position:absolute}body#home{background:url(../images/background.jpg) center center fixed}body#home #sitemap{position:absolute;top:50%;left:50%;width:960px;height:540px;margin:-280px 0 0 -480px;text-align:left}#maptitle{top:50px;left:50px}#mapcontent{float:right;width:55%;margin:30px 10px 0 0}#mapmenu{margin:30px 20px 0 0}#mapmenu ul{margin:0 10px 0 0;float:right;font-size:14px}#mapmenu ul li{float:left;padding:5px 10px 5px 0;-webkit-transform:rotate(-40deg);-o-transform:rotate(-40deg);-moz-transform:rotate(-40deg)}#mappost{padding:50px 0 0 20px}#mappost .newposts{font-size:15px}#mapnavi{margin:20px 40px 10px 10px}div#mappost ul{border-top:1px solid #26282c;margin:20px 0 0}div#mappost ul span{margin:0;color:#747a83;border-bottom:1px solid #26282c}div#mappost span.title{height:24px;width:25em;float:left;word-break:break-all;white-space:nowrap}div#mappost span.section{height:24px;width:6em;float:left;padding-left:.5em}div#mappost span.date{width:8.5em;color:#575b64;padding:6px 3px 0 1em;float:left;height:18px;font:1em Consolas,"Courier New",Courier,FreeMono,monospace}div#mappost span.section a,div#mappost td.date{text-align:right}div#mappost span a{display:block;padding:.3em 0;color:#949ca5}div#mappost li:hover{background:url(../images/row_gradient.png) -9.5em 0 repeat-y}div#mappost li:hover span,div#mappost li:hover span a{color:#fff}#mapfooter{width:100%;bottom:0;margin:0 0 -30px}#mapfooter .author{float:right;padding:0 10px 0 0}#pagination{bottom:1em;right:2em}#pagination a:hover{background-color:#15161E;color:#fff;-webkit-transform:rotate(360deg) scale(1.2)}#pagination a{-webkit-transition:all .2s ease;moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/*
Theme Name: coda_za
Theme URI: http://isayme.com/

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<footer class="opaque_10">
Powered by
<a href="http://b3log-solo.googlecode.com" target="_blank" class="logo">

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<header>
<h2 id="logo"><a href="${blogHost}">${blogTitle}</a></h2>
<nav>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div id="maptitle">
<h1><a href="${staticServePath}">${blogTitle}</a></h1>
<h3>${blogSubtitle}</h3>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/*
Copyright (C) 2011 iSayme Some rights reserved.
Author: iSayme

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
function showPageLink(sUrl, iPage, iCount, sAnchor)
{
var i = 0;

View File

@ -1 +1 @@
function showPageLink(b,d,e,c){var a=0;a=Math.max(1,d-1);if(d==1){document.write("<span class='pages' style='color:#7D7D7D'>1st</span> ");document.write("<span class='pages' style='color:#7D7D7D'>&laquo;</span> ")}else{document.write('<a href="'+b+c+"1\" title='The 1 page'>1st</a> ");document.write('<a href="'+b+a+c+"\" title='Prev page(The "+a+" page)'>&laquo;</a> ")}if(d>6){document.write("<span>...</span> ")}for(a=Math.max(1,d-5);a<d;a++){document.write('<a href="'+b+a+c+"\" title='The "+a+" page'>"+a+"</a> ")}document.write("<font color='red'>"+d+"</font> ");for(a=d+1;a<=Math.min(e,d+5);a++){document.write('<a href="'+b+a+c+"\" title='The "+a+" page'>"+a+"</a> ")}a=Math.min(e,d+1);if(e>d+5){document.write("<span>...</span> ")}if(d==e){document.write("<span class='pages' style='color:#7D7D7D'>&raquo;</span> ");document.write("<span class='pages' style='color:#7D7D7D'>Last</span> ")}else{document.write(' <a href="'+b+a+c+"\" title='Next page(The "+a+" page)'>&raquo;</a>");document.write('<a href="'+b+e+c+"\" title='Last page(The "+e+" page)'>Last</a> ")}};
function showPageLink(e,a,t,s){var o=0;for(o=Math.max(1,a-1),1==a?(document.write("<span class='pages' style='color:#7D7D7D'>1st</span> "),document.write("<span class='pages' style='color:#7D7D7D'>&laquo;</span> ")):(document.write('<a href="'+e+s+"1\" title='The 1 page'>1st</a> "),document.write('<a href="'+e+o+s+"\" title='Prev page(The "+o+" page)'>&laquo;</a> ")),6<a&&document.write("<span>...</span> "),o=Math.max(1,a-5);o<a;o++)document.write('<a href="'+e+o+s+"\" title='The "+o+" page'>"+o+"</a> ");for(document.write("<font color='red'>"+a+"</font> "),o=a+1;o<=Math.min(t,a+5);o++)document.write('<a href="'+e+o+s+"\" title='The "+o+" page'>"+o+"</a> ");o=Math.min(t,a+1),a+5<t&&document.write("<span>...</span> "),a==t?(document.write("<span class='pages' style='color:#7D7D7D'>&raquo;</span> "),document.write("<span class='pages' style='color:#7D7D7D'>Last</span> ")):(document.write(' <a href="'+e+o+s+"\" title='Next page(The "+o+" page)'>&raquo;</a>"),document.write('<a href="'+e+t+s+"\" title='Last page(The "+t+" page)'>Last</a> "))}

View File

@ -1,17 +1,19 @@
#
# Copyright (c) 2009, 2010, 2011, B3log Team
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#

View File

@ -1,3 +1,21 @@
#
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
adminConsoleLabel=\u540e\u53f0\u7ba1\u7406
adminIndexLabel=\u540e\u53f0\u9996\u9875
postArticleLabel=\u53d1\u5e03\u6587\u7ae0

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#macro comments commentList article>
<section class="left ver_side maincolum">
<h3 id="commentcount" class="hor_side">${Comments}
@ -30,7 +49,7 @@
<span class="cmntcnt ${comment.commentName}">
<a href="#${comment.oId}">${commentList?size - comment_index}#</a>
</span>&nbsp;|&nbsp;
<a class="replyto" rel="nofollow" href="javascript:replyTo('${comment.oId}');" title="${replyLabel}">${replyLabel}</a>
<a class="replyto" rel="nofollow" href="javascript:page.toggleEditor('${comment.oId}', '${comment.commentName}');" title="${replyLabel}">${replyLabel}</a>
</div>
<div class="comment-content">
<p>
@ -49,127 +68,8 @@
</#list>
</ol>
<#if article.commentable>
<div id="commentForm">
<fieldset>
<label for="commentName">${commentNameLabel}&nbsp;*</label>
<input id="commentName"
size="22"
type="text"
placeholder="Your Name Here">
<label for="commentEmail">${commentEmailLabel}&nbsp;*</label>
<input id="commentEmail"
size="22"
placeholder="Your Email Here (Keep Secret)">
<label for="commentURL">${commentURLLabel}</label>
<input id="commentURL"
size="22"
placeholder="Your Website Here (Not required)">
<label for="commentValidate">Code&nbsp;*</label>
<input type="text"
id="commentValidate"
class="text"
placeholder="Please enter the verification code"/>
<img id="captcha" class="code" alt="validate" src="${staticServePath}/captcha.do" />
</fieldset>
<fieldset>
<div 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>
</div>
</fieldset>
<fieldset>
<label for="comment">${commentContent1Label}*</label>
<textarea id="comment" rows="10" cols="30" placeholder="What Do You Want To Say?"
style="resize: none; overflow-y: hidden; "></textarea>
</fieldset>
<fieldset>
<p>
<input name="submit" class="button"
type="submit"
id="submitCommentButton"
tabindex="5"
value="Submit Comment"
onclick="page.submitComment();">
</p>
<span class="error-msg" id="commentErrorTip"></span>
</fieldset>
</div>
<textarea id="comment" rows="3" placeholder="${postCommentsLabel}"
style="width:100%;resize: none; overflow-y: hidden; "></textarea>
</#if>
</section>
</#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 addComment = function (result, state) {
var date = result.commentDate.split(" ");
var commentHTML = '<li class="comment hor_side" id="' + result.oId + '">'
+ '<div class="clear"><div class="comment-meta post_time icon">'
+ date[0] + "</br>" + date[1]
+ '</div><div class="comment-author vcard"><cite class="fn">' + result.replyNameHTML;
commentHTML += '</cite><span class="says">&nbsp;说道:</span></div><div class="avatar right">'
+ '<img src="' + result.commentThumbnailURL + '" class="avatar avatar-30 photo" height="30" width="30" />'
+ '</div><div class="reply right"><span class="cmntcnt">'
+ '<a href="' + result.commentSharpURL.split("#")[0] + '#' + page.currentCommentId + '">'
+ ($("#comments li").length + 1) + '#</a></span>&nbsp;&nbsp;|&nbsp;&nbsp;'
+ '<a class="replyto" rel="nofollow" href="javascript:replyTo(\'' + result.oId + '\');" title="${replyLabel}">${replyLabel}</a>'
+ '</div><div class="comment-content"><p>'
if (state !== "") {
var commentOriginalCommentName = $("#" + page.currentCommentId + " cite.fn").text();
commentHTML += '<a class="atreply" rel="nofollow" href="' + result.commentSharpURL.split("#")[0] + '#' + page.currentCommentId + '"'
+ 'onmouseover="page.showComment(this, \'' + page.currentCommentId + '\', 23);"'
+ 'onmouseout="page.hideComment(\'' + page.currentCommentId + '\')">@' + commentOriginalCommentName + '</a><br/>';
}
commentHTML += Util.replaceEmString($("#comment" + state).val().replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g,"<br/>"))
+ '</p></div></div></li>';
$("#commentcount span").text($("#comments li").length + 1);
return commentHTML;
}
var replyTo = function (id) {
var commentFormHTML = "<div class='reply' id='replyForm'>";
page.addReplyForm(id, commentFormHTML, "</div>");
};
(function () {
page.load();
page.replaceCommentsEm("#comments .comment-content");
<#nested>
})();
</script>
</#macro>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#macro head title>
<meta charset="utf-8" />
<title>${title}</title>

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<aside class="left ver_side">
<form id="searchform" target="_blank" action="http://www.google.com/cse">
<fieldset class="opaque_10">

View File

@ -1,17 +1,19 @@
#
# Copyright (C) 2009, 2010, 2011, B3log Team
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#list articles as article>
<div id="post">
<h2 class="post_title_h2">

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>
@ -96,7 +116,7 @@
<#include "footer.ftl">
</div>
<div id="bottom-bar"></div>
<@comment_script oId=article.oId>
<@comment_script oId=article.oId commentable=article.commentable>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
<#if 0 != randomArticlesDisplayCount>
page.loadRandomArticles();

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/*
Theme Name: Dot-B
Theme URI: http://zlz.im/dot-b/

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div id="footer">
<div id="copyright">
<div id="site-info">

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div id="header">
<div id="logo">
<a href="${staticServePath}" title="${blogTitle}" rel="home">${blogTitle}</a>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// All the jQuery function that WordPress used
// Add empty span tag at menu which have drop-down meun
jQuery("ul.sub-menu:not(.sub-menu .sub-menu)").parent().append('<div class="menu-mark" ></div>');

View File

@ -1 +1 @@
jQuery("ul.sub-menu:not(.sub-menu .sub-menu)").parent().append('<div class="menu-mark" ></div>');jQuery("ul.children:not(.children .children)").parent().append('<div class="menu-mark" ></div>');jQuery("ul.sub-menu ul.sub-menu:not(.sub-menu .sub-menu .sub-menu)").parent().append('<div class="menu-mark2" ></div>');jQuery("ul.children ul.children:not(.children .children .children)").parent().append('<div class="menu-mark2" ></div>');var mouseover_tid=[];var mouseout_tid=[];jQuery(".header_menu ul > li").each(function(a){jQuery(this).hover(function(){var b=this;clearTimeout(mouseout_tid[a]);mouseover_tid[a]=setTimeout(function(){jQuery(b).find("ul:eq(0)").slideDown("fast")},200)},function(){var b=this;clearTimeout(mouseover_tid[a]);mouseout_tid[a]=setTimeout(function(){jQuery(b).find("ul:eq(0)").slideUp("fast")},200)})});jQuery(document).ready(function(){$("#colorfultagcloud a").each(function(b){this.style.color=a()});function a(){var e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var b="#";var c;for(var d=0;d<6;d++){c=Math.round(Math.random()*15);b+=e[c]}return b}jQuery("#top_bar").animate({width:"100%"},{queue:false,duration:5000});jQuery("#s").mouseover(function(){jQuery(this).focus().val([""])});jQuery(".post_meta li,body a:not(.post_meta li a)").hover(function(){if(!jQuery(this).is(":animated")){jQuery(this).animate({opacity:".7"},220).animate({opacity:"1"},180)}});jQuery(function(){jQuery("a[href*=#]").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=jQuery(this.hash);b=b.length&&b||jQuery("[name="+this.hash.slice(1)+"]");if(b.length){var c=b.offset().top-100;jQuery("html,body").animate({scrollTop:c},1000);return false}}})});jQuery("#return_top").hide();jQuery(function(){jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>100){jQuery("#return_top").fadeIn()}else{jQuery("#return_top").fadeOut()}})});jQuery("a.tab").click(function(){jQuery(".active").removeClass("active");jQuery(this).addClass("active");jQuery(".content").slideUp();var b=jQuery(this).attr("title");jQuery("#"+b).slideDown()});jQuery("#tab-title span").click(function(){jQuery(this).addClass("selected").siblings().removeClass();jQuery("#tab-content > .widget-container").slideUp("1500").eq(jQuery("#tab-title span").index(this)).slideDown("1500")})});
jQuery("ul.sub-menu:not(.sub-menu .sub-menu)").parent().append('<div class="menu-mark" ></div>'),jQuery("ul.children:not(.children .children)").parent().append('<div class="menu-mark" ></div>'),jQuery("ul.sub-menu ul.sub-menu:not(.sub-menu .sub-menu .sub-menu)").parent().append('<div class="menu-mark2" ></div>'),jQuery("ul.children ul.children:not(.children .children .children)").parent().append('<div class="menu-mark2" ></div>');var mouseover_tid=[],mouseout_tid=[];jQuery(".header_menu ul > li").each(function(t){jQuery(this).hover(function(){var e=this;clearTimeout(mouseout_tid[t]),mouseover_tid[t]=setTimeout(function(){jQuery(e).find("ul:eq(0)").slideDown("fast")},200)},function(){var e=this;clearTimeout(mouseover_tid[t]),mouseout_tid[t]=setTimeout(function(){jQuery(e).find("ul:eq(0)").slideUp("fast")},200)})}),jQuery(document).ready(function(){$("#colorfultagcloud a").each(function(e){this.style.color=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],u="#",n=0;n<6;n++)e=Math.round(15*Math.random()),u+=t[e];return u}()}),jQuery("#top_bar").animate({width:"100%"},{queue:!1,duration:5e3}),jQuery("#s").mouseover(function(){jQuery(this).focus().val([""])}),jQuery(".post_meta li,body a:not(.post_meta li a)").hover(function(){jQuery(this).is(":animated")||jQuery(this).animate({opacity:".7"},220).animate({opacity:"1"},180)}),jQuery(function(){jQuery("a[href*=#]").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=jQuery(this.hash);if((e=e.length&&e||jQuery("[name="+this.hash.slice(1)+"]")).length){var t=e.offset().top-100;return jQuery("html,body").animate({scrollTop:t},1e3),!1}}})}),jQuery("#return_top").hide(),jQuery(function(){jQuery(window).scroll(function(){100<jQuery(this).scrollTop()?jQuery("#return_top").fadeIn():jQuery("#return_top").fadeOut()})}),jQuery("a.tab").click(function(){jQuery(".active").removeClass("active"),jQuery(this).addClass("active"),jQuery(".content").slideUp();var e=jQuery(this).attr("title");jQuery("#"+e).slideDown()}),jQuery("#tab-title span").click(function(){jQuery(this).addClass("selected").siblings().removeClass(),jQuery("#tab-content > .widget-container").slideUp("1500").eq(jQuery("#tab-title span").index(this)).slideDown("1500")})});

View File

@ -1,17 +1,19 @@
#
# Copyright (c) 2009, 2010, 2011, B3log Team
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#

View File

@ -1,17 +1,19 @@
#
# Copyright (c) 2009, 2010, 2011, B3log Team
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#macro comments commentList article>
<div>
<!-- You can start editing here -->
@ -33,7 +52,7 @@
<#if article.commentable>
<div class="reply">
<a class="comment-reply-link"
href="javascript:replyTo('${comment.oId}');">${replyLabel}</a>
href="javascript:page.toggleEditor('${comment.oId}', '${comment.commentName}');">${replyLabel}</a>
</div>
</#if>
</div>
@ -44,98 +63,10 @@
<div id="respond">
<h3 id="reply-title">Leave a Reply</h3>
<p class="comment-notes">Your email address will not be published.</p>
<div id="commentForm">
<p class="comment-form-author">
<label>Name</label> <input id="commentName" name="author" type="text" value="" size="30"></p>
<p class="comment-form-email">
<label>Email</label> <input id="commentEmail" name="email" type="text" value="" size="30"></p>
<p class="comment-form-url">
<label>Website</label><input id="commentURL" name="url" type="text" value="" size="30"></p>
<p class="comment-form-code">
<label><img id="captcha" alt="validate" src="/captcha.do" /></label>
<input id="commentValidate" name="code" type="text" value="" size="30">
</p>
<p class="comment-form-comment">
<label>Comment</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>
<p class="form-submit">
<button type="submit" id="submitCommentButton" onclick="page.submitComment();">Post Comment</button>
<span class="error-msg" id="commentErrorTip"></span>
</p>
<p 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>
</p>
</div>
<textarea style="width: 100%" id="comment" name="comment" rows="3" placeholder="${postCommentsLabel}" aria-required="true"></textarea>
</div>
<#else>
<div class="comstyle">The Comments <span>Closed!</span></div>
</#if>
</div>
</#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}",
"loadingLabel": "${loadingLabel}",
"oId": "${oId}",
"skinDirName": "${skinDirName}",
"blogHost": "${blogHost}",
"randomArticles1Label": "${randomArticlesLabel}",
"externalRelevantArticles1Label": "${externalRelevantArticlesLabel}"
});
var addComment = function (result, state) {
var commentHTML = '<li id="' + result.oId +
'"><div class="by-vistor"><div class="comment-author vcard">' +
'<img alt="' + $("#commentName" + state).val() +
'" src="' + result.commentThumbnailURL + '" class="avatar avatar-40 photo" height="40" width="40">' +
'<cite class="fn">' + result.replyNameHTML + '</cite>' +
'<span class="comment-meta commentmetadata">' + result.commentDate +
'<a href="#' + result.oId + '"> # </a>';
if (state !== "") {
var commentOriginalCommentName = $("#" + page.currentCommentId).find(".fn").text();
commentHTML += '&nbsp;@&nbsp;<a href="' + result.commentSharpURL.split("#")[0] + '#' + page.currentCommentId + '"'
+ 'onmouseover="page.showComment(this, \'' + page.currentCommentId + '\', 35, \'li\');"'
+ 'onmouseout="page.hideComment(\'' + page.currentCommentId + '\')">' + commentOriginalCommentName + '</a>';
}
commentHTML += '</span></div><div class="comment-content"><p>' +
Util.replaceEmString($("#comment" + state).val().replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g,"<br/>")) +
'</p></div>';
commentHTML += '</div></li>';
return commentHTML;
}
var replyTo = function (id) {
var commentFormHTML = "<div id='replyForm'>";
page.addReplyForm(id, commentFormHTML, "</div>");
};
(function () {
page.load();
// emotions
page.replaceCommentsEm("#comments .comment-content");
<#nested>
})();
</script>
</#macro>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#macro head title>
<meta charset="utf-8" />
<title>${title}</title>

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>
@ -32,6 +52,6 @@
<#include "footer.ftl">
</div>
<div id="bottom-bar"></div>
<@comment_script oId=page.oId></@comment_script>
<@comment_script oId=page.oId commentable=page.commentable></@comment_script>
</body>
</html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<ul class="xoxo">
<#if "" != noticeBoard>
<li id="calendar" class="widget">

View File

@ -1,17 +1,19 @@
#
# Copyright (C) 2009, 2010, 2011, B3log Team
# Solo - A small and beautiful blogging system written in Java.
# Copyright (c) 2010-2019, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# http://www.apache.org/licenses/LICENSE-2.0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#list articles as article>
<div class="post">
<div class="index">

View File

@ -1,5 +1,25 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<#include "macro-comments.ftl">
<#include "../../common-template/macro-comment_script.ftl">
<!DOCTYPE html>
<html>
<head>
@ -110,7 +130,7 @@
<#include "side.ftl">
<#include "footer.ftl">
</div>
<@comment_script oId=article.oId>
<@comment_script oId=article.oId commentable=article.commentable>
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
</@comment_script>
</body>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#loading
{
position:absolute;

1
skins/Shawn/css/ie6.min.css vendored Normal file
View File

@ -0,0 +1 @@
#loading,.nav{position:absolute}#loading{top:13px}#header p#title a{margin:23px 0 20px 27px}#header form{margin-right:10px}#sidebar ul li{margin-left:5px;padding:0 5px}.trackpings li,div#trackpings{padding-left:40px}#sidebar ul li ul li{width:180px}ul.trackpings{margin-right:80px}.commentlist .alt{border:1px solid #ccc;border-right:1px solid #fff;border-bottom:1px solid #fff}.commentlist .altline{border:1px solid #ccc;border-left:1px solid #fff;border-bottom:1px solid #fff}.reply p.smilies{margin-right:30px;padding:3px 3px 0}.cmntcnt{left:-70px}.post #postail a{border:1px solid #f8f8f8}.linkpage ul li ul li{border:none}.nav{right:-2px}#footer .b2t,#footer div.g2b{display:none}#share{height:40px}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#sidebar a {color:#888;}
#sidebar a:hover {color:#333;}

1
skins/Shawn/css/iestyle.min.css vendored Normal file
View File

@ -0,0 +1 @@
#sidebar a{color:#888}#sidebar a:hover{color:#333}.nav{margin:-118px 0 0 220px}#sidebar ul li ul li img{float:none;padding:0;vertical-align:middle}#share ul{background-color:#fff}

View File

@ -1,3 +1,20 @@
/**
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
* {margin:0;padding:0;}
img,
@ -1036,4 +1053,8 @@ li.current_page_item {background:#eee;}
font-size: 20px;
font-weight: bold;
}
/* end tags */
/* end tags */
.article-body img {
max-width: 100%;
}

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div id="footer">
<div id="footertext">
<span style="color: gray;">&copy; ${year}</span> - <a href="http://${blogHost}">${blogTitle}</a><br/>
@ -24,6 +43,55 @@
<a href="${staticServePath}/blog-articles-feed.do" rel="external">RSS</a> ${Repeatedlyrefresh2}
<a href="javascript:void(0)">${Repeatedlyrefresh3}</a>
</div>
<script type="text/javascript">
var latkeConfig = {
"servePath": "${servePath}",
"staticServePath": "${staticServePath}"
};
var Label = {
"clearAllCacheLabel": "${clearAllCacheLabel}",
"clearCacheLabel": "${clearCacheLabel}",
"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}"
};
$(document).ready(function () {
Util.init();
Util.replaceSideEm($("#sidebarul .arrow a"));
// set selected navi
$("#header-navi li").each(function (i) {
if (i < $("#header-navi li").length - 1) {
var $it = $(this),
locationURL = window.location.pathname + window.location.search;
if (i === 0 && (locationURL === "/")) {
$it.addClass("selected");
return;
}
if (locationURL.indexOf($it.find("a").attr("href")) > -1 && i !== 0) {
$it.addClass("selected");
}
}
});
});
</script>
<script type="text/javascript" src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
<script type="text/javascript" src="${staticServePath}/skins/${skinDirName}/js/core${miniPostfix}.js?${staticResourceVersion}"></script>
<script type="text/javascript" src="${staticServePath}/skins/${skinDirName}/js/javascription${miniPostfix}.js?${staticResourceVersion}"></script>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div id="header">
<h1 id="title">
<a href="${staticServePath}">${blogTitle}</a>

View File

@ -1,3 +1,22 @@
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#include "macro-head.ftl">
<!DOCTYPE html>
<html>

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
$("#share ul").css({
"display": "none",
"top": "-225px",

View File

@ -1 +1 @@
$("#share ul").css({display:"none",top:"-225px",opacity:"0"});$(".commentlist li cite a,.outter a").attr("href",function(){var a="{{blog.domain}}".substring(0,7)+"";return this.href.replace(a,"")});$(".commentlist li cite a[href='http://']").each(function(){$(this).replaceWith("<span style='color:#444;border-bottom:1px dotted #aaa'>"+$(this).text()+"</span>")});$(document).ready(function(){$("#header-navi li").each(function(c){if(c<$("#header-navi li").length){var b=$(this),d=window.location.pathname+window.location.search;if(c===0&&(d==="/")){b.addClass("current_page_item");return}if(d.indexOf(b.find("a").attr("href"))>-1&&c!==0){b.addClass("current_page_item")}}});if($("input#author:has[value]").length>0){$("div.friendly").css("display","none");$(".authorgra").css("display","block");var a='<span style="padding:0 5px;font:bold 10px verdana;color:#888;cursor:pointer;letter-spacing:0" class="infoeditor">(Edit)</span>';$("div#respond").append(a);$(".infoeditor").toggle(function(){$(".friendly").fadeIn();$(".authorgra").css("display","none")},function(){$(".friendly").css("display","none");$(".authorgra").fadeIn()})}$(".twitter").click(function(){window.open("http://twitter.com/ansenorg");return false});Util.setTopBar()});function hidetoolbar(){$("#wgToolBar").slideUp(600,function(){$("#showtoolbar").slideDown(600)})}function showtoolbar(){$("#showtoolbar").slideUp(600,function(){$("#wgToolBar").slideDown(600)})}var showRelatedul=function(d,b,a){var c=$("#relatedul");if(c.hasClass("hidden")){if($("#randomArticles").html()===""){page.loadRandomArticles();page.loadRelevantArticles(d,b);if(page.tips.externalRelevantArticlesDisplayCount!==0){page.loadExternalRelevantArticles(a)}}c.slideDown().removeClass("hidden")}else{c.slideUp().addClass("hidden")}};var common=new Common();
function hidetoolbar(){$("#wgToolBar").slideUp(600,function(){$("#showtoolbar").slideDown(600)})}function showtoolbar(){$("#showtoolbar").slideUp(600,function(){$("#wgToolBar").slideDown(600)})}$("#share ul").css({display:"none",top:"-225px",opacity:"0"}),$(".commentlist li cite a,.outter a").attr("href",function(){var e="{{blog.domain}}".substring(0,7)+"";return this.href.replace(e,"")}),$(".commentlist li cite a[href='http://']").each(function(){$(this).replaceWith("<span style='color:#444;border-bottom:1px dotted #aaa'>"+$(this).text()+"</span>")}),$(document).ready(function(){if($("#header-navi li").each(function(e){if(e<$("#header-navi li").length){var t=$(this),n=window.location.pathname+window.location.search;if(0===e&&"/"===n)return void t.addClass("current_page_item");-1<n.indexOf(t.find("a").attr("href"))&&0!==e&&t.addClass("current_page_item")}}),0<$("input#author:has[value]").length){$("div.friendly").css("display","none"),$(".authorgra").css("display","block");$("div#respond").append('<span style="padding:0 5px;font:bold 10px verdana;color:#888;cursor:pointer;letter-spacing:0" class="infoeditor">(Edit)</span>'),$(".infoeditor").toggle(function(){$(".friendly").fadeIn(),$(".authorgra").css("display","none")},function(){$(".friendly").css("display","none"),$(".authorgra").fadeIn()})}$(".twitter").click(function(){return window.open("http://twitter.com/ansenorg"),!1}),Util.setTopBar()});var showRelatedul=function(e,t,n){var a=$("#relatedul");a.hasClass("hidden")?(""===$("#randomArticles").html()&&(page.loadRandomArticles(),page.loadRelevantArticles(e,t),0!==page.tips.externalRelevantArticlesDisplayCount&&page.loadExternalRelevantArticles(n)),a.slideDown().removeClass("hidden")):a.slideUp().addClass("hidden")},common=new Common;

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
jQuery(document).ready(function()
{
$(".commentlist li:even").addClass("alt");

View File

@ -1 +1 @@
jQuery(document).ready(function(){$(".commentlist li:even").addClass("alt");$(".commentlist li:odd").addClass("altline");loadjs=false});function get_check_area(a){if(a==1){$("#check").load("/checkcode/");$("#checkarea").show()}else{if(a==2){$("#check").html("<img id='checkimg' src='/checkimg/' style='border:0px;padding:0;float:left;margin-right:8px' title='Click here to change Code' onclick='reloadCheckImage();' />");$("#checkarea").show()}}}function reloadCheckImage(){var a=document.getElementById("checkimg");a.src+="?"}function showinfo(a){window.alert(a)}function add_comment(a){comment=$(a);if(!loadjs){$("#comments").prepend(comment).show();$.getScript("http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js",function(){comment.animate({backgroundColor:"#fbc7c7"},"slow").animate({backgroundColor:"white"},"slow");loadjs=true})}else{$("#comments").prepend(comment);comment.animate({backgroundColor:"#fbc7c7"},"slow").animate({backgroundColor:"white"},"slow")}};
function get_check_area(e){1==e?($("#check").load("/checkcode/"),$("#checkarea").show()):2==e&&($("#check").html("<img id='checkimg' src='/checkimg/' style='border:0px;padding:0;float:left;margin-right:8px' title='Click here to change Code' onclick='reloadCheckImage();' />"),$("#checkarea").show())}function reloadCheckImage(){document.getElementById("checkimg").src+="?"}function showinfo(e){window.alert(e)}function add_comment(e){comment=$(e),loadjs?($("#comments").prepend(comment),comment.animate({backgroundColor:"#fbc7c7"},"slow").animate({backgroundColor:"white"},"slow")):($("#comments").prepend(comment).show(),$.getScript("http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js",function(){comment.animate({backgroundColor:"#fbc7c7"},"slow").animate({backgroundColor:"white"},"slow"),loadjs=!0}))}jQuery(document).ready(function(){$(".commentlist li:even").addClass("alt"),$(".commentlist li:odd").addClass("altline"),loadjs=!1});

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
(function($) {
$.fn.ajaxSubmit = function(o) {
if (typeof o == "function") {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
function showPageLink(sUrl, iPage, iCount, sAnchor)
{
var i = 0;

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