From 67dd081b6eafefee126f7e25c65ae444ee96d048 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 25 Apr 2014 14:29:28 +0000 Subject: [PATCH] --- inc/ws/Util/html5/class.ws.html5.links.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/inc/ws/Util/html5/class.ws.html5.links.php b/inc/ws/Util/html5/class.ws.html5.links.php index a3ccea18f..63167d486 100644 --- a/inc/ws/Util/html5/class.ws.html5.links.php +++ b/inc/ws/Util/html5/class.ws.html5.links.php @@ -22,6 +22,7 @@ class wsHTML5Link { public $inline; public $display_area; public $infobulle; + public $extra; public $id; public $rot; @@ -135,6 +136,14 @@ class wsHTML5Link { foreach ($init as $k => $v) { $this->$k = $v; } + if (!$this->video_width) { + $this->video_width = $this->width; + } + if (!$this->video_height) { + $this->video_height = $this->height; + } + + if ($this->target == '') { $this->target = '_blank'; } @@ -577,6 +586,9 @@ class htmlMultimediaLink extends wsHTML5Link { $h = $this->height * $this->getCssScale(); if ($this->_config['html']) { $this->_url = $d['fdir'] . '/' . $this->_config['html']; + if ($this->extra) { + $this->_url.='?' . $this->extra; + } $iw = $this->_config['width']; $ih = $this->_config['height']; @@ -644,6 +656,7 @@ class htmlMultimediaLink extends wsHTML5Link { public function getConfigZIP($d) { + $res = array('width' => $this->video_width, 'height' => $this->video_height); if (file_exists($d . '/index.html')) { $r = array('html' => 'index.html', 'inject' => array(), 'injectcss' => array(), 'injectjs' => array()); -- 2.39.5