Ajax/semantic/html/collections/menus/HtmlMenu.php 1 location
|
@@ 85-89 (lines=5) @@
|
| 82 |
|
public function generateMenuAsItem($menu,$header=null){ |
| 83 |
|
$count=$this->count(); |
| 84 |
|
$item=new HtmlSemDoubleElement("item-".$this->identifier."-".$count,"div"); |
| 85 |
|
if(isset($header)){ |
| 86 |
|
$headerItem=new HtmlSemDoubleElement("item-header-".$this->identifier."-".$count,"div","header"); |
| 87 |
|
$headerItem->setContent($header); |
| 88 |
|
$item->addContent($headerItem); |
| 89 |
|
} |
| 90 |
|
$menu->setClass("menu"); |
| 91 |
|
$item->addContent($menu); |
| 92 |
|
return $item; |
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 |
|
|