Skip to content

Commit 4c862fd

Browse files
committed
semantic bread absolutePaths
1 parent 3a9bcff commit 4c862fd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Ajax/semantic/html/collections/HtmlBreadcrumb.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class HtmlBreadcrumb extends HtmlSemNavElement {
3131
*
3232
* @var boolean if set to true, the path of the elements is absolute
3333
*/
34-
protected $absolutePaths=true;
34+
protected $absolutePaths=false;
3535

3636
/**
3737
*
@@ -212,4 +212,13 @@ public function asLinks() {
212212
public function asTexts() {
213213
$this->contentAs("div");
214214
}
215+
216+
public function setAbsolutePaths($absolutePaths) {
217+
$this->absolutePaths=$absolutePaths;
218+
for($i=0;$i<\sizeof($this->content);$i++){
219+
$this->content[$i]->setProperty($this->attr, $this->getHref($i));
220+
}
221+
return $this;
222+
}
223+
215224
}

0 commit comments

Comments
 (0)