/** * Print category urls * * @param int $parentId */ public function readCategoryUrls($parentId) { $categories = $this->repository->getActiveChildrenList($parentId); foreach ($categories as $category) { if (!empty($category['external'])) { continue; } //use a different link if it is a blog category if (!empty($category['blog'])) { $category['link'] = $this->Front()->Router()->assemble(array('sViewport' => 'blog', 'sCategory' => $category['id'], 'title' => $category['name'])); } else { $category['link'] = $this->Front()->Router()->assemble(array('sViewport' => 'cat', 'sCategory' => $category['id'], 'title' => $category['name'])); } $this->printCategoryUrl(array('changed' => $category['changed'], 'link' => $category['link'])); } }