diff options
Diffstat (limited to 'frontends/php/include/classes/cimg.inc.php')
| -rw-r--r-- | frontends/php/include/classes/cimg.inc.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/php/include/classes/cimg.inc.php b/frontends/php/include/classes/cimg.inc.php index 11503faf..cd557489 100644 --- a/frontends/php/include/classes/cimg.inc.php +++ b/frontends/php/include/classes/cimg.inc.php @@ -22,14 +22,21 @@ class CImg extends CTag { /* public */ - function CImg($src,$alt_text=NULL,$width=NULL,$height=NULL) + function CImg($src,$alt_text=NULL,$width=NULL,$height=NULL,$class=NULL) { parent::CTag("img","no"); + + $this->tag_start= ""; + $this->tag_end = ""; + $this->tag_body_start = ""; + $this->tag_body_end = ""; + $this->AddOption('border',0); $this->SetAltText($alt_text); $this->SetSrc($src); $this->SetWidth($width); $this->SetHeight($height); + $this->SetClass($class); } function SetSrc($value) { |
