public function filterBreadcrumb()
    {
        $nodeList = $this->xp->query('//li[ contains(@class, "open") or contains(@class, "active")]');
        if (0 !== $nodeList->length) {
            $ul = $this->dom->createElement('ul');
            foreach ($nodeList as $node) {
                $li = $this->dom->createElement('li');
                $li->appendChild($node->firstChild);
                $ul->appendChild($li);
            }

            return $ul;
        }
    }
public function filterBreadcrumb()
    {
        $nodeList = $this->xp->query('//li[ contains(@class, "open") or contains(@class, "active")]');
        if (0 !== $nodeList->length) {
            $ul = $this->dom->createElement('ul');
            foreach ($nodeList as $node) {
                $li = $this->dom->createElement('li');
                $li->appendChild($node->firstChild);
                $ul->appendChild($li);
            }

            return $ul;
        }
    }
public function filterBreadcrumb ( ) { $ nodeList = $ this -> xp -> query ( '//li[ contains(@class, "open") or contains(@class, "active")]' ) ; if ( 0 !== $ nodeList -> length ) { $ ul = $ this -> dom -> createElement ( 'ul' ) ; foreach ( $ nodeList as $ node ) { $ li = $ this -> dom -> createElement ( 'li' ) ; $ li -> appendChild ( $ node -> firstChild ) ; $ ul -> appendChild ( $ li ) ; } return $ ul ; } }
Create breadcrumb for current page.

@return DOMNode $nodeList
Create breadcrumb for current page .