solo-third-skins/skins/5styles/side.ftl

156 lines
4.7 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/>.
-->
<#--
<div id="rss">
<a href="#"><div id="rss-pic"></div></a>
</div>
<form method="get" id="searchform" action="#">
<input type="text" value="#" name="s" id="s" />
<input type="submit" type="image" id="searchsubmit" value="" />
</form>
-->
<div class="postmetadata">
<span>
${viewCount1Label}
<span class='error-msg'>
${statistic.statisticBlogViewCount}
</span>
&nbsp;&nbsp;
</span>
<span>
${articleCount1Label}
<span class='error-msg'>
${statistic.statisticPublishedBlogArticleCount}
</span>
&nbsp;&nbsp;
</span><br>
<span>
${commentCount1Label}
<span class='error-msg'>
${statistic.statisticPublishedBlogCommentCount}
</span>
</span><br />
<form target="_blank" method="get" id="searchform" action="/search">
<input type="text" value="" name="q" id="s">
<input type="submit" id="searchsubmit" value="${searchLable}">
</form>
</div>
<ul id="sidebarul">
<#if "" != noticeBoard>
<li>
<h3>${noticeBoardLabel}</h3>
<ul>
${noticeBoard}
</ul>
</li>
</#if>
<#if 0 != recentComments?size>
<li>
<h3>${recentCommentsLabel}</h3>
<ul class="comms breakline">
<#list recentComments as comment>
<li class="fn__flex">
<span class="arrow">
</span>
<a rel="nofollow" title="${comment.commentContent}" href="${servePath}${comment.commentSharpURL}">
${comment.commentContent}
</a>
</li>
</#list>
</ul>
</li>
</#if>
<#if 0 != mostCommentArticles?size>
<li>
<h3>${mostCommentArticlesLabel}</h3>
<ul class="shortline slist">
<#list mostCommentArticles as article>
<li>
<a title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
[${article.articleCommentCount}] ${article.articleTitle}
</a>
</li>
</#list>
</ul>
</li>
</#if>
<#if 0 != mostViewCountArticles?size>
<li>
<h3>${mostViewCountArticlesLabel}</h3>
<ul class="shortline slist">
<#list mostViewCountArticles as article>
<li>
<a title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
[${article.articleViewCount}] ${article.articleTitle}
</a>
</li>
</#list>
</ul>
</li>
</#if>
<#if 0 != mostUsedTags?size>
<li>
<h3>${popTagsLabel}</h3>
<ul class="side-cat" >
<#list mostUsedTags as tag>
<a href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}">
<span>
${tag.tagTitle}(${tag.tagPublishedRefCount})
</span></a>
</#list>
</ul>
<div class="clear"></div>
</li>
</#if>
<#if 0 != links?size>
<li>
<h3>${linkLabel}</h3>
<ul class="shortline slist">
<#list links as link>
<li>
<a href="${link.linkAddress}" title="${link.linkTitle}" target="_blank">
${link.linkTitle}
</a>
</li>
</#list>
</ul>
</li>
</#if>
<#if 0 != archiveDates?size>
<li>
<h3>${archiveLabel}</h3>
<ul class="shortline slist">
<#list archiveDates as archiveDate>
<li>
<#if "en" == localeString?substring(0, 2)>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}">
${archiveDate.monthName} ${archiveDate.archiveDateYear} (${archiveDate.archiveDatePublishedArticleCount})
</a>
<#else>
<a href="${servePath}/archives/${archiveDate.archiveDateYear}/${archiveDate.archiveDateMonth}">
${archiveDate.archiveDateYear} ${yearLabel} ${archiveDate.archiveDateMonth} ${monthLabel}(${archiveDate.archiveDatePublishedArticleCount})
</a>
</#if>
</li>
</#list>
</ul>
</li>
</#if>
</ul>