]> _ Git - cubeextranet.git/commitdiff
wait #4797 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 15 Oct 2021 16:04:53 +0000 (16:04 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 15 Oct 2021 16:04:53 +0000 (16:04 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 91cdf6b62ba6765c8684dca095bab09aa2d85d71..a119594281a7cbe662efee44150cd327e7e0468a 100644 (file)
@@ -134,6 +134,8 @@ class wsHTML5Link
                     return new cartLink($id, $init, $compiler);
                 }
                 switch ($compiler->book->parametres->customLinkClass) {
+                    case 'IntexLink':
+                        return new intexLink($id, $init, $compiler);
                     case 'WescoLink':
                         return new wescoLink($id, $init, $compiler);
                     case 'HaguenauManifLink':
@@ -2250,6 +2252,19 @@ class JoueclubWishlistLink extends normalLink
     }
 }
 
+class intexLink extends wescoLink
+{
+    public static function _getURL($to)
+    {
+        return self::_getURLOfType('intex', $to);
+    }
+
+    public function getDefaultTooltip()
+    {
+        return 'Cliquer pour voir la page du produit';
+    }
+}
+
 class wescoLink extends normalLink
 {
     protected $role = 'link';