Modyfikuje ostatni breadcrumb
@param string $label etykieta
@param string $uri URL
@param string $title tytuł
@param string $description opis
@return \Mmi\Mvc\ViewHelper\Navigation
199290
public function modifyLastBreadcrumb($label, $uri = null, $title = null, $description = null)
    {
        //modyfikacja + przebudowa
        return $this->modifyBreadcrumb(count($this->_breadcrumbsData) - 1, $label, $uri, $title, $description);
    }
704690
protected static function tooltipPopover($label, $url, $title, $htmlOptions)
    {
        $htmlOptions['title'] = $title;
        if (TbArray::popValue('animation', $htmlOptions)) {
            $htmlOptions['data-animation'] = 'true';
        }
        if (TbArray::popValue('html', $htmlOptions)) {
            $htmlOptions['data-html'] = 'true';
        }
        $selector = TbArray::popValue('selector', $htmlOptions);
        if (!empty($selector)) {
            $htmlOptions['data-selector'] = $selector;
        }
        $placement = TbArray::popValue('placement', $htmlOptions);
        if (!empty($placement)) {
            $htmlOptions['data-placement'] = $placement;
        }
        $trigger = TbArray::popValue('trigger', $htmlOptions);
        if (!empty($trigger)) {
            $htmlOptions['data-trigger'] = $trigger;
        }
        if (($delay = TbArray::popValue('delay', $htmlOptions)) !== null) {
            $htmlOptions['data-delay'] = $delay;
        }
        return self::link($label, $url, $htmlOptions);
    }
117252
public function navigation()
    {
        //brak wygenerowanych breadcrumbów
        if (null === $this->_breadcrumbs) {
            return $this->_buildBreadcrumbs();
        }
        //ustawienia domyślne
        return $this->setMaxDepth()
                ->setMinDepth()
                ->setActiveBranchOnly(false)
                ->setAllowedOnly(true);
    }
1210338
public function addElement($title, $description, $image = '')
    {
        $element = new Element($title, $description, $image);
        $this->add($element);

        return $element;
    }
141572
public function staticMapLink($title, array $mapOptions = [], array $linkOptions = []) {
		return $this->Html->link($title, $this->staticMapUrl($mapOptions + ['escape' => false]), $linkOptions);
	}
921549
public static function anchor($uri, $title = null, array $attributes = null)
    {
        if ($title === null)
        {
            $title = $uri;
        }

        $attributes['href'] = $uri;

        return (new A($attributes, $title))->render();
    }
467507
public function hyperlink($label, $url, $options=array())
    {
        if (is_null($label) || $label === false) $label = $url;

        $options    = $this->getOptions($options);
        $attributes = $this->filterValidAttributes($options);

        return '<a href="'.$url.'"'.$this->Html->attributes($attributes).'>'.$this->Html->entities($label).'</a>';
    }
696699
public function hyperlink($label, $url, $options=array())
    {
        $defaults = array(
            'class' => 'btn btn-info'
        );
        $options = array_merge($defaults, $options);
        return parent::hyperlink($label, $url, $options);
    }
300477
public static function appendLabel($uri, $label)
    {
        $host = new Host(self::filterUri($uri)->getHost());
        if ($host->isDomain()) {
            return $uri->withHost((string) (new Domain($host))->append($label));
        }

        if ($host->isIpv4()) {
            $label = ltrim((string) new Host($label), '.');

            return $uri->withHost((string) $host->withContent($host->getContent().'.'.$label));
        }

        throw new SyntaxError(sprintf('The URI host %s can not be appended', (string) $host));
    }
1080663
public function addItem(string $id, string $label, string $uri = null, string $icon = null, array $attributes = []): Menu
    {
        $attributes = Arr::except($attributes, ['label', 'uri']);

        $this->dispatcher->dispatch(new ItemAdding($id, $this->generateMenuItem($this->menuItem)));

        if ($icon && Str::startsWith($icon, 'zmdi-')) {
            $icon = 'zmdi ' . $icon;
        }
        if ($icon && !app('antares.request')->shouldMakeApiResponse()) {
            $label = sprintf('<i class="%s"></i> %s', $icon, $label);
        }

        $item = $this->menuItem->addChild($id, array_merge($attributes, [
            'label' => $label,
            'uri'   => $uri,
            'icon'  => $icon,
        ]));
        $item->setAttributes(array_merge($attributes, ['icon' => $icon]));

        $item->setExtra('safe_label', true);

        $this->dispatcher->dispatch(new ItemAdded($id, $this->generateMenuItem($this->menuItem)));

        return $this;
    }
60841
public static function breadcrumbs($links, $htmlOptions = array())
    {
        $divider = TbArray::popValue('divider', $htmlOptions, '/');
        self::addCssClass('breadcrumb', $htmlOptions);
        $output = self::openTag('ul', $htmlOptions);
        foreach ($links as $label => $url) {
            if (is_string($label)) {
                $output .= self::openTag('li');
                $output .= self::link($label, $url);
                $output .= self::tag('span', array('class' => 'divider'), $divider);
                $output .= '</li>';
            } else {
                $output .= self::tag('li', array('class' => 'active'), $url);
            }
        }
        $output .= '</ul>';
        return $output;
    }
302381
public function addLink($uri, $relation = null)
    {
        /** @var Link $link */
        $link = $this->addChild('atom:link', 'links');
        $link->setUri($uri);
        if ($relation) {
            $link->setRelation($relation);
        }

        return $link;
    }
252390
public function url(string $url, string $title, int $order = null, string $icon = null, array $attributes = []): MenuItem
    {
        ! $this->urlPrefix || $url = $this->formatUrl($url);

        return $this->add(compact('url', 'title', 'order', 'icon', 'attributes'));
    }
816666
public function prependItem($label, $url = '', $translateLabel = true)
    {
        $b = new BreadcrumbItem($label, $url, $translateLabel);
        array_unshift($this->items, $b);

        return $this;
    }
459864
protected function appendBreadcrumb($name, $label, $route = null, array $parameters = [])
    {
        $this->container->get('ekyna_admin.menu.builder')->breadcrumbAppend($name, $label, $route, $parameters);
    }
478923
public function safe_anchor($uri = '', $title = '', $attributes = [])
    {
        $uri   = html_escape($uri);
        $title = html_escape($title);

        $new_attr = [];
        foreach ($attributes as $key => $val) {
            $new_attr[html_escape($key)] = html_escape($val);
        }

        return anchor($uri, $title, $new_attr);
    }
749134
public function add($uri, $title, $descr = false)
    {
        $this->_breadcrumbs[] = [
            'uri'   => $uri,
            'title' => $title,
            'descr' => $descr,
        ];
    }