@@ 74-86 (lines=13) @@ | ||
71 | return $this; |
|
72 | } |
|
73 | ||
74 | public function addImageContent($image,$description=NULL){ |
|
75 | $content=$this->content["content"]; |
|
76 | if(isset($description)){ |
|
77 | $description=new HtmlSemDoubleElement("description-".$this->identifier,"div","description",$description); |
|
78 | $content->addContent($description,true); |
|
79 | } |
|
80 | if($image!==""){ |
|
81 | $img=new HtmlImage("image-".$this->identifier,$image,"","medium"); |
|
82 | $content->addContent($img,true); |
|
83 | $content->addToProperty("class","image"); |
|
84 | } |
|
85 | return $this; |
|
86 | } |
|
87 | ||
88 | public function addIconContent($icon,$description=NULL){ |
|
89 | $content=$this->content["content"]; |
|
@@ 88-100 (lines=13) @@ | ||
85 | return $this; |
|
86 | } |
|
87 | ||
88 | public function addIconContent($icon,$description=NULL){ |
|
89 | $content=$this->content["content"]; |
|
90 | if(isset($description)){ |
|
91 | $description=new HtmlSemDoubleElement("description-".$this->identifier,"div","description",$description); |
|
92 | $content->addContent($description,true); |
|
93 | } |
|
94 | if($icon!==""){ |
|
95 | $img=new HtmlIcon("image-".$this->identifier,$icon); |
|
96 | $content->addContent($img,true); |
|
97 | $content->addToProperty("class","image"); |
|
98 | } |
|
99 | return $this; |
|
100 | } |
|
101 | ||
102 | private function addElementInPart($element,$part) { |
|
103 | $this->content[$part]->addContent($element); |