39036-vm/zh/news.php
2026-03-09 02:49:40 +00:00

53 lines
1.7 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
declare(strict_types=1);
@date_default_timezone_set('UTC');
require_once __DIR__ . '/../includes/data.php';
$lang = 'zh';
$site = site_config($lang);
$pageTitle = $site['brand'] . ' | 新闻动态';
$pageDescription = '生产进展、认证更新与交付动态。';
$assetVersion = (string) time();
$navItems = $site['nav'];
$langSwitchUrl = '/news.php';
$newsItems = get_news($lang);
?>
<?php require __DIR__ . '/../includes/header.php'; ?>
<main>
<section class="page-hero">
<div class="container">
<div class="hero-panel">
<h1 class="display-6 fw-semibold">工厂新闻与项目动态</h1>
<p class="text-muted">了解认证进度、交付里程碑与新品发布。</p>
</div>
</div>
</section>
<section class="section-block pt-0">
<div class="container">
<div class="row g-4">
<?php foreach ($newsItems as $item): ?>
<div class="col-lg-4">
<article class="card h-100">
<div class="card-body">
<div class="text-uppercase small text-muted"><?= htmlspecialchars($item['date']) ?></div>
<h2 class="h5 mt-2"><?= htmlspecialchars($item['title']) ?></h2>
<p class="text-muted small"><?= htmlspecialchars($item['summary']) ?></p>
<span class="text-muted small">如需详情请联系WhatsApp。</span>
</div>
</article>
</div>
<?php endforeach; ?>
</div>
<div class="alert alert-light mt-4" role="alert" data-auto-dismiss="true">
想了解项目进度欢迎通过WhatsApp获取实时信息。
</div>
</div>
</section>
</main>
<?php require __DIR__ . '/../includes/footer.php'; ?>