Add Font Awesome v4 compatibility WOFF2 file
This commit is contained in:
+46
-14
@@ -209,16 +209,25 @@
|
||||
// 扫描research目录下的HTML文件并提取标题
|
||||
$researchDir = __DIR__ . '/research';
|
||||
$htmlFiles = glob($researchDir . '/*.html');
|
||||
|
||||
if (!empty($htmlFiles)) {
|
||||
foreach ($htmlFiles as $file) {
|
||||
$fileName = basename($file);
|
||||
$filePath = 'research/' . $fileName;
|
||||
|
||||
// 新增:扫描子目录中的index.html文件
|
||||
$subDirs = glob($researchDir . '/*', GLOB_ONLYDIR);
|
||||
foreach ($subDirs as $dir) {
|
||||
$indexFile = $dir . '/index.html';
|
||||
if (file_exists($indexFile)) {
|
||||
$htmlFiles[] = $indexFile;
|
||||
}
|
||||
}
|
||||
|
||||
// 读取文件内容
|
||||
$content = file_get_contents($file);
|
||||
if (!empty($htmlFiles)) {
|
||||
foreach ($htmlFiles as $file) {
|
||||
$fileName = basename($file);
|
||||
$filePath = str_replace(__DIR__ . '/', '', $file);
|
||||
|
||||
// 提取title标签内容
|
||||
// 读取文件内容
|
||||
$content = file_get_contents($file);
|
||||
|
||||
// 提取title标签内容
|
||||
preg_match('/<title>(.*?)<\/title>/i', $content, $matches);
|
||||
$title = !empty($matches[1]) ? $matches[1] : $fileName;
|
||||
|
||||
@@ -229,12 +238,7 @@
|
||||
<span>' . htmlspecialchars($title) . '</span>
|
||||
</a>';
|
||||
}
|
||||
// 输出链接
|
||||
echo '<a href="https://echart.doorcome.cn/research/xwlb25_01_25_10/ " target="_blank"
|
||||
class="flex items-center p-3 border border-gray-200 rounded-lg hover:bg-gray-50 transition-all">
|
||||
<i class="fa-solid fa-file-pdf text-red-500 w-6"></i>
|
||||
<span>新闻联播深度分析报告 2025年1-10月</span>
|
||||
</a>';
|
||||
|
||||
} else {
|
||||
echo '<div class="p-3 border border-gray-200 rounded-lg text-gray-500">
|
||||
<i class="fa-solid fa-info-circle mr-2"></i>暂无研究报告
|
||||
@@ -243,6 +247,34 @@
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="bg-white rounded-xl shadow-md p-6 card-hover">
|
||||
<div class="flex items-center mb-6">
|
||||
<div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
|
||||
<i class="fa-solid fa-file-text text-indigo-600"></i>
|
||||
</div>
|
||||
<h3 class="text-lg font-semibold">PDF报告</h3>
|
||||
</div>
|
||||
|
||||
<div class="mb-4 text-gray-600">
|
||||
<p>以下是最新的市场研究报告,点击可查看详情。</p>
|
||||
</div>
|
||||
|
||||
<div class="space-y-3">
|
||||
|
||||
<a href="/research/ai_industry_report_kimi.pdf" target="_blank"
|
||||
class="flex items-center p-3 border border-gray-200 rounded-lg hover:bg-gray-50 transition-all">
|
||||
<i class="fa-solid fa-file-pdf text-red-500 w-6"></i>
|
||||
<span>中国AI产业链深度研究报告</span>
|
||||
</a>'
|
||||
<a href="/research/ai_supply_chain_companys.pdf" target="_blank"
|
||||
class="flex items-center p-3 border border-gray-200 rounded-lg hover:bg-gray-50 transition-all">
|
||||
<i class="fa-solid fa-file-pdf text-red-500 w-6"></i>
|
||||
<span>AI产业链上市公司护城河深度分析</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user