- 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
68 lines
2.5 KiB
PHP
68 lines
2.5 KiB
PHP
<div class="wrap">
|
|
|
|
<nav class="breadcrumbs" aria-label="Breadcrumb">
|
|
<ol>
|
|
<li><a href="/">Home</a></li>
|
|
<li aria-current="page"><?= esc($category['name']) ?></li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<header class="tool-head">
|
|
<h1><?= esc($category['name']) ?></h1>
|
|
<p class="hint" style="font-size:.98rem;max-width:72ch"><?= esc($category['description']) ?></p>
|
|
</header>
|
|
|
|
<?php if (! empty($featured)): ?>
|
|
<section class="block tight" style="padding-top:.6rem">
|
|
<h2 class="section-title">Featured tools</h2>
|
|
<div class="grid cols-4">
|
|
<?php foreach ($featured as $tool): ?>
|
|
<?= view('partials/tool_card', ['tool' => $tool]) ?>
|
|
<?php endforeach ?>
|
|
</div>
|
|
</section>
|
|
<?php endif ?>
|
|
|
|
<section class="block tight">
|
|
<h2 class="section-title">All <?= mb_strtolower((string) $category['name']) ?> (<?= count($tools) ?>)</h2>
|
|
<div class="grid cols-4">
|
|
<?php foreach ($tools as $tool): ?>
|
|
<?= view('partials/tool_card', ['tool' => $tool]) ?>
|
|
<?php endforeach ?>
|
|
</div>
|
|
</section>
|
|
|
|
<?php if (! empty($guides)): ?>
|
|
<section class="block tight">
|
|
<h2 class="section-title">Related guides</h2>
|
|
<div class="grid cols-3">
|
|
<?php foreach ($guides as $guide): ?>
|
|
<a class="card" href="/blog/<?= esc($guide['slug']) ?>">
|
|
<span class="badge">Guide · <?= (int) $guide['reading_minutes'] ?> min</span>
|
|
<h3 style="margin-top:.5rem"><?= esc($guide['title']) ?></h3>
|
|
<p><?= esc(mb_substr((string) $guide['excerpt'], 0, 120)) ?>…</p>
|
|
</a>
|
|
<?php endforeach ?>
|
|
</div>
|
|
</section>
|
|
<?php endif ?>
|
|
|
|
<?= view('partials/faq', ['faqs' => [
|
|
['q' => 'Are the ' . mb_strtolower($category['name'] ?? 'tools') . ' free to use?', 'a' => 'Yes, every tool in this category is free with no signup required.'],
|
|
['q' => 'Do I need to install anything?', 'a' => 'No. Everything runs in your browser or on our processing servers.'],
|
|
['q' => 'How long are my files kept?', 'a' => 'Uploaded and generated files are stored temporarily only, then deleted automatically.'],
|
|
]]) ?>
|
|
|
|
<section class="block tight">
|
|
<h2 class="section-title">Other categories</h2>
|
|
<div class="chips">
|
|
<?php foreach (service('finder')->categories() as $c): ?>
|
|
<?php if ($c['slug'] !== $category['slug']): ?>
|
|
<a class="chip" href="/<?= esc($c['slug']) ?>"><?= esc($c['name']) ?></a>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|