Files
toolvana/app/Views/search.php
T
deepseek beaf0e1f37 Toolvana: production-ready media tools platform (CodeIgniter 4)
- 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
2026-08-23 07:10:30 +00:00

40 lines
1.5 KiB
PHP

<div class="wrap">
<header class="tool-head">
<h1>Search tools</h1>
<?php if ($query !== ''): ?>
<p class="hint">Results for “<strong><?= esc($query) ?></strong>” — <?= count($results) ?> match<?= count($results) === 1 ? '' : 'es' ?>.</p>
<?php endif ?>
</header>
<form class="hero-search" action="/search" method="get" role="search" style="max-width:640px;margin:0 0 1.5rem;box-shadow:var(--shadow-sm);border:1px solid #eee">
<input type="search" name="q" value="<?= esc($query) ?>" placeholder="Search a tool…" aria-label="Search tools">
<button type="submit">Search</button>
</form>
<?php if ($results !== []): ?>
<div class="grid cols-3">
<?php foreach ($results as $tool): ?>
<?= view('partials/tool_card', ['tool' => $tool]) ?>
<?php endforeach ?>
</div>
<?php elseif ($query !== ''): ?>
<p>No tool matched. Try “youtube”, “compress”, or one of these:</p>
<?php endif ?>
<section class="block tight">
<h2 class="section-title">Popular right now</h2>
<div class="grid cols-3">
<?php foreach ($popular as $tool): ?>
<?= view('partials/tool_card', ['tool' => $tool]) ?>
<?php endforeach ?>
</div>
</section>
<section class="block tight">
<h2 class="section-title">Categories</h2>
<div class="chips">
<?php foreach ($categories as $c): ?><a class="chip" href="/<?= esc($c['slug']) ?>"><?= esc($c['name']) ?></a><?php endforeach ?>
</div>
</section>
</div>