53 lines
1.7 KiB
PHP
53 lines
1.7 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
@date_default_timezone_set('UTC');
|
|
|
|
require_once __DIR__ . '/includes/data.php';
|
|
|
|
$lang = 'en';
|
|
$site = site_config($lang);
|
|
$pageTitle = $site['brand'] . ' | News';
|
|
$pageDescription = 'Production updates, certifications, and delivery highlights.';
|
|
$assetVersion = (string) time();
|
|
$navItems = $site['nav'];
|
|
$langSwitchUrl = '/zh/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">Factory news & updates</h1>
|
|
<p class="text-muted">Stay informed with certifications, delivery milestones, and product releases.</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">Read more in WhatsApp updates.</span>
|
|
</div>
|
|
</article>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="alert alert-light mt-4" role="alert" data-auto-dismiss="true">
|
|
Need a project update? Reach our team via WhatsApp for live production status.
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<?php require __DIR__ . '/includes/footer.php'; ?>
|