'video_loop' => __('Video : boucle'), 'video_auto_start' => __('Video : démarrage automatique'), 'video_controls' => __('Vidéo : afficher les contrôles'), 'video_sound_on' => __('Vidéo : activer le son'),
'inline' => __('Vidéo : afficher dans la page'), 'video_width' => __('Vidéo : Largeur du popup'), 'video_height' => __('Vidéo : Hauteur du popup'),
'interactive' => __('Interactivité'), 'video_service' => __('Webvideo : service'),
- 'display_area' => __('Afficher le lien au rollover'),
'extra' => __('Paramètre supplémentaire'),
'alternative' => __('Alternative'),
'read_mode' => __('Mode de lecture'),
'image' => __('Image'), 'image_rollover' => __('Animation au survol'),
'animation' => __('Animation'),
'group' => __('Groupe'),
- 'zindex'=>__('Profondeur'),
+ 'zindex' => __('Profondeur'),
);
$comments = array();
}
// Links
+ self::_correctImageSpecialLinks($links);
$j = 2;
foreach ($links as $l) {
$i = 0;
$r = json_decode(gzdecode(file_get_contents($file)), true);
$links = $r['links'];
$rulers = $r['rulers'];
+
+ self::_correctImageSpecialLinks($links);
+ }
+
+ protected static function _correctImageSpecialLinks(&$links)
+ {
+ foreach ($links as $k => $link) {
+ if (preg_match('/^link_(.*)$/', $link['page'], $matches) && strlen($matches[1]) !== 32) {
+ $uid = $matches[1];
+ foreach ($links as $l) {
+ if ($l['uid'] === $uid && $l['alternative']) {
+ $links[$k]['page'] = 'link_' . md5($l['alternative']);
+ break;
+ }
+ }
+ } else if (preg_match('/^([0-9a-f]{32})$/', $link['page'], $matches)) {
+ $links[$k]['page'] = 'link_' . $matches[1];
+ }
+ }
}
public static function getLinksFromExcel($xls, &$links, &$rulers)
}
$i++;
}
+
+ self::_correctImageSpecialLinks($links);
}
public static function getLinksFromAutobookmarkText($txt, &$links, &$rulers)
'type' => $type, 'to' => $to, 'target' => $target,
'infobulle' => '', 'numerotation' => $numerotation, 'display_area' => '1');
}
+
+ self::_correctImageSpecialLinks($links);
}
public static function _getLinkKey()
$finalLinks[] = $item;
}
+ self::_correctImageSpecialLinks($finalLinks);
+
return ['links' => self::encryptLinks($finalLinks), 'rulers' => array_merge(self::_getAsArray($rulers), self::_getAsArray($specialRulers))];
}
if (substr($line[0], 0, 1) == '#' || is_null($line[0])) {
continue;
}
+
$link = [];
if ($newformat) {
$cols = array('page' => '', 'left' => '', 'top' => '', 'width' => '', 'height' => '', 'type' => '', 'to' => '', 'target' => '_blank', 'video_loop' => true, 'video_auto_start' => true, 'video_controls' => true, 'video_sound_on' => true, 'infobulle' => '', 'numerotation' => 'physical', "inline" => true);