foreach ($linksCopy as $k => $linkData) {
+ if ($linkData['type'] == Link::LAYER && $linkData['to'] == 'text') {
+ $dupData = $linkData;
+ $dupData['type'] = Link::LAYER;
+ $dupData['to'] = 'image';
+ $dupData['uid'] = 'li_' . $linkData['uid'];
+ $dupData['addzindex'] = -1;
+ $dupData['image_rollover'] = '';
+ array_push($links, $dupData);
+ array_push($links, $linkData);
+ unset($links[$k]);
+ }
if ($this->fluidbookSettings->PDFRendererIframe === 'svg' && (($linkData['type'] == Link::IFRAME && stristr($linkData['to'], '.pdf')) || ($linkData['type'] == Link::MULTIMEDIA && stristr($linkData['to'], '.pdf')))) {
$ofile = $this->wdir . '/' . $linkData['to'];
$dfile = $this->wdir . '/' . $linkData['to'] . '.svg';
}
}
- if ($type['type'] === 6) {
+ if ($type['type'] === Link::MULTIMEDIA) {
$optionsChoices['to'] = ['file.jpg', 'file.zip'];
+ } else if ($type['type'] === Link::LAYER) {
+ $optionsChoices['to'] = ['', 'both', 'image', 'text'];
}
$configs[$type['type']] = $optionsChoices;