function tag_counts() { $counts = []; foreach (glob(__DIR__ . "/data/idee/*/meta.json") as $metaFile) { $meta = json_decode(file_get_contents($metaFile), true); if (!empty($meta["tags"])) { foreach ($meta["tags"] as $t) { $t = trim($t); if ($t !== "") $counts[$t] = ($counts[$t] ?? 0) + 1; } } } return $counts; } Lisa uus idee

Lisa uus idee





← Tagasi