Core/Html/Bootstrap/Navbar/Navbar.php
private function buildMenuItems(array $items)
    {
        $html = '';

        foreach ($items as $item) {

            if ($this->multilevel && $item->hasChilds()) {
                $html .= '
				<li class="navbar-parent">
					<a href="' . $item->getUrl() . '">' . $item->getText() . '</a>
					<ul>';

                $html .= $this->buildMenuItems($item->getChilds());

                $html .= '
					</ul>
				</li>';
            } else {

                $url = $item->getUrl();

                if ($url) {
                    $html .= '<li><a href="' . $url . '">' . $item->getText() . '</a></li>';
                } else {
                    $html .= '<li><a href="#" onClick="return false">' . $item->getText() . '</a></li>';
                }
            }
        }

        return $html;
    }
private function buildMenuItems(array $items)
    {
        $html = '';

        foreach ($items as $item) {

            if ($this->multilevel && $item->hasChilds()) {
                $html .= '
				<li class="navbar-parent">
					<a href="' . $item->getUrl() . '">' . $item->getText() . '</a>
					<ul>';

                $html .= $this->buildMenuItems($item->getChilds());

                $html .= '
					</ul>
				</li>';
            } else {

                $url = $item->getUrl();

                if ($url) {
                    $html .= '<li><a href="' . $url . '">' . $item->getText() . '</a></li>';
                } else {
                    $html .= '<li><a href="#" onClick="return false">' . $item->getText() . '</a></li>';
                }
            }
        }

        return $html;
    }
private function buildMenuItems ( array $ items ) { $ html = '' ; foreach ( $ items as $ item ) { if ( $ this -> multilevel && $ item -> hasChilds ( ) ) { $ html .= '
				<li class="navbar-parent">
					<a href="' . $ item -> getUrl ( ) . '">' . $ item -> getText ( ) . '</a>
					<ul>' ; $ html .= $ this -> buildMenuItems ( $ item -> getChilds ( ) ) ; $ html .= '
					</ul>
				</li>' ; } else { $ url = $ item -> getUrl ( ) ; if ( $ url ) { $ html .= '<li><a href="' . $ url . '">' . $ item -> getText ( ) . '</a></li>' ; } else { $ html .= '<li><a href="#" onClick="return false">' . $ item -> getText ( ) . '</a></li>' ; } } } return $ html ; }
Builds nav bar elements

@param array $items

@return string
Builds nav bar elements