]> _ Git - cubeextranet.git/commitdiff
#2569
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 1 Feb 2019 18:51:37 +0000 (18:51 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 1 Feb 2019 18:51:37 +0000 (18:51 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index a4d264581a383015e53ac4f6c1ccfba711ee99e5..9237a87caef2574307a337b4108c4caa0c9cbf90 100644 (file)
@@ -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;
        }