💯 子模块目录调整
This commit is contained in:
188
metro-hot/macro-side.ftl
Normal file
188
metro-hot/macro-side.ftl
Normal file
@@ -0,0 +1,188 @@
|
||||
<#--
|
||||
|
||||
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="g"></span>
|
||||
<input type="submit" value="" class="fn-none" />
|
||||
</form>
|
||||
|
||||
<#if "" != noticeBoard>
|
||||
<div class="notice-board side-tile">
|
||||
<span data-ico=""></span>
|
||||
<div class="title">
|
||||
${noticeBoard}
|
||||
</div>
|
||||
<div class="text">
|
||||
${noticeBoardLabel}
|
||||
</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>
|
||||
|
||||
<a rel="alternate" href="${servePath}/blog-articles-rss.do" 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">
|
||||
<span data-ico="" title="Tencent"></span>
|
||||
<span data-ico="" title="Sina"></span>
|
||||
<span data-ico="" title="Twitter"></span>
|
||||
<span data-ico="" title="Google"></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>
|
||||
|
||||
<a class="login side-tile">
|
||||
<span data-ico=""></span>
|
||||
<div class="title">
|
||||
${loginLabel}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="${servePath}/register" class="register side-tile">
|
||||
<span data-ico=""></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="p"></span>
|
||||
<div class="title">
|
||||
${adminLabel}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="${servePath}/register" class="logout side-tile">
|
||||
<span data-ico=""></span>
|
||||
<div class="title">
|
||||
${logoutLabel}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</#macro>
|
||||
Reference in New Issue
Block a user