getValue("path").$this->getValue("article_id")."|");
// GET CURRENTS
$path1 = (isset ($PATH[1])) ? $PATH[1] : '';
$path2 = (isset ($PATH[2])) ? $PATH[2] : '';
$path3 = (isset ($PATH[3])) ? $PATH[3] : '';
$sitePath = '';
$titlePath = '';
$navLeft = '';
if($path1 != 31) $path1 = 31;
/* START 1st level categories */
//$navTop .= '
';
foreach (OOCategory::getRootCategories() as $lev1) {
if ($lev1->isOnline()):
// 1st level had categories? -> go on
$lev1Size = sizeof($lev1->getChildren());
if ($lev1->getId() == $path1) {
if ($lev1Size != "0"):
$navLeft .= '
';
// START 2nd level categories
foreach ($lev1->getChildren() as $lev2):
if ($lev2->isOnline()){
// 2nd level - active link
if ($lev2->getId() == $path2) {
$lev2_current = ' class="current"';
$titlePath .= ' >> '.$lev2->getName();
} else {
$lev2_current = '';
}
$navLeft .= '- '.$lev2->getName().'
';
$sitePath .= ' ›› '.$lev2->getName().'';
// ANFANG EBENE 3
$lev2Size = sizeof($lev2->getChildren());
if($lev2Size != "0"){
$navLeft .= '';
foreach ($lev2->getChildren() as $lev3){
if ($lev3->isOnline()){
if ($lev3->getId() == $path3) {
$navLeft .= '- '.$lev3->getName().'
';
$sitePath .= ' ›› '.$lev3->getName().'';
$titlePath .= ' >> '.$lev3->getName();
}
// 3nd level - no active link
else {
$navLeft .= '- '.$lev3->getName().'
';
}
}
}
$navLeft .= '
';
}
// ENDE EBENE 3
$cat = OOCategory::getCategoryById($lev2->getId()); // hier die ID der Kategorie
$articles = $cat->getArticles( true); // Alle Artikel der Kategorie auslesen, die Online sind
if ( is_array( $articles) && count( $articles) > 0) {
$navLeft .= '';
foreach ( $articles as $article) {
$active = '';
// Den aktuellen Artikel nicht verlinken
if ( $article->getId() == REX_ARTICLE_ID) continue;
// Startartikel ausblenden
if ( $article->isStartPage()) continue;
if($this->getValue('article_id') == $article->getId()) $active = 'class="active"';
$navLeft .= '- '.$article->getName().'
';
}
$navLeft .= '
';
}
}
endforeach;
// END 2nd level categories
$navLeft .= '
';
endif; // END by if ($lev1Size != "0"):
}
endif; // END by if ($lev1->isOnline())
}
//$navTop .= '
';
// END 1st level categories
if ($REX['CUR_CLANG'] == 1) $breadcrumb = 'You are here: Startpage '.$sitePath;
else $breadcrumb = 'Sie befinden sich hier: Startseite '.$sitePath;
?>