{{foreach $roots as $id => $item}} {{if $preview or $item->canView()}} {{if $item->active()}} {{\IPS\core\FrontNavigation::i()->activePrimaryNavBar = $item->id;}} {{endif}}
  • active()}}class='ipsNavBar_active' data-active{{endif}} id='elNavSecondary_{$item->id}' data-role="navBarItem" data-navApp="{expression="mb_substr( get_class( $item ), 4, mb_strpos( get_class( $item ), '\\', 4 ) - 4 )"}" data-navExt="{expression="mb_substr( get_class( $item ), mb_strrpos( get_class( $item ), '\\' ) + 1 )"}"> {{$children = $item->children();}} {{if $children}} active()}}data-navDefault{{endif}}> {$item->title()}
      {template="navBarChildren" app="core" group="global" location="front" params="$children, $preview"}
    {{else}} active()}}data-navDefault{{endif}}> {$item->title()} {{endif}} {{if $subBars && isset( $subBars[ $id ] ) && count( $subBars[ $id ] )}}
      {template="lagoonNavbarItems" app="core" group="darklagoon" location="front" params="$subBars[ $id ], NULL, $item->id, $preview"}
      {{endif}}
    • {{endif}} {{endforeach}}