From: vincent@cubedesigners.com Date: Fri, 1 Feb 2019 15:51:35 +0000 (+0000) Subject: wip #2569 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bee8ed3d6ee2919cc8e428d079f0aa6a6f652972;p=cubeextranet.git wip #2569 @2 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index a6528ba5b..a4d264581 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -604,6 +604,21 @@ class contentLink extends wsHTML5Link return parent::getHTMLContainerClass() . ' contentLink'; } + public function getAdditionnalContent() + { + $res = parent::getAdditionnalContent(); + $animation = trim($this->image_rollover); + if ($animation != '') { + $variables = []; + $lines = CubeIT_Text::splitLines($animation); + foreach ($lines as $line) { + $e = explode('=', $line); + $variables[trim($e[0])] = trim($e[1]); + } + $res .= ' data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" '; + } + return $res; + } } class eventOverlayLink extends wsHTML5Link