/**
* Parse
*/
private function parse()
{
// get categories
$tags = FrontendTagsModel::getAll();
// we just need the 10 first items
$tags = array_slice($tags, 0, 10);
// build link
$link = FrontendNavigation::getURLForBlock('Tags', 'Detail');
// any tags?
if (!empty($tags)) {
// loop and reset url
foreach ($tags as &$row) {
$row['url'] = $link . '/' . $row['url'];
}
}
// assign comments
$this->tpl->assign('widgetTagsTagCloud', $tags);
}