From: vincent@cubedesigners.com Date: Wed, 22 Aug 2018 13:56:56 +0000 (+0000) Subject: wip #2190 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8fc78971878863c9297e96a297c39e00de8e1c3c;p=cubeextranet.git wip #2190 @1 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index f2a3678e7..4ecb5b1c4 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -860,7 +860,6 @@ class wsHTML5Compiler $this->vdir->copy($this->wdir . '/' . $ic, 'data/images/' . $ic); } } - } protected function writeLinks() @@ -1266,7 +1265,6 @@ class wsHTML5Compiler { global $core; - switch ($this->book->parametres->mobileVersion) { case 'html5-desktop': $this->backgroundsPrefix = array('t', 'p'); @@ -1309,6 +1307,7 @@ class wsHTML5Compiler } } + foreach ($this->getResolutions() as $r) { foreach ($this->backgroundsPrefix as $backgroundsPrefix) { $srcPrefix = $backgroundsPrefix; 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 58eee0cd9..5914e4934 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -123,7 +123,11 @@ class wsHTML5Link return new audioPopupLink($id, $init, $compiler); } case 18: - return new tooltipLink($id, $init, $compiler); + if ($init['inline']) { + return new tooltipLink($id, $init, $compiler); + } else { + return new textPopupLink($id, $init, $compiler); + } case 19: break; case 20: @@ -399,6 +403,31 @@ class tooltipLink extends normalLink } } +class textPopupLink extends normalLink +{ + public function getClasses() + { + return array_merge(array('lazy', 'textpopup'), parent::getClasses()); + } + + public function getAdditionnalContent() + { + $res = parent::getAdditionnalContent(); + $res .= ' data-text="' . $this->infobulle . '" '; + return $res; + } + + public function getURL() + { + return '#'; + } + + public function getTooltip() + { + return ''; + } +} + class htmlMultimediaImage extends wsHTML5Link { public $zindex = 2;