<ul class="filters">
    <?php 
foreach ($this->filters as $key => $filter) {
    list($_, $title, $colour, $visible) = $filter;
    if ($visible) {
        if (\tpp\config('hide_tips') === true) {
            $title = '';
        }
        echo '<li><span id="' . $key . '" class="bk-' . $colour . '" ' . 'title="' . $title . '">' . \tpp\no_underscores($key) . '</span></li>';
    }
}
?>
</ul>
<ul id="tags">
    <?php 
if (!empty($this->tags)) {
    foreach ($this->tags as $tag => $freq) {
        echo '<li><span class="tag" title="' . \tpp\lang('tag_click_tip') . '">' . \tpp\no_underscores($tag) . '</span><span class="freq">' . $freq . '</span></li>';
    }
} else {
    echo '<span class="just-info">' . \tpp\lang('no_tags') . '</span>';
}
?>
</ul>