$res = parent::getAdditionnalContent();
$variables = self::parseAnimation($this->image_rollover);
- if (isset($variables['type'])) {
- $res .= ' data-animation-type="' . $variables['type'] . '" data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" ';
+ if (!isset($variables['type']) || !$variables['type']) {
+ $variables['type'] = 'none';
}
+ $res .= ' data-animation-type="' . $variables['type'] . '" data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" ';
+
return $res;
}