]> _ Git - cubeextranet.git/commitdiff
#2534
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 22 Jan 2019 16:15:46 +0000 (16:15 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 22 Jan 2019 16:15:46 +0000 (16:15 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 519e63cf48dd282bf1d1293f8fb95b19db70c6ef..d7a7dd680018a398f0d910b0a208768207425eeb 100644 (file)
@@ -1041,6 +1041,13 @@ class colorLink extends contentLink
                return 'background-color:' . wsHTML5::colorToCSS($this->to, 1) . ';';
        }
 
+       public function getAdditionnalContent()
+       {
+               $res = parent::getAdditionnalContent();
+               $res .= ' data-color="' . wsHTML5::colorToCSS($this->to, 1) . '"';
+               return $res;
+       }
+
 }
 
 class imageLink extends contentLink