$this->vdir->copy($this->wdir . '/' . $ic, 'data/images/' . $ic);
}
}
-
}
protected function writeLinks()
{
global $core;
-
switch ($this->book->parametres->mobileVersion) {
case 'html5-desktop':
$this->backgroundsPrefix = array('t', 'p');
}
}
+
foreach ($this->getResolutions() as $r) {
foreach ($this->backgroundsPrefix as $backgroundsPrefix) {
$srcPrefix = $backgroundsPrefix;
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:
}
}
+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;