include_once $_SERVER['DOCUMENT_ROOT'] . "/lib/lib.php"; $requestPath = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $categorySlug = basename(rtrim($requestPath, '/')); include_once $_SERVER['DOCUMENT_ROOT'] . "/inc/guides/guide-map.php"; $categoryName = "Guides"; $guides = []; if (isset($guideMap) && is_array($guideMap)) { foreach ($guideMap as $slug => $guide) { if (!empty($guide['published']) && $guide['published'] === false) { continue; } if (($guide['category'] ?? '') === $categorySlug) { $categoryName = $guide['category_name'] ?? ucfirst($categorySlug) . " Guides"; $guides[] = [ 'name' => $guide['name'] ?? '', 'url' => $guide['url'] ?? '', 'description' => $guide['description'] ?? '', 'published_at' => $guide['published_at'] ?? '2000-01-01' ]; } } } usort($guides, function ($a, $b) { return strcmp($b['published_at'], $a['published_at']); }); $pageTitle = $categoryName; $pageDescription = "Browse practical development guides for JSON, Base64, UUID, and other everyday developer tasks."; $seoCanonical = "https://toolsmeet.com/guides/" . $categorySlug . "/"; include_once $_SERVER['DOCUMENT_ROOT'] . "/inc/header.html"; ?>
include_once $_SERVER['DOCUMENT_ROOT'] . "/inc/nav.html"; ?>