{
$res = parent::getAdditionnalContent();
$res .= ' data-image="' . $this->getImageUrl() . '"';
- $res .= ' data-rollover="' . $this->rollover . '"';
+ $res .= ' data-rollover="' . $this->image_rollover . '"';
return $res;
}
public function getHTMLContent()
{
- if (stristr($this->rollover, 'type=zoom')) {
+ // For zoomin & zoomout animations
+ if (stristr($this->image_rollover, 'type=zoom')) {
return '<div class="img" style="background-image:url(' . $this->getImageUrl() . ');"></div>';
} else {
return '<img src="' . $this->getImageUrl() . '" />';