From: vincent@cubedesigners.com Date: Tue, 2 Mar 2021 15:35:43 +0000 (+0000) Subject: wait #4323 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9c2e5f0ca0e745c4c211a78a0cf61cef2f398a04;p=cubeextranet.git wait #4323 @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 734de20e0..aa17fcb4c 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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 = '
$value) {