getAllTagsWithCounts();
// Output the widget
echo '
';
echo '
Tags
';
if (!empty($allTags)) {
echo '
';
foreach ($allTags as $tag) {
$name = $tag['name'];
$count = $tag['total'];
// Link to the posts that have this tag
$url = HOME_DIRECTORY . 'index.php?url=post/tag/' . htmlspecialchars($name);
echo '