src/Navbar.php
public function menu(array $links, array $options = array())
    {
        $align = (isset($options['pull'])) ? ' navbar-'.$options['pull'] : '';
        unset($options['pull']);

        return "\n\t".'<ul class="nav navbar-nav'.$align.'">'.$this->links('li', $links, $options).'</ul>';
    }
public function menu(array $links, array $options = array())
    {
        $align = (isset($options['pull'])) ? ' navbar-'.$options['pull'] : '';
        unset($options['pull']);

        return "\n\t".'<ul class="nav navbar-nav'.$align.'">'.$this->links('li', $links, $options).'</ul>';
    }
public function menu ( array $ links , array $ options = array ( ) ) { $ align = ( isset ( $ options [ 'pull' ] ) ) ? ' navbar-' . $ options [ 'pull' ] : '' ; unset ( $ options [ 'pull' ] ) ; return "\n\t" . '<ul class="nav navbar-nav' . $ align . '">' . $ this -> links ( 'li' , $ links , $ options ) . '</ul>' ; }
Create a menu of links across your navbar.

@param array $links   An ``array($name => $href, ...)`` of links. If ``$href`` is an array unto itself, then it will be turned into a dropdown menu with the same header and divider rules applied as with buttons.
@param array $options The options available here are:

- '**active**' => **$name**, **$href**, '**url**', '**urlquery**', or an **integer** (starting from 1).
- '**disabled**' => **$name**, **$href**, or an **integer** (starting from 1).
- '**pull**' => '**left**' (default) or '**right**'.

@return string

@example

```php
echo $bp->navbar->menu(array(
'Home' => '#',
'Work' => '#',
'Dropdown' => array(
'Action' => '#',
'More' => '#',
),
), array(
'active' => 'Home',
));
```
Create a menu of links across your navbar .