From: vincent@cubedesigners.com Date: Wed, 8 Jul 2020 17:12:13 +0000 (+0000) Subject: wip #3768 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e81cbce0745e731014f3c46ef0c01f77ec046e28;p=cubeextranet.git wip #3768 @0.25 --- 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 e342d8169..0ff70caaf 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -397,7 +397,10 @@ class wsHTML5Link public function getAdditionnalContent() { - $res = ' role="' . $this->role . '"'; + $res = ''; + if ($this->role !== '') { + $res .= ' role="' . $this->role . '"'; + } if ($this->maxWidth > 0) { $res .= ' data-max-width="' . $this->maxWidth . '"'; } @@ -1402,6 +1405,8 @@ class downloadPortionLink extends fileLink class facebookLikeLink extends wsHTML5Link { + protected $role = ''; + public function getHTMLContent() { $this->compiler->addFacebookSDK(); @@ -1412,6 +1417,7 @@ class facebookLikeLink extends wsHTML5Link class htmlMultimediaLink extends wsHTML5Link { + protected $role = ''; protected $_config = null; protected $_content = ''; protected $_url; @@ -1668,7 +1674,8 @@ class audioLink extends wsHTML5Link class wescoLink extends normalLink { - protected $role='link'; + protected $role = 'link'; + public static function _getURL($to) { return self::_getURLOfType('wesco', $to);