From 1076ea6acbcd14b7551d76dbf9e1014f3155eb59 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 27 Jun 2017 17:00:17 +0000 Subject: [PATCH] wip #1503 @1 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 da8e1904c..6576a5341 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -373,6 +373,7 @@ class htmlMultimediaPopupLink extends htmlMultimediaPopupImage { $i['inline'] = true; $i['width'] = $i['video_width']; $i['height'] = $i['video_height']; + $i['read_mode'] = $i['read_mode']; $l = self::getMultimediaInstance($this->id . '_content', $i, $this->compiler); $markup = $l->getHTMLContainer(); @@ -388,10 +389,16 @@ class htmlMultimediaPopupImage extends normalLink { return '#/multimedia/' . md5($this->alternative); } + public function getAdditionnalContent() { $dim = getimagesize($this->wdir . '/' . $this->alternative); - $markup = '
'; - return ' data-multimedia="' . rawurlencode($markup) . '" '; + + $markup = '
'; + $read = ''; + if ($this->read_mode) { + $read = ' data-readmode="1"'; + } + return $read . ' data-multimedia="' . rawurlencode($markup) . '" '; } public function keep() { -- 2.39.5