src/Common.php
public function tabs(array $links, array $options = array())
    {
        $class = 'nav nav-tabs';
        if (isset($options['align'])) {
            switch ($options['align']) {
                case 'justified':
                    $class .= ' nav-justified';
                    break;
                case 'left':
                case 'right':
                    $class .= ' pull-'.$options['align'];
                    break;
            }
        }

        return $this->page->tag('ul', array('class' => $class), $this->links('li', $links, $options));
    }
public function tabs(array $links, array $options = array())
    {
        $class = 'nav nav-tabs';
        if (isset($options['align'])) {
            switch ($options['align']) {
                case 'justified':
                    $class .= ' nav-justified';
                    break;
                case 'left':
                case 'right':
                    $class .= ' pull-'.$options['align'];
                    break;
            }
        }

        return $this->page->tag('ul', array('class' => $class), $this->links('li', $links, $options));
    }
public function tabs ( array $ links , array $ options = array ( ) ) { $ class = 'nav nav-tabs' ; if ( isset ( $ options [ 'align' ] ) ) { switch ( $ options [ 'align' ] ) { case 'justified' : $ class .= ' nav-justified' ; break ; case 'left' : case 'right' : $ class .= ' pull-' . $ options [ 'align' ] ; break ; } } return $ this -> page -> tag ( 'ul' , array ( 'class' => $ class ) , $ this -> links ( 'li' , $ links , $ options ) ) ; }
Creates a Bootstrap tabs nav menu.

@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 ``$bp->buttons()``.
@param array $options The available options are:

- '**active**' => **$name**, **$href**, '**url**', '**urlquery**', or an **integer** (starting from 1).
- '**disabled**' => **$name**, **$href**, or an **integer** (starting from 1).
- '**align**' =>
- '**justified**' - So the tabs will horizontally extend the full width.
- '**left**' (default) or '**right**' - The direction you would like to pull them towards.

@return string

@example

```php
echo $bp->tabs(array(
'Nav' => '#',
'Tabs' => '#',
'Justified' => '#',
), array(
'align' => 'justified',
'active' => 1,
));
```
Creates a Bootstrap tabs nav menu .