码桶
发现社区成员的开源项目
footer.php7.1 KB
</div>
</main>
<footer class="site-footer">
<div class="container">
<div class="footer-widgets">
<div class="footer-widget">
<h4 class="widget-title">关于本站</h4>
<?php $lbAbout = trim($this->options->footerAbout ?? ''); ?>
<?php if ($lbAbout): ?>
<div class="footer-about"><?php echo $lbAbout; ?></div>
<?php else: ?>
<p><?php $this->options->description(); ?></p>
<?php endif; ?>
</div>
<div class="footer-widget">
<h4 class="widget-title">热门分类</h4>
<ul class="footer-list footer-links-grid">
<?php
$footerCats = \Widget\Metas\Category\Rows::allocWithAlias('footer-cats');
while ($footerCats->next()):
?>
<li><a href="<?php $footerCats->permalink(); ?>"><?php $footerCats->name(); ?></a></li>
<?php endwhile; ?>
</ul>
</div>
<div class="footer-widget">
<h4 class="widget-title">快速链接</h4>
<ul class="footer-list footer-links-grid">
<?php
$pages = \Widget\Contents\Page\Rows::alloc();
while ($pages->next()):
?>
<li><a href="<?php $pages->permalink(); ?>"><?php $pages->title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>
<div class="footer-bottom">
<div class="footer-icps">
<?php if ($this->options->icp): ?>
<div class="footer-icp">
<a href="<?php echo htmlspecialchars(trim($this->options->icpUrl ?? '') ?: 'https://beian.miit.gov.cn/'); ?>" target="_blank" rel="nofollow noopener">
<?php $this->options->icp(); ?>
</a>
</div>
<?php endif; ?>
<?php if ($this->options->govIc): ?>
<?php
$lbGovUrl = trim($this->options->govIcUrl ?? '');
if ($lbGovUrl === '') {
$lbGovUrl = 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=';
}
if (substr($lbGovUrl, -11) === 'recordcode=') {
$lbGovNum = preg_replace('/[^0-9]/', '', trim($this->options->govIc));
if ($lbGovNum !== '') {
$lbGovUrl .= $lbGovNum;
}
}
?>
<div class="footer-icp">
<a href="<?php echo htmlspecialchars($lbGovUrl); ?>" target="_blank" rel="nofollow noopener">
<?php $this->options->govIc(); ?>
</a>
</div>
<?php endif; ?>
</div>
<div class="footer-powered">
<?php if (trim($this->options->footerPowered ?? '') !== ''): ?>
<?php echo $this->options->footerPowered; ?>
<?php else: ?>
Powered by <a href="https://typecho.org" target="_blank" rel="nofollow noopener">Typecho</a>
|
Theme <strong>LB Down</strong>
<?php endif; ?>
</div>
</div>
</div>
</footer>
<script>window.LB_SITE_URL = '<?php echo addslashes($this->options->siteUrl); ?>';</script>
<div class="search-modal" id="search-modal">
<div class="search-modal-box">
<form class="search-modal-form" action="<?php $this->options->siteUrl(); ?>" method="get" role="search">
<input type="search" name="s" placeholder="搜索资源..." autocomplete="off" autofocus>
<button type="submit">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
</svg>
搜索
</button>
</form>
</div>
</div>
<?php if (intval($this->options->floatBarEnable ?? 0)): ?>
<?php
$fQQ = trim($this->options->floatQQ ?? '');
$fQQImg = trim($this->options->floatQQImg ?? '');
$fWxImg = trim($this->options->floatWxImg ?? '');
$fToday = trim($this->options->floatTodayUrl ?? '');
$fVip = trim($this->options->floatVipUrl ?? '');
$fAsk = trim($this->options->floatAskUrl ?? '');
$fReport = trim($this->options->floatReportUrl ?? '');
?>
<div id="siderbar">
<?php if ($fQQ || $fQQImg): ?>
<div class="sidebar_cell cell-qq">
<a href="<?php echo $fQQ ? 'https://wpa.qq.com/msgrd?v=3&uin=' . urlencode($fQQ) . '&site=qq&menu=yes' : 'javascript:;'; ?>" target="_blank" title="QQ客服">
<span class="cell-item cell-icon"></span>
<?php if ($fQQImg): ?>
<div class="cell-item cell-img">
<div class="cell-img-wrap">
<img src="<?php echo htmlspecialchars($fQQImg); ?>" alt="QQ客服">
<p>QQ 客服</p>
</div>
</div>
<?php endif; ?>
</a>
</div>
<?php endif; ?>
<?php if ($fWxImg): ?>
<div class="sidebar_cell cell-wx">
<a href="javascript:;" title="微信客服">
<span class="cell-item cell-icon"></span>
<div class="cell-item cell-img">
<div class="cell-img-wrap">
<img src="<?php echo htmlspecialchars($fWxImg); ?>" alt="微信客服">
<p>微信客服</p>
</div>
</div>
</a>
</div>
<?php endif; ?>
<?php if ($fToday): ?>
<div class="sidebar_cell cell-link cell-today">
<a href="<?php echo htmlspecialchars($fToday); ?>" target="_blank" title="今日更新"><span class="cell-item cell-icon"></span></a>
</div>
<?php endif; ?>
<?php if ($fVip): ?>
<div class="sidebar_cell cell-link cell-vip">
<a href="<?php echo htmlspecialchars($fVip); ?>" target="_blank" title="VIP"><span class="cell-item cell-icon"></span></a>
</div>
<?php endif; ?>
<?php if ($fAsk): ?>
<div class="sidebar_cell cell-link cell-ask">
<a href="<?php echo htmlspecialchars($fAsk); ?>" target="_blank" title="求软件"><span class="cell-item cell-icon"></span></a>
</div>
<?php endif; ?>
<?php if ($fReport): ?>
<div class="sidebar_cell cell-link cell-report">
<a href="<?php echo htmlspecialchars($fReport); ?>" target="_blank" title="内容举报"><span class="cell-item cell-icon"></span></a>
</div>
<?php endif; ?>
<div class="sidebar_cell cell-top">
<a href="#top" class="float-back-top" title="返回顶部"><span class="cell-item cell-icon"></span></a>
</div>
</div>
<?php endif; ?>
<?php if ($this->options->analyticsCode): ?>
<?php echo $this->options->analyticsCode; ?>
<?php endif; ?>
<script src="<?php echo lb_theme_url('assets/js/main.js'); ?>?v=<?php echo LB_THEME_VERSION; ?>"></script>
<?php $this->footer(); ?>
</body>
</html>