- 134-tool registry with programmatic SEO (unique titles/H1/descriptions, JSON-LD graphs, sitemap index, canonical 301 enforcement via required filter) - DB-backed job queue (SKIP LOCKED) with drivers: Ffmpeg, Images (GD), Pdf (qpdf/gs/poppler), Youtube (thumbnails), Qr (server-side PNG) - Security: SSRF guard, MIME validation, rate limits, API-key auth, bcrypt admin login, security headers - Admin panel: dashboard, tools/categories/guides CRUD, SEO audit, analytics, job inspector with retry, system health, feature flags - Docker deployment (nginx + web/api FPM pools + scalable workers), PHPUnit suite (19 tests / 1139 assertions), PWA manifest + service worker
19 lines
488 B
PHP
19 lines
488 B
PHP
<?php
|
|
/**
|
|
* FAQ accordion — native <details>, zero JS.
|
|
* Expected vars: $faqs list of ['q'=>,'a'=>]
|
|
*/
|
|
if (empty($faqs)) {
|
|
return;
|
|
}
|
|
?>
|
|
<section class="block tight faq" aria-labelledby="faq-title">
|
|
<h2 class="section-title" id="faq-title">Frequently asked questions</h2>
|
|
<?php foreach ($faqs as $faq): ?>
|
|
<details>
|
|
<summary><?= esc($faq['q']) ?></summary>
|
|
<div class="answer"><p><?= esc($faq['a']) ?></p></div>
|
|
</details>
|
|
<?php endforeach ?>
|
|
</section>
|