- $link->addContents(new MECON_HTML_Image($this->getSrc(),
- $this->getAlt(), $this->getAttributes()));
+
+ if ($this->_align == 'left') {
+ $link->addContents(new MECON_HTML_Image($this->getSrc(),
+ $this->getAlt(), $this->getAttributes()), true);
+ }
+ elseif ($this->_align == 'right') {
+ $link->addContents(new MECON_HTML_Image($this->getSrc(),
+ $this->getAlt(), $this->getAttributes()));
+ }