Van
2019-02-11 01:06:43 +08:00
parent dd015bb41e
commit d7e9db917c
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/>.
-->
<#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>