Ajax/semantic/html/elements/HtmlHeader.php 1 location
|
@@ 59-64 (lines=6) @@
|
| 56 |
|
$this->content=$title; |
| 57 |
|
} |
| 58 |
|
$this->content->setClass("content"); |
| 59 |
|
if (isset($subHeader)) { |
| 60 |
|
$sub=new HtmlDoubleElement("subheader-".$this->identifier, "div"); |
| 61 |
|
$sub->setClass("sub header"); |
| 62 |
|
$sub->setContent($subHeader); |
| 63 |
|
$this->content->addContent($sub); |
| 64 |
|
} |
| 65 |
|
return $this; |
| 66 |
|
} |
| 67 |
|
|
Ajax/semantic/html/collections/menus/HtmlMenu.php 1 location
|
@@ 91-95 (lines=5) @@
|
| 88 |
|
public function generateMenuAsItem($menu, $header=null) { |
| 89 |
|
$count=$this->count(); |
| 90 |
|
$item=new HtmlSemDoubleElement("item-" . $this->identifier . "-" . $count, "div"); |
| 91 |
|
if (isset($header)) { |
| 92 |
|
$headerItem=new HtmlSemDoubleElement("item-header-" . $this->identifier . "-" . $count, "div", "header"); |
| 93 |
|
$headerItem->setContent($header); |
| 94 |
|
$item->addContent($headerItem); |
| 95 |
|
} |
| 96 |
|
$menu->setClass("menu"); |
| 97 |
|
$item->addContent($menu); |
| 98 |
|
return $item; |