From: vincent@cubedesigners.com Date: Mon, 21 Feb 2022 16:53:21 +0000 (+0000) Subject: wip #5087 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=27d10ea21edd7d4a45748c3e28cb297581a4c53a;p=cubeextranet.git wip #5087 @1 --- 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 f662f9a1e..dcd06052f 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -275,6 +275,8 @@ class wsHTML5Link break; case 39: return new layerLink($id, $init, $compiler); + case 41: + return new flipcardLink($id, $init, $compiler); default: return null; } @@ -1037,7 +1039,6 @@ class htmlMultimediaPopupImage extends normalLink { return true; } - } class contentLink extends wsHTML5Link @@ -2186,6 +2187,36 @@ class webVideoPopupLink extends videoPopupLink } +class flipcardLink extends imageLink +{ + public $interactive = true; + public $defaultZIndex = 70; + + public function getHTMLContent() + { + $this->copyExternalFile($this->to); + $this->copyExternalFile($this->alternative); + $res='getTooltipAttribute().'>'; + $res .= '
'; + $res .= '
'; + $res .= '
'; + $res .= '
'; + return $res; + } + + public function getDefaultTooltip() + { + return 'click to flip'; + } + + public function getAdditionnalContent() + { + $res = parent::getAdditionnalContent(); + $res .= ' data-flipcard="1" '; + return $res; + } +} + class audioLink extends wsHTML5Link { public function __construct($id, $init, &$compiler)