Support Forums

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Megamenu and split menu problem

Featured Lock Resolved
I have problem with megamenu, custom class from helix2 framework only appear with megamenu items. I want to get custom class with splitmenu also, but helix2 only show custom class with megamenu.

This function responsible for get and put custom class for each menu item with megamenu only!

function genClass ($mitem, $level, $pos) {
$iParams = new JObject(json_decode($mitem->params));
$active = in_array($mitem->id, $this->open);
$cls = '';
$cls .= "menu-item h_navigation_item" .($active?" active":"").($pos?" $pos":"");

if ($this->_menu=='mega') {
if (@$this->children[$mitem->id] || ($mitem->megaparams->get('subcontent')=='modules') || ($mitem->megaparams->get('subcontent')=='positions') ) {
if ($mitem->megaparams->get('group')) $cls .= " sp-menu-group";
elseif ($level < $this->helix->Param('endlevel')) $cls .= " parent ";
}

if ($mitem->megaparams->get('class')) $cls .= " ".$mitem->megaparams->get('class');

} else {
if (@$this->children[$mitem->id] && $level < ($this->getParam ('endlevel'))+1) $cls .= " parent";
}
return $cls?"class=\"$cls\"":"";
}


when I change

if ($this->_menu=='mega')

with

if ($this->_menu=='split')

the page gone blank and not working.

how to fix this problem? thanks

5 Answers

Please login to view replies.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 131
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 112
Toufiq

Toufiq

Total Accepted Answers: 55
Pavel

Pavel

Total Accepted Answers: 3
JD

Josh Douglas

Total Accepted Answers: 3

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us