]> _ Git - cubeextranet.git/commitdiff
wait #5087
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 21 Feb 2022 17:19:06 +0000 (17:19 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 21 Feb 2022 17:19:06 +0000 (17:19 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index dcd06052ff2060241942c916ebfb1baf12d3b8a6..fae2cf3565179a716b18451ef40fe0a269fd4429 100644 (file)
@@ -1046,6 +1046,7 @@ class contentLink extends wsHTML5Link
     public $defaultZIndex = 30;
     public $allowsAnimation = true;
     public $interactive = false;
+    public $forceTexture = false;
 
     public function getHTMLContainerClass()
     {
@@ -1093,6 +1094,9 @@ class contentLink extends wsHTML5Link
                 $res .= ' data-animation-hide-on-leave ';
             }
         }
+        if ($this->forceTexture && $this->getDepth() >= 40) {
+            $res .= ' data-force-texture="1" ';
+        }
 
         return $res;
     }
@@ -2191,12 +2195,13 @@ class flipcardLink extends imageLink
 {
     public $interactive = true;
     public $defaultZIndex = 70;
+    public $forceTexture = true;
 
     public function getHTMLContent()
     {
         $this->copyExternalFile($this->to);
         $this->copyExternalFile($this->alternative);
-        $res='<a href="#" '.$this->getTooltipAttribute().'></a>';
+        $res = '<a href="#" ' . $this->getTooltipAttribute() . '></a>';
         $res .= '<div class="flipcard">';
         $res .= '<div class="front"><img src="' . wsHTML5Link::getUniversalLocation($this->to) . '"></div>';
         $res .= '<div class="back"><img src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '"></div>';