Hello,
can your implement a custom css-class for the menu-types alias/separator/heading.
i have this in default_htm_menu.php implemented:
| Code: |
...
foreach ( $this->source->data as $elm ) {
$separatorClass="";
// Skip menu external links
if($elm->type == 'url' && !$includeExternalLinks) {
continue;
}
$link = $elm->link;
if (isset ( $elm->id )) {
switch (@$elm->type) {
case 'alias' :
$link = $elm->link = 'index.php';
break;
case 'separator' :
case 'heading' :
$link = $elm->link = 'index.php';
$separatorClass='class="text-muted"';
break;
case 'url' :
if (preg_match ( "#^/?index\.php\?#", $link )) {
if (strpos ( $link, 'Itemid=' ) === FALSE) {
if (strpos ( $link, '?' ) === FALSE) {
$link .= '?Itemid=' . $elm->id;
} else {
$link .= '&Itemid=' . $elm->id;
}
}
}
break;
default :
if (strpos ( $link, 'Itemid=' ) === FALSE) {
$link .= '&Itemid=' . $elm->id;
}
break;
}
}
...
$actlevel = $elm->sublevel;
if ($lastlevel == $actlevel) {
echo $liclose;
echo '<li' . $dataHash . $mergeAliasHash . '>' . '<a '.$separatorClass.' target="' . $openTarget . '" href="' . $link . '">' . $elm->title . '</a>';
$liclose = '</li>';
} else {
if ($lastlevel < $actlevel) {
echo "<ul>\n";
echo '<li' . $dataHash . $mergeAliasHash . '>' . '<a '.$separatorClass.' target="' . $openTarget . '" href="' . $link . '">' . $elm->title . '</a>';
$liclose = '</li>';
} else {
$diff = $lastlevel - $actlevel;
for($i = 1; $i <= $diff; $i ++) {
echo "</li></ul>\n";
}
echo $liclose;
echo '<li' . $dataHash . $mergeAliasHash . '>' . '<a '.$separatorClass.' target="' . $openTarget . '" href="' . $link . '">' . $elm->title . '</a>';
$liclose = '</li>';
}
}
...
|
your Boardcode is very bad!

regards,
Sven