<?php
/**
 * 芋头CMS
 * ============================================================================
 * 版权所有 2016-2028 沅陵县乌托邦网络服务有限公司，并保留所有权利。
 * 网站地址: http://www.yutoucms.cn
 * ----------------------------------------------------------------------------
 * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷。
 * ============================================================================
 * Author: 芋头 <mxgsf@qq.com>
 * Date: 2026-6-1
 */
?>
<footer class="footer">
<div class="container">
<div class="footer-grid">
<div class="footer-brand">
<h3><?php echo htmlspecialchars(isset($site['site_name']) ? $site['site_name'] : '企业网站'); ?></h3>
<p><?php echo htmlspecialchars(isset($site['site_description']) ? $site['site_description'] : '专业的企业网站解决方案提供商'); ?></p>
</div>
<div class="footer-col">
<h4>快速链接</h4>
<ul>
<?php
$footChannels = $db->fetchAll("SELECT * FROM {$db->table('channel')} WHERE parent_id = 0 AND is_show = 1 ORDER BY list_order ASC, id ASC LIMIT 5");
foreach($footChannels as $fc):
?>
<li><a href="<?php echo getUrl('channel', $fc['id']); ?>"><?php echo htmlspecialchars($fc['channel_name']); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<div class="footer-col">
<h4>新闻资讯</h4>
<ul>
<li><a href="<?php echo getUrl('channel', 4); ?>">公司新闻</a></li>
<li><a href="<?php echo getUrl('channel', 5); ?>">行业动态</a></li>
</ul>
</div>
<div class="footer-col">
<h4>联系我们</h4>
<p>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>
<?php echo htmlspecialchars(isset($site['site_phone']) ? $site['site_phone'] : '400-888-8888'); ?>
</p>
<p>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>
<?php echo htmlspecialchars(isset($site['site_email']) ? $site['site_email'] : 'admin@admin.com'); ?>
</p>
<p>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>
<?php echo htmlspecialchars(isset($site['site_address']) ? $site['site_address'] : '地址待填写'); ?>
</p>
</div>
</div>
<div class="footer-bottom">
<p>&copy; <?php echo date('Y'); ?> <?php echo htmlspecialchars(isset($site['site_name']) ? $site['site_name'] : '企业网站'); ?> 版权所有</p>
</div>
</div>
</footer>

<?php if(empty($canRemoveCopyright) || !$canRemoveCopyright): ?>
<div class="copyright">
<p>powered by <a href="http://www.yutoucms.cn">芋头CMS</a></p>
</div>
<?php endif; ?>