60 lines
2.2 KiB
PHP
60 lines
2.2 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'] . ' | Products';
|
|
$pageDescription = 'Browse our industrial lighting categories engineered for global projects.';
|
|
$assetVersion = (string) time();
|
|
$navItems = $site['nav'];
|
|
$langSwitchUrl = '/zh/products.php';
|
|
|
|
$products = get_products($lang);
|
|
?>
|
|
<?php require __DIR__ . '/includes/header.php'; ?>
|
|
|
|
<main>
|
|
<section class="page-hero">
|
|
<div class="container">
|
|
<div class="hero-panel">
|
|
<div class="row align-items-center g-4">
|
|
<div class="col-lg-7">
|
|
<h1 class="display-6 fw-semibold">Industrial product portfolio</h1>
|
|
<p class="text-muted">Choose from high bay, flood, tri-proof, and street lighting lines with clear documentation for procurement teams.</p>
|
|
</div>
|
|
<div class="col-lg-5 text-lg-end">
|
|
<span class="badge badge-soft"><?= count($products) ?> categories</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section-block pt-0">
|
|
<div class="container">
|
|
<div class="row g-4">
|
|
<?php foreach ($products as $product): ?>
|
|
<div class="col-md-6 col-lg-4">
|
|
<article class="card h-100 product-card">
|
|
<div class="card-body">
|
|
<img class="product-icon" src="<?= htmlspecialchars($product['image']) ?>" alt="<?= htmlspecialchars($product['name']) ?>" width="64" height="64" />
|
|
<h2 class="h5"><?= htmlspecialchars($product['name']) ?></h2>
|
|
<p class="text-muted small"><?= htmlspecialchars($product['summary']) ?></p>
|
|
<div class="d-flex gap-2 mt-3">
|
|
<a class="btn btn-sm btn-primary" href="/product.php?id=<?= urlencode((string) $product['id']) ?>">View detail</a>
|
|
<a class="btn btn-sm btn-outline-secondary" href="/contact.php">Request quote</a>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<?php require __DIR__ . '/includes/footer.php'; ?>
|