latest changes

This commit is contained in:
2025-06-17 08:01:10 -07:00
parent edcad561a5
commit 4c48d7ccbd
50 changed files with 1735 additions and 195 deletions

15
search.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
get_header();
$results = site()->getDefaultPosts(["id", "post_type", "title"]);
$hasResults = count($results) > 0;
echo site()->render("search-results", [
"searchTerm" => $_GET["s"] ?? "",
"hasResults" => $hasResults,
"pages" => array_filter($results, fn ($r) => $r["post_type"] === "page"),
"products" => array_filter($results, fn ($r) => $r["post_type"] === "product"),
]);
get_footer();