]> _ Git - cubeextranet.git/commitdiff
wip #3768 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 8 Jul 2020 17:12:13 +0000 (17:12 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 8 Jul 2020 17:12:13 +0000 (17:12 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index e342d81695cb322b6415eabd10ade0e17630463d..0ff70caaf5947d4472c26d2cabce8ae13d1480af 100644 (file)
@@ -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);