This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnapp/views/theme/bootstrap/navbar.php

11 lines
498 B
PHP
Raw Normal View History

2014-08-22 06:50:01 +00:00
<?php foreach (URL::navbar() as $type => $details) :
if ($x = Menu::items($type)) : ?>
2014-09-08 13:42:05 +00:00
<ul class="nav navbar-nav navbar-right">
2014-08-22 06:50:01 +00:00
<li class="dropdown">
2014-09-08 13:42:05 +00:00
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa <?php echo Arr::get($details,'icon','fa-asterisk'); ?>"></i> <?php echo Arr::get($details,'name','?'); ?> <b class="caret"></b></a>
2014-08-22 06:50:01 +00:00
<?php echo Menu::ul($type,$x,$type == 'user' ? array('logout'=>'Logout') : NULL); ?>
</li>
</ul>
<?php endif;
endforeach ?>