modules/tag/widgets/Tags.php
private function getTags()
    {
        $allTags = $this->getAllTags()->all();
        $tags = '';

        $total=0;
        foreach ($allTags as $tag) {
            $total += $tag->frequency;
        }

        foreach($allTags as $tag) {
            $weight = 8 + (int)(16*$tag->frequency/($total+10));
            $this->options['style'] = "font-size:{$weight}pt";

            if (isset($_GET[$this->get_real_class($this->model)]['tags']) && $_GET[$this->get_real_class($this->model)]['tags'] === $tag->name) {
                $this->options['class'] = 'tag active';
            } else {
                $this->options['class'] = 'tag';
            }
            $tags .= Html::tag('li', Html::a($tag->name, ['/blog/index', $this->get_real_class($this->model) . '[tags]' => $tag->name]), $this->options);
        }

        $tags .= Html::tag('li', '', ['class' => 'clearfix']);

        return $tags;
    }
private function getTags()
    {
        $allTags = $this->getAllTags()->all();
        $tags = '';

        $total=0;
        foreach ($allTags as $tag) {
            $total += $tag->frequency;
        }

        foreach($allTags as $tag) {
            $weight = 8 + (int)(16*$tag->frequency/($total+10));
            $this->options['style'] = "font-size:{$weight}pt";

            if (isset($_GET[$this->get_real_class($this->model)]['tags']) && $_GET[$this->get_real_class($this->model)]['tags'] === $tag->name) {
                $this->options['class'] = 'tag active';
            } else {
                $this->options['class'] = 'tag';
            }
            $tags .= Html::tag('li', Html::a($tag->name, ['/blog/index', $this->get_real_class($this->model) . '[tags]' => $tag->name]), $this->options);
        }

        $tags .= Html::tag('li', '', ['class' => 'clearfix']);

        return $tags;
    }
Returns list of tags from model
@return string