116 lines
5.0 KiB
Plaintext
116 lines
5.0 KiB
Plaintext
<#--
|
|
|
|
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">
|
|
<input type="hidden" name="cx" value="003546163348813487923:cn_wvlqmqvs">
|
|
<input type="hidden" name="ie" value="UTF-8">
|
|
<input type="text" class="search icon" name="q" id="s" size="25">
|
|
<input type="submit" id="searchsubmit" class="button" value="搜索">
|
|
</fieldset>
|
|
</form>
|
|
<div class="hor_side"></div>
|
|
<#if "" != noticeBoard>
|
|
<div class="widget hor_side">
|
|
<h3><span>${noticeBoardLabel}</span></h3><div>
|
|
<span>${noticeBoard}</span>
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
<#if 0 != mostViewCountArticles?size>
|
|
<div class="widget hor_side">
|
|
<h3><span>${mostViewCountArticlesLabel}</span></h3><ul>
|
|
<#list mostViewCountArticles as article>
|
|
<li>
|
|
<a href="${article.articlePermalink}" title="${article.articleTitle}">${article.articleTitle} - ${article.articleViewCount}</a>
|
|
</li>
|
|
</#list>
|
|
</ul>
|
|
</div>
|
|
</#if>
|
|
<#if 0 != mostCommentArticles?size>
|
|
<div class="widget hor_side">
|
|
<h3><span>${mostCommentArticlesLabel}</span></h3><ul>
|
|
<#list mostCommentArticles as article>
|
|
<li>
|
|
<a href="${article.articlePermalink}" title = "${article.articleTitle}">${article.articleTitle} - ${article.articleCommentCount}</a>
|
|
</li>
|
|
</#list>
|
|
</ul>
|
|
</div>
|
|
</#if>
|
|
<#if 0 != mostUsedTags?size>
|
|
<div class="widget hor_side">
|
|
<#list mostUsedTags as tag>
|
|
<a data-count="${tag.tagPublishedRefCount}" href="${staticServePath}/tags/${tag.tagTitle?url('UTF-8')}" class="tag-link-37" title="${tag.tagPublishedRefCount} 个话题" style="font-size: 14.75px;">${tag.tagTitle}</a>
|
|
</#list>
|
|
</div>
|
|
</#if>
|
|
<#if 0 != recentComments?size>
|
|
<div class="widget hor_side">
|
|
<h3><span>${recentCommentsLabel}</span></h3>
|
|
<ul id="recentComments">
|
|
<#list recentComments as comment>
|
|
<li class="r_item">
|
|
<div class="row">
|
|
<span class="r_name">
|
|
<a href="${comment.commentSharpURL}">${comment.commentName}</a>
|
|
</span>
|
|
<br>
|
|
<span class="r_excerpt" title="${comment.commentContent}">${comment.commentContent}</span>
|
|
</div>
|
|
</li>
|
|
</#list>
|
|
</ul>
|
|
</div>
|
|
</#if>
|
|
<#if 0 != links?size>
|
|
<div class="widget hor_side">
|
|
<h3>${linkLabel}</h3>
|
|
<ul>
|
|
<#list links as link>
|
|
<li>
|
|
<a href="${link.linkAddress}" title ="${link.linkTitle}" style="background:url(http://www.google.com/s2/favicons?domain_url=${link.linkAddress}) no-repeat 0 center;padding:2px 0 2px 20px" target="_blank">${link.linkTitle}</a>
|
|
</li>
|
|
</#list>
|
|
</ul>
|
|
</div>
|
|
</#if>
|
|
<#if 0 != archiveDates?size>
|
|
<div class="widget hor_side">
|
|
<h3><span>${archiveLabel}</span></h3>
|
|
<ul id="archiveSide">
|
|
<#list archiveDates as archiveDate>
|
|
<li data-year="${archiveDate.archiveDateYear}">
|
|
<#if "en" == localeString?substring(0, 2)>
|
|
<a href="${staticServePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
|
|
title="${archiveDate.monthName} ${archiveDate.archiveDateYear}(${archiveDate.archiveDatePublishedArticleCount})">
|
|
${archiveDate.monthName} ${archiveDate.archiveDateYear}</a>(${archiveDate.archiveDatePublishedArticleCount})
|
|
<#else>
|
|
<a href="${staticServePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}"
|
|
title="${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})">
|
|
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}</a>(${archiveDate.archiveDatePublishedArticleCount})
|
|
</#if>
|
|
</li>
|
|
</#list>
|
|
</ul>
|
|
</div>
|
|
</#if>
|
|
</aside> |