上次错误
This commit is contained in:
@@ -9,7 +9,6 @@ $logo = $site['site_logo'];
|
||||
$defaultMode = $site['default_mode'];
|
||||
$headerStyle = $site['header'];
|
||||
$icp = $site['icp'];
|
||||
$gongan = $site['gongan'] ?? '';
|
||||
|
||||
// ── 页面级 SEO 数据(控制器通过 $this->view() 或 $data 传入)────
|
||||
$pageSeo = $pageSeo ?? [];
|
||||
@@ -138,8 +137,8 @@ $isActive = function ($url) use ($current) {
|
||||
<header class="site-header" id="siteHeader">
|
||||
<div class="container nav-inner">
|
||||
<a class="brand" href="<?php echo site_url(); ?>">
|
||||
<?php $logoSrc = $logo ? (preg_match('#^https?://|^\/\/#i', (string)$logo) ? $logo : site_url(ltrim($logo, '/'))) : ''; ?>
|
||||
<?php if ($logoSrc): ?><img src="<?php echo e($logoSrc); ?>" alt="<?php echo e($name); ?>" class="brand-logo"><?php else: ?><span class="brand-mark">❄</span><?php endif; ?>
|
||||
<?php if ($logo): ?><img src="<?php echo e($logo); ?>" alt="<?php echo e($name); ?>" class="brand-logo"><?php else: ?><span class="brand-mark">❄</span><?php endif; ?>
|
||||
<span class="brand-name"><?php echo e($name); ?></span>
|
||||
</a>
|
||||
<nav class="nav-links" id="navLinks">
|
||||
<?php foreach ($nav as $n): ?>
|
||||
@@ -162,7 +161,8 @@ $isActive = function ($url) use ($current) {
|
||||
<div class="container footer-grid">
|
||||
<div>
|
||||
<div class="brand">
|
||||
<?php if ($logoSrc): ?><img src="<?php echo e($logoSrc); ?>" alt="<?php echo e($name); ?>" class="brand-logo"><?php else: ?><span class="brand-mark">❄</span><span class="brand-name"><?php echo e($name); ?></span><?php endif; ?>
|
||||
<span class="brand-mark">❄</span>
|
||||
<span class="brand-name"><?php echo e($name); ?></span>
|
||||
</div>
|
||||
<p class="footer-slogan"><?php echo e($slogan); ?></p>
|
||||
<p class="footer-line">电话:<a href="tel:<?php echo e($phone); ?>"><?php echo e($phone); ?></a></p>
|
||||
@@ -193,7 +193,6 @@ $isActive = function ($url) use ($current) {
|
||||
<div class="footer-bottom container">
|
||||
<span>© <?php echo date('Y'); ?> <?php echo e($name); ?> · 科技降温服装定制</span>
|
||||
<?php if ($icp): ?><span><?php echo e($icp); ?></span><?php endif; ?>
|
||||
<?php if ($gongan): ?><span><a href="https://beian.mps.gov.cn/" target="_blank" rel="noopener"><?php echo e($gongan); ?></a></span><?php endif; ?>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user