Sitemap
// START Root Categories //
$cat = OOCategory::getCategoryById($this->getValue(category_id));
$cats = $cat->getRootCategories();
$rootcatSize = sizeof($cat->getRootCategories());
if ($rootcatSize != "0"){
print '';
if (is_array($cats)) {
foreach ($cats as $cat) {
$catId = $cat->getId();
$catName = $cat->getName();
if ($cat->isOnline(true)){
print ''.$catName.' ';
}
// START Unterkategorien aufzählen
$cats = $cat->getChildren();
$catSize = sizeof($cat->getChildren());
if ($catSize != "0"){
print '
- ';
if (is_array($cats)) {
foreach ($cats as $cat) {
$catId = $cat->getId();
$catName = $cat->getName();
if ($cat->isOnline(true)){
print '
- '.$catName.' '; } // START Unterartikel aufzählen /* $article = $cat->getArticles(); print '
- '.$articleName.' '; }} print '
- ';
if (is_array($article)) {
foreach ($article as $var) {
$articleId = $var->getId();
$articleName = $var->getName();
if ($var->isOnline(true)){
print '