From: vincent@cubedesigners.com Date: Thu, 2 Jul 2020 14:15:58 +0000 (+0000) Subject: wip #3754 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=739a7a67af14472ab9b464f8ec58d802298b8047;p=cubeextranet.git wip #3754 @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 7b0b83dc6..6eb0c7bce 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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; }