Skip to content

Commit

Permalink
megamenu class in 2nd level menu
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 10, 2022
1 parent 8a2b993 commit b40d0a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ private function recursiveGeneratePositions($menuResult, $menuId, $menuItem)
if ($childMenuItem['isInNewTab']) {
$this->menu->getChild($menuItem['title'])->getChild($childMenuItem['title'])->setLinkAttribute('target', '_blank');
}
if($childMenuItem['isMegaMenu']){
$this->menu->getChild($menuItem['title'])->getChild($childMenuItem['title'])->setAttribute('class', 'megamenu');
}

if (isset($menuResult[$childId]) && count($menuResult[$childId]) > 0) {
foreach ($menuResult[$childId] as $lvlTwoId => $lvlTwoItem) {
$this->menu[$menuItem['title']][$childMenuItem['title']]->addChild(
Expand Down

0 comments on commit b40d0a8

Please sign in to comment.