public static function nav($type, $items, $htmlOptions = array())
    {
        self::addCssClass('nav', $htmlOptions);
        if (!empty($type)) {
            self::addCssClass('nav-' . $type, $htmlOptions);
        }
        $stacked = TbArray::popValue('stacked', $htmlOptions, false);
        if ($type !== self::NAV_TYPE_LIST && $stacked) {
            self::addCssClass('nav-stacked', $htmlOptions);
        }
        return self::menu($items, $htmlOptions);
    }
public static function nav($type, $items, $htmlOptions = array())
    {
        self::addCssClass('nav', $htmlOptions);
        if (!empty($type)) {
            self::addCssClass('nav-' . $type, $htmlOptions);
        }
        $stacked = TbArray::popValue('stacked', $htmlOptions, false);
        if ($type !== self::NAV_TYPE_LIST && $stacked) {
            self::addCssClass('nav-stacked', $htmlOptions);
        }
        return self::menu($items, $htmlOptions);
    }
public static function nav ( $ type , $ items , $ htmlOptions = array ( ) ) { self :: addCssClass ( 'nav' , $ htmlOptions ) ; if ( ! empty ( $ type ) ) { self :: addCssClass ( 'nav-' . $ type , $ htmlOptions ) ; } $ stacked = TbArray :: popValue ( 'stacked' , $ htmlOptions , false ) ; if ( $ type !== self :: NAV_TYPE_LIST && $ stacked ) { self :: addCssClass ( 'nav-stacked' , $ htmlOptions ) ; } return self :: menu ( $ items , $ htmlOptions ) ; }
Generates a navigation menu.
@param string $type the menu type.
@param array $items the menu items.
@param array $htmlOptions additional HTML attributes.
@return string the generated menu.
Generates a navigation menu .