From: vincent@cubedesigners.com Date: Fri, 1 Feb 2019 18:51:37 +0000 (+0000) Subject: #2569 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fce0615bf151752125c2dd9c0364b616947981b4;p=cubeextranet.git #2569 --- 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 a4d264581..9237a87ca 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -615,7 +615,15 @@ class contentLink extends wsHTML5Link $e = explode('=', $line); $variables[trim($e[0])] = trim($e[1]); } - $res .= ' data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" '; + if (isset($variables['type'])) { + if ($variables['direction'] == 'top') { + $variables['direction'] = 'up'; + } + if ($variables['direction'] == 'bottom') { + $variables['direction'] = 'down'; + } + $res .= ' data-animation-type="' . $variables['type'] . '" data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" '; + } } return $res; }