201 lines
6.9 KiB
Plaintext
201 lines
6.9 KiB
Plaintext
<#--
|
|
|
|
Solo - A small and beautiful blogging system written in Java.
|
|
Copyright (c) 2010-present, b3log.org
|
|
|
|
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 side isArticle>
|
|
<div class="side">
|
|
<div class="fn-clear">
|
|
<#if !isArticle>
|
|
<form action="${servePath}/search">
|
|
<input placeholder="Search" id="search" type="text" name="keyword" /><span onclick="$(this).parent().submit()" data-ico="g"></span>
|
|
<input type="submit" value="" class="fn-none" />
|
|
</form>
|
|
|
|
<#if "" != noticeBoard>
|
|
<div class="notice-board side-tile">
|
|
<div class="title">
|
|
${noticeBoard}
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<div class="online-count side-tile">
|
|
<span data-ico=""></span>
|
|
<div class="text">
|
|
${viewCount1Label}
|
|
${statistic.statisticBlogViewCount}<br/>
|
|
${articleCount1Label}
|
|
${statistic.statisticPublishedBlogArticleCount}<br/>
|
|
${commentCount1Label}
|
|
${statistic.statisticPublishedBlogCommentCount}<br/>
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<#if article?? && article.articleToC?? && article.articleToC?size > 0>
|
|
<div class="vditor-reset" style="margin-top: 20px">
|
|
<#include "../../common-template/toc.ftl"/>
|
|
</div>
|
|
</#if>
|
|
|
|
<a rel="alternate" href="${servePath}/rss.xml" class="atom side-tile">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
RSS
|
|
</div>
|
|
</a>
|
|
|
|
<a href="javascript: MetroHot.goTranslate();" class="translate side-tile">
|
|
<span data-ico="8"></span>
|
|
<div class="title">
|
|
${translateLabel}
|
|
</div>
|
|
</a>
|
|
|
|
<#if isArticle>
|
|
<div class="share side-tile">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${shareLabel}
|
|
</div>
|
|
<div class="text">
|
|
<#if article??>
|
|
<span class="icon-wechat"
|
|
data-type="wechat"
|
|
data-title="${article.articleTitle}"
|
|
data-blogtitle="${blogTitle}"
|
|
data-url="${servePath}${article.articlePermalink}"
|
|
data-avatar="${article.authorThumbnailURL}">微信</span>
|
|
<#else>
|
|
<span class="icon-wechat"
|
|
data-type="wechat"
|
|
data-title="${page.pageTitle}"
|
|
data-blogtitle="${blogTitle}"
|
|
data-url="${servePath}${page.pagePermalink}"
|
|
data-avatar="${adminUser.userAvatar}">微信</span>
|
|
</#if>
|
|
<span data-type="weibo">微博</span>
|
|
<span data-type="twitter">Twitter</span>
|
|
<span data-type="qqz">QQ</span>
|
|
</div>
|
|
</div>
|
|
|
|
<#if relevantArticlesDisplayCount??>
|
|
<#if nextArticlePermalink??>
|
|
<a class="next side-tile" title="${nextArticleTitle}"
|
|
href="${servePath}${nextArticlePermalink}">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${nextArticleLabel}
|
|
</div>
|
|
</a>
|
|
<#else>
|
|
<div class="next-disabled side-tile">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${newestArticleLabel}
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<#if previousArticlePermalink??>
|
|
<a class="prev side-tile" title="${previousArticleTitle}" rel="prev"
|
|
href="${servePath}${previousArticlePermalink}">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${previousArticleLabel}
|
|
</div>
|
|
</a>
|
|
<#else>
|
|
<div class="prev-disabled side-tile">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${lastArticleLabel}
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<#if 0 != relevantArticlesDisplayCount>
|
|
<div id="relevantArticles" class="side-tile article-relative">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${relevantArticlesLabel}
|
|
</div>
|
|
<div class="text">
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<#if 0 != randomArticlesDisplayCount>
|
|
<div id="randomArticles" class="side-tile article-relative">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${randomArticlesLabel}
|
|
</div>
|
|
<div class="text">
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<#if externalRelevantArticlesDisplayCount?? && 0 != externalRelevantArticlesDisplayCount>
|
|
<div id="externalRelevantArticles" class="side-tile article-relative">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${externalRelevantArticlesLabel}
|
|
</div>
|
|
<div class="text">
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
</#if>
|
|
</#if>
|
|
|
|
<div class="user side-tile">
|
|
<span>
|
|
<img src="${faviconURL}"/>
|
|
</span>
|
|
<div class="text fn-clear">
|
|
<#include "../../common-template/macro-user_site.ftl"/>
|
|
<@userSite dir="n"/>
|
|
</div>
|
|
</div>
|
|
|
|
<#if isLoggedIn>
|
|
<a href="${servePath}/admin-index.do#main" class="settings side-tile">
|
|
<span data-ico="p"></span>
|
|
<div class="title">
|
|
${adminLabel}
|
|
</div>
|
|
</a>
|
|
<a class="logout side-tile" href="${logoutURL}">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${logoutLabel}
|
|
</div>
|
|
</a>
|
|
<#else>
|
|
<a href="${servePath}/start" class="register side-tile">
|
|
<span data-ico=""></span>
|
|
<div class="title">
|
|
${startToUseLabel}
|
|
</div>
|
|
</a>
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
</#macro> |