]> _ Git - cubeextranet.git/commitdiff
wip #1503 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 27 Jun 2017 17:00:17 +0000 (17:00 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 27 Jun 2017 17:00:17 +0000 (17:00 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index da8e1904c29fe88b3b443cb29e8f6fd902512658..6576a534153bdec1110de30df1d658b8278d9c86 100644 (file)
@@ -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 = '<div  class="multimediaContainer"><img data-width="' . $dim[0] . '" data-height="' . $dim[1] . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $dim[0] . '" height="' . $dim[1] . '" class="multimedia" /></div>';
-               return ' data-multimedia="' . rawurlencode($markup) . '" ';
+
+               $markup = '<div class="multimediaContainer "><img data-width="' . $dim[0] . '" data-height="' . $dim[1] . '" src="' . wsHTML5Link::getUniversalLocation($this->alternative) . '" width="' . $dim[0] . '" height="' . $dim[1] . '" class="multimedia" /></div>';
+               $read = '';
+               if ($this->read_mode) {
+                       $read = ' data-readmode="1"';
+               }
+               return $read . ' data-multimedia="' . rawurlencode($markup) . '" ';
        }
 
        public function keep() {