feat(news_reports): 事件支持多新闻源 sources + 页面底部访问计数器
- /api/news/events/ 事件行: sources 字段非空时显示多个新闻源, 为空回退 source 单源 (兼容数组/对象/JSON 字符串) - footer 参考 index-2.php 深色样式, 增加 page_counter 访问计数 - 文档: AGENTS.md/CLAUDE.md 更新表数量 16->18 张, 补充 news_report/news_event 说明
This commit is contained in:
+15
-3
@@ -1,3 +1,4 @@
|
||||
<?php include_once __DIR__ . "/../inc/functions.inc.php"; ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
@@ -222,10 +223,21 @@
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="text-center text-gray-400 text-sm py-6">
|
||||
数据来源: api.doorcome.cn 日报接口 · 仅供个人研究参考
|
||||
<footer class="bg-dark text-white mt-16">
|
||||
<div class="container mx-auto px-4 py-8">
|
||||
<div class="text-center text-gray-400 text-sm">数据来源: api.doorcome.cn 日报接口 · 仅供个人研究参考</div>
|
||||
<div class="border-t border-gray-800 mt-6 pt-6 text-center text-gray-500 text-sm">
|
||||
<div>Powered by Simon Young <span style="font-family: Arial; font-size: x-small;"> © </span>2019-<?=date('Y')?>
|
||||
All Right Reserved <a href="mailto:simon.youngest@gmail.com" title='simon.youngest@gmail.com'>E-mail</a>.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://beian.miit.gov.cn" target="_blank">浙ICP备18056264号-1</a>
|
||||
<span class="ml-3"><?php page_counter(); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="/js/newsReports.js?v=20260806"></script>
|
||||
<script src="/js/newsReports.js?v=20260812"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user