halo-theme-hao/templates/modules/moment.html

39 lines
2.0 KiB
HTML
Raw Permalink Normal View History

2024-04-12 06:35:37 +00:00
<div class="bbTimeList container" id="bbTimeList"
th:if="${theme.config.top.moment}">
<i class="haofont hao-icon-logo-moment" onclick="" style="font-size: 1.3rem;" title="瞬间"></i>
<!-- 未安装插件 -->
<th:block th:if="!${pluginFinder.available('PluginMoments')}">
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk"
onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'">
<div class="li-style swiper-slide">这里需要安装瞬间的插件</div>
<div class="li-style swiper-slide">去安装吧!</div>
</div>
</div>
<i class="bber-gotobb haofont hao-icon-circle-arrow-right"
onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'" title="下载插件"></i>
</th:block>
<!-- 瞬间插件 -->
<th:block th:if="${pluginFinder.available('PluginMoments')}">
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk" onclick="pjax.loadUrl('/moments')" th:if="${momentFinder}">
<th:block th:each="moment : ${momentFinder.listAll()}" th:with="content=${moment.spec.content}">
<div class="li-style swiper-slide"
th:if="${not #strings.isEmpty(content.raw)}"
th:utext="${content.raw}">
</div>
</th:block>
</div>
</div>
<i class="bber-gotobb haofont hao-icon-circle-arrow-right" onclick="location.href='/moments'" title="查看全文"></i>
</th:block>
<img th:if="${theme.config.top.climb.climbEnable && theme.config.top.recentTop} " class="climb" id="climb"
th:src="${isLazyload ? loadingImg : theme.config.top.climb.climbImg}"
onclick="halo.changeMarginLeft(this)"
th:data-lazy-src="${ isLazyload ? theme.config.top.climb.climbImg : ''}">
</div>