58 lines
3.4 KiB
PHP
58 lines
3.4 KiB
PHP
<?php
|
|
use App\Content\View;
|
|
|
|
$e = View::escape(...);
|
|
?>
|
|
<footer class="site-footer" id="contact"<?= empty($hideFooter) ? '' : ' hidden' ?>>
|
|
<div class="wrap">
|
|
<div class="footer-grid">
|
|
<div class="footer-company" itemscope itemtype="https://schema.org/Organization">
|
|
<?php if ($footer['logo'] !== ''): ?>
|
|
<a class="footer-logo" href="/" itemprop="url" aria-label="来笙 Laysense 首页">
|
|
<img src="<?= $e($footer['logo']) ?>" alt="<?= $e($footer['alt']) ?>" width="130" height="33" itemprop="logo" loading="lazy">
|
|
</a>
|
|
<?php endif ?>
|
|
<p itemprop="name"><?= $e($footer['name']) ?></p>
|
|
<?php if ($footer['address']): ?><address itemprop="address"><?= $e($footer['address']) ?></address><?php endif ?>
|
|
<?php if ($footer['email']): ?>
|
|
<a itemprop="email" href="mailto:<?= $e($footer['email']) ?>"><?= $e($footer['email']) ?></a>
|
|
<?php endif ?>
|
|
<p class="footer-payment-label">支持的付款方式</p>
|
|
<div class="payment-methods" aria-label="支持的付款方式">
|
|
<img src="/assets/original/payment-taobao.png" alt="淘宝" width="26" height="26" loading="lazy">
|
|
<img src="/assets/original/payment-alipay.png" alt="支付宝" width="26" height="26" loading="lazy">
|
|
<img src="/assets/original/payment-wechat.png" alt="微信支付" width="26" height="26" loading="lazy">
|
|
</div>
|
|
</div>
|
|
<nav class="footer-links" aria-label="页脚导航">
|
|
<?php foreach (['products', 'company', 'resources'] as $group): ?>
|
|
<?php if (!$footer[$group] && $footer[$group . '_title'] === '') { continue; } ?>
|
|
<div>
|
|
<?php if ($footer[$group . '_title'] !== ''): ?><h2 class="footer-label"><?= $e($footer[$group . '_title']) ?></h2><?php endif ?>
|
|
<?php if ($footer[$group]): ?>
|
|
<ul>
|
|
<?php foreach ($footer[$group] as [$url, $label]): ?><li><a href="<?= $e($url) ?>"><?= $e($label) ?></a></li><?php endforeach ?>
|
|
</ul>
|
|
<?php endif ?>
|
|
</div>
|
|
<?php endforeach ?>
|
|
</nav>
|
|
</div>
|
|
<div class="footer-meta">
|
|
<?php if ($footer['copyright']): ?><p><?= $e($footer['copyright']) ?></p><?php endif ?>
|
|
<?php if ($footer['email'] || $footer['phones']): ?>
|
|
<p>
|
|
<?php if ($footer['email']): ?><a href="mailto:<?= $e($footer['email']) ?>"><?= $e($footer['email']) ?></a><?php endif ?>
|
|
<?php if ($footer['phones']): ?>全球号码:
|
|
<?php foreach ($footer['phones'] as $index => [$url, $label]): ?>
|
|
<?= $index ? ' / ' : '' ?><a href="<?= $e($url) ?>"><?= $e($label) ?></a>
|
|
<?php endforeach ?>
|
|
<?php endif ?>
|
|
</p>
|
|
<?php endif ?>
|
|
<?php if ($footer['terms']): ?><p class="footer-terms"><?= $e($footer['terms']) ?></p><?php endif ?>
|
|
<?php if ($footer['registration']): ?><p><a href="https://beian.miit.gov.cn/"><?= $e($footer['registration']) ?></a></p><?php endif ?>
|
|
</div>
|
|
</div>
|
|
</footer>
|