<?php foreach (URL::navbar() as $type => $details) : ?> <?php if ($x = Menu::items($type)) : ?> <ul class="nav pull-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="<?php echo $details['icon']; ?>"></i> <?php echo $details['name']; ?> <b class="caret"></b></a> <?php echo Menu::ul($x,$type == 'user' ? array('logout'=>'Logout') : NULL); ?> </li> </ul> <?php endif ?> <?php endforeach ?>