Hi eugenn
For this case, please open templatesja_teline_iiilibsmenudropline.class.php file, at about line 19, find following code:
[PHP]
function genMenu($startlevel=0, $endlevel = 10){
if ($startlevel == 0) parent::genMenu(0,0);
else {
$this->setParam(‘startlevel’, $startlevel);
$this->setParam(‘endlevel’, $endlevel);
$this->beginMenu($startlevel, $endlevel);
//Sub level
$pid = $this->getParentId($startlevel – 1);
if (@$this->children[$pid]) {
foreach ($this->children[$pid] as $row) {
if (@$this->children[$row->id]) {
$this->genMenuItems ($row->id, $startlevel);
} else {
echo “<ul id=”jasdl-subnav{$row->id}”><li class=”empty”> </li></ul>”;
}
}
}
$this->endMenu($startlevel, $endlevel);
}
}
[/PHP]
and change to:
[PHP]
function genMenu($startlevel=0, $endlevel = 10){
if ($startlevel ==1) {
return ;
}
if ($startlevel == 0) parent::genMenu(0,0);
else {
$this->setParam(‘startlevel’, $startlevel);
$this->setParam(‘endlevel’, $endlevel);
$this->beginMenu($startlevel, $endlevel);
//Sub level
$pid = $this->getParentId($startlevel – 1);
if (@$this->children[$pid]) {
foreach ($this->children[$pid] as $row) {
if (@$this->children[$row->id]) {
$this->genMenuItems ($row->id, $startlevel);
} else {
echo “<ul id=”jasdl-subnav{$row->id}”><li class=”empty”> </li></ul>”;
}
}
}
$this->endMenu($startlevel, $endlevel);
}
}
[/PHP]