]> _ Git - cubeextranet.git/commitdiff
wip #3754 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 2 Jul 2020 14:15:58 +0000 (14:15 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 2 Jul 2020 14:15:58 +0000 (14:15 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 7b0b83dc6335e27f3b644d02836948d87d97ef96..6eb0c7bce32c11b6ed2709ba1121cf0396995ac3 100644 (file)
@@ -40,6 +40,7 @@ class wsHTML5Link
     public $iframeType = "none";
     public $border = 0;
     public $borderColor = '#ffffff';
+    public $maxWidth = 0;
 
     protected $_init;
 
@@ -380,7 +381,12 @@ class wsHTML5Link
 
     public function getAdditionnalContent()
     {
-        return '';
+        $res = '';
+        if ($this->maxWidth > 0) {
+            $res .= ' data-max-width="' . $this->maxWidth . '"';
+        }
+
+        return $res;
 
     }