Hi
can anybody tell why its not possible to show the rigt class for li tag?
is it an error on CMenu.php line 107
$itemClass = (!strcasecmp($selected, $url)) ? $activeItemClass : ' ';
i corrected to
$itemClass = (!strcasecmp($selected, $url)) ? $activeItemClass : $activeItemClass;
or is there another workaround
regards henrik
CMenu.php function init not show class for li tag
Moderators: alexandrleonenko, alexmst
-
- Site Admin
- Posts: 6170
- Joined: Jan 7th, '09, 23:18
- Contact:
Re: CMenu.php function init not show class for li tag
Try this:
We're planning to release new version soon with many changes.
Code: Select all
$itemClass = isset($val['class']) ? $val['class'] : '';
$itemClass .= (!strcasecmp($selected, $url)) ? ($itemClass ? ' ' : '').$activeItemClass : '';
We're planning to release new version soon with many changes.