solo-skins/metro-hot/macro-side.ftl
2018-09-26 18:43:15 +08:00

188 lines
6.1 KiB
Plaintext

<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2018, 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 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="&#x0067;"></span>
<input type="submit" value="" class="fn-none" />
</form>
<#if "" != noticeBoard>
<div class="notice-board side-tile">
<span data-ico="&#xe1e9;"></span>
<div class="title">
${noticeBoard}
</div>
<div class="text">
${noticeBoardLabel}
</div>
</div>
</#if>
<div class="online-count side-tile">
<span data-ico="&#xe037;"></span>
<div class="text">
${viewCount1Label}
${statistic.statisticBlogViewCount}<br/>
${articleCount1Label}
${statistic.statisticPublishedBlogArticleCount}<br/>
${commentCount1Label}
${statistic.statisticPublishedBlogCommentCount}<br/>
</div>
</div>
</#if>
<a rel="alternate" href="${servePath}/rss.xml" class="atom side-tile">
<span data-ico="&#xe135;"></span>
<div class="title">
RSS
</div>
</a>
<a href="javascript: MetroHot.goTranslate();" class="translate side-tile">
<span data-ico="&#x0038;"></span>
<div class="title">
${translateLabel}
</div>
</a>
<#if isArticle>
<div class="share side-tile">
<span data-ico="&#xe1fe;"></span>
<div class="title">
${shareLabel}
</div>
<div class="text">
<span data-ico="&#xe0c1;" title="Tencent"></span>
<span data-ico="&#xe185;" title="Sina"></span>
<span data-ico="&#xe092;" title="Twitter"></span>
<span data-ico="&#xe08e;" title="Google"></span>
</div>
</div>
<#if relevantArticlesDisplayCount??>
<#if nextArticlePermalink??>
<a class="next side-tile" title="${nextArticleTitle}"
href="${servePath}${nextArticlePermalink}">
<span data-ico="&#xe107;"></span>
<div class="title">
${nextArticleLabel}
</div>
</a>
<#else>
<div class="next-disabled side-tile">
<span data-ico="&#xe107;"></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="&#xe106;"></span>
<div class="title">
${previousArticleLabel}
</div>
</a>
<#else>
<div class="prev-disabled side-tile">
<span data-ico="&#xe106;"></span>
<div class="title">
${lastArticleLabel}
</div>
</div>
</#if>
<#if 0 != relevantArticlesDisplayCount>
<div id="relevantArticles" class="side-tile article-relative">
<span data-ico="&#xe020;"></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="&#xe024;"></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="&#xe021;"></span>
<div class="title">
${externalRelevantArticlesLabel}
</div>
<div class="text">
</div>
</div>
</#if>
</#if>
</#if>
<a class="login side-tile">
<span data-ico="&#xe03f;"></span>
<div class="title">
${loginLabel}
</div>
</a>
<a href="${servePath}/register" class="register side-tile">
<span data-ico="&#xe02b;"></span>
<div class="title">
${registerLabel}
</div>
</a>
<div class="user side-tile">
<span>
<img src="<#if gravatar??>${gravatar}</#if>"/>
</span>
<div class="text"></div>
</div>
<a href="${servePath}/admin-index.do#main" class="settings side-tile">
<span data-ico="&#x0070;"></span>
<div class="title">
${adminLabel}
</div>
</a>
<a href="${servePath}/register" class="logout side-tile">
<span data-ico="&#xe040;"></span>
<div class="title">
${logoutLabel}
</div>
</a>
</div>
</div>
</#macro>