From fce0615bf151752125c2dd9c0364b616947981b4 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 1 Feb 2019 18:51:37 +0000 Subject: [PATCH] #2569 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; } -- 2.39.5