add a raw item

@param string $title  title of item
@param string $uri    uri of item
@param mixed  $liAttr attributes for li element

@return Breadcrumb

@access public
166301
public function rawItem($title, $uri = '#', $liAttr = [])
    {
        $this->stack[] = [$title, ['href' => $uri], $liAttr];
        return $this;
    }
136564
public function url($url, $title, $order = 0, $attributes = array())
    {
        if (func_num_args() == 3) {
            $arguments = func_get_args();

            return $this->add([
                'url' => array_get($arguments, 0),
                'title' => array_get($arguments, 1),
                'attributes' => array_get($arguments, 2)
            ]);
        }

        return $this->add(compact('url', 'title', 'order', 'attributes'));
    }
50230
public function add($title, $item = [])
    {
        $list = self::$data;

        $_item = [
            'id' => $title,
            'parent' => false,
            'url' => '#',
            'title' => $title,
            'icon' => '',
            'area' => $this->area(),
            'active' => false,
            'weight' => 10,
            'children' => []
        ];

        $item = array_merge($_item, $item);

        $url = Router::url($item['url']);
        $actives = $this->config('active');

        if ($url === Router::url("/" . $this->Controller->request->url)) {
            $item['active'] = true;
        }

        $this->area = $item['area'];

        $data = self::$data;
        if (array_key_exists($this->area, $data)) {
            $menu = $data[$this->area];
        } else {
            $menu = [];
        }
        if ($item['parent']) {
            if (array_key_exists($item['parent'], $menu)) {
                $menu[$item['parent']]['children'][$item['id']] = $item;
            }
        } else {
            $menu[$item['id']] = $item;
        }
        $menu = Hash::sort($menu, '{s}.weight', 'asc');
        $data[$this->area] = $menu;
        self::$data = $data;
    }
873733
public static function a($uri, $text = '')
    {
        $text = ($text == '') ? $uri : $text;
        return '<a href="'. U($uri) .'" title="">'. $text .'</a>';
    }
690312
protected static function createMenu($title, $uri, $icon = 'fa-bars', $parentId = 0)
    {
        $menuModel = config('admin.database.menu_model');

        $lastOrder = $menuModel::max('order');

        $menuModel::create([
            'parent_id' => $parentId,
            'order'     => $lastOrder + 1,
            'title'     => $title,
            'icon'      => $icon,
            'uri'       => $uri,
        ]);
    }
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);
    }
870738
public function set_title($title) {
        $xpath = new \DOMXpath($this);
        $general = $xpath->query(CC::lom_general_xpath)->item(0);
        $new_title = $this->add_child_ns(CC::LOMIMSCC_NS, $general, 'title');
        $new_string = $this->add_child_ns(CC::LOMIMSCC_NS, $new_title, 'string', $title, array("language" => "en-US"));
    }
433678
public function push($title, $url = null, array $data = [])
    {
        $this->breadcrumbs->addOne($title, $url, $data);

        return $this;
    }
866165
public function addAttachment($path, $type, $title = '')
    {
        array_push($this->attachments, array(
          'path' => $path,
          'type' => $type,
          'title' => $title,
        ));

        return $this;
    }
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;
    }
421002
public function renderInfo($title, $subtitle, $description = false)
    {
        $output = '<div class="info header">';
        $output .= "<h1>" . Convert::raw2xml($title) . "</h1>";
        if ($subtitle) {
            $output .= "<h3>" . Convert::raw2xml($subtitle) . "</h3>";
        }
        if ($description) {
            $output .= "<p>$description</p>";
        } else {
            $output .= $this->Breadcrumbs();
        }
        $output .= '</div>';

        return $output;
    }
72489
public function appendBreadcrumb($label, $uri = null, $title = null, $description = null)
    {
        //append, przebudowa, zwraca siebie
        return $this->createBreadcrumb($label, $uri, $title, $description, false);
    }
416251
public function title(string $title = null): Htmlable
    {
        $page = Paginator::resolveCurrentPage();

        $data = [
            'site' => ['name' => $this->site],
            'page' => ['title' => $title, 'number' => $page],
        ];

        $data['site']['name'] = $this->getHtmlTitleFormatForSite($data);

        $output = $this->getHtmlTitleFormatForPage($data);

        return $this->html->create('title', trim($output));
    }
1371427
public function addPath($title, $url=NULL) {
		
		$path			= new \stdClass();
		$path->title	= $title;
		$path->url		= $url;
		$path->active	= TRUE;

		// just last active path will remains active
		foreach ($this->paths as $p) {
			$p->active = FALSE;
		}
		
		$this->paths[]	= $path;
		
		return $this;
	
	}
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();
    }
923697
public static function create(string $title, string $link, string $description): self
    {
        return new self($title, $link, $description);
    }
939612
public function addItem($label, $url = '', $translateLabel = true)
    {
        $b = new BreadcrumbItem($label, $url, $translateLabel);
        $this->items[] = $b;

        return $this;
    }