src/Ease/TWB/Navbar.php
public function &addMenuItem($pageItem, $pull = 'left')
    {
        if ($pull == 'left') {
            $menuItem = $this->nav->addItemSmart($pageItem);
        } else {
            $menuItem = $this->navRight->addItemSmart($pageItem);
        }
        if (isset($pageItem->tagProperties['href'])) {
            $href = basename($pageItem->tagProperties['href']);
            if (strstr($href, '?')) {
                list($targetPage) = explode('?', $href);
            } else {
                $targetPage = $href;
            }
            if ($targetPage == basename(\Ease\Page::phpSelf())) {
                if ($pull == 'left') {
                    $this->nav->lastItem()->setTagProperties(['class' => 'active']);
                } else {
                    $this->navRight->lastItem()->setTagProperties(['class' => 'active']);
                }
            }
        }

        return $menuItem;
    }
public function &addMenuItem($pageItem, $pull = 'left')
    {
        if ($pull == 'left') {
            $menuItem = $this->nav->addItemSmart($pageItem);
        } else {
            $menuItem = $this->navRight->addItemSmart($pageItem);
        }
        if (isset($pageItem->tagProperties['href'])) {
            $href = basename($pageItem->tagProperties['href']);
            if (strstr($href, '?')) {
                list($targetPage) = explode('?', $href);
            } else {
                $targetPage = $href;
            }
            if ($targetPage == basename(\Ease\Page::phpSelf())) {
                if ($pull == 'left') {
                    $this->nav->lastItem()->setTagProperties(['class' => 'active']);
                } else {
                    $this->navRight->lastItem()->setTagProperties(['class' => 'active']);
                }
            }
        }

        return $menuItem;
    }
Přidá položku menu.

@param \Ease\Html\ATag $pageItem Položka menu
@param string          $pull     'right' strká položku v menu do prava

@return EaseWebPage