CMenu.php function init not show class for li tag

Discuss everything related to ApPHP MVC Framework. All versions. Any questions related to the Framework developing or using should be posted to this forum.

Moderators: alexandrleonenko, alexmst

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

CMenu.php function init not show class for li tag

Postby paragate » Nov 16th, '15, 16:55

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

administrator
Site Admin
Site Admin
Posts: 6001
Joined: Jan 7th, '09, 23:18
Contact:

Re: CMenu.php function init not show class for li tag

Postby administrator » Nov 18th, '15, 07:35

Try this:

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.


Return to “ApPHP MVC Framework {developers/users}”