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
|
@@ 56-61 (lines=6) @@
|
53 |
|
$this->content=$title; |
54 |
|
} |
55 |
|
$this->content->setClass("content"); |
56 |
|
if(isset($subHeader)){ |
57 |
|
$sub=new HtmlDoubleElement("subheader-".$this->identifier,"div"); |
58 |
|
$sub->setClass("sub header"); |
59 |
|
$sub->setContent($subHeader); |
60 |
|
$this->content->addContent($sub); |
61 |
|
} |
62 |
|
return $this; |
63 |
|
} |
64 |
|
|