]> _ Git - cubeextranet.git/commitdiff
wait #4323 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 2 Mar 2021 15:35:43 +0000 (15:35 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 2 Mar 2021 15:35:43 +0000 (15:35 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 734de20e0626e45fbbd3c647729bdec288f0915e..aa17fcb4c01e1d4992655207dc48994d0531e214 100644 (file)
@@ -1088,6 +1088,8 @@ class videoBackgroundLink extends videoLink
 class videoLink extends wsHTML5Link
 {
     public $defaultZIndex = 50;
+    public $backgroundColor='#000000';
+
 
     public static function addVideoJS($compiler)
     {
@@ -1099,6 +1101,13 @@ class videoLink extends wsHTML5Link
         return array_merge(['videoLink'], parent::getClasses());
     }
 
+    public function getCSS()
+    {
+        $res= parent::getCSS();
+        $res.='background-color:'.$this->backgroundColor.';';
+        return $res;
+    }
+
     public function getHTMLContent()
     {
         if (!CubeIT_Util_Url::isDistant($this->to)) {
@@ -1112,7 +1121,7 @@ class videoLink extends wsHTML5Link
         // preview frame for local files or set to 1280 x 720 for web videos.
         // The $w and $h variables here seem to be null generally...
 
-        return $this->makeVideoTag($this, $w, $h, $this->compiler);
+        return self::makeVideoTag($this, $w, $h, $this->compiler);
     }
 
     public static function makeVideoTag($linkDatas, $w = null, $h = null, $compiler = null)
@@ -1120,6 +1129,7 @@ class videoLink extends wsHTML5Link
         static::addVideoJS($compiler);
 
         $attributes = static::getVideoAttributes($linkDatas, $w, $h, $compiler);
+        $linkDatas->backgroundColor=$attributes['backgroundcolor'];
 
         $res = '<div class="videoContainer integration-' . $linkDatas->inline . '"';
         foreach ($attributes as $name => $value) {