public function addImage($image, $title = "")
 {
     if (!$image instanceof HtmlImage) {
         $image = new HtmlImage("image-" . $this->identifier, $image, $title);
     }
     $image->setClass("image");
     return $this->addElementInContent("content", $image);
 }
Beispiel #2
0
 public static function avatar($identifier, $src = "", $caption = NULL)
 {
     $img = new HtmlImage($identifier, $src);
     return $img->asAvatar($caption);
 }