'uid' => __('Identifiant unique'),
'page' => __('Page de la publication'), 'left' => __('x'), 'top' => __('y'), 'width' => __('Largeur'), 'height' => __('Hauteur'), 'rot' => __('Rotation'),
'type' => __('Type'), 'to' => __('Destination'), 'target' => __('Cible'),
- 'infobulle' => __('Infobulle'), 'numerotation' => __('Numérotation'),
+ 'tooltip' => __('Infobulle'), 'numerotation' => __('Numérotation'),
'display_area' => __('Activer la surbrillance'),
'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'),
protected static function _fixLinks(&$links)
{
+ self::_fixTooltips($links);
self::_correctImageSpecialLinks($links);
self::_fixWebVideoServices($links);
self::_fixMultimedia($links);
}
+ protected static function _fixTooltips(&$links)
+ {
+ foreach ($links as $k => $link) {
+ if (isset($link['infobulle'])) {
+ $links[$k]['tooltip'] = $link['infobulle'];
+ unset($links[$k]['infobulle']);
+ }
+ }
+ }
+
+
protected static function _correctImageSpecialLinks(&$links)
{
foreach ($links as $k => $link) {
if ($link['display_area'] == '' || !$link['display_area']) {
$link['display_area'] = '0';
}
- if (trim($link['infobulle']) == '') {
- $link['infobulle'] = '';
+ if (trim($link['tooltip']) == '') {
+ $link['tooltip'] = '';
}
$links[] = $link;
}
'page' => $page,
'left' => $left, 'top' => $top, 'width' => $width, 'height' => $height, 'rot' => '',
'type' => $type, 'to' => $to, 'target' => $target,
- 'infobulle' => '', 'numerotation' => $numerotation, 'display_area' => '1');
+ 'tooltip' => '', 'numerotation' => $numerotation, 'display_area' => '1');
}
self::_fixLinks($links);
$fluidbook = FluidbookPublication::find($book_id);
$lr = self::mergeLinksAndRulers($links, $rulers, $specialLinks, $specialRulers);
+
$meta = ['links' => count($lr['links']), 'rulers' => count($lr['rulers']), 'comments' => $comments, 'user' => $user_id, 'version' => 3, 'onepage' => $fluidbook->isOnePage()];
$base = self::getLinksDir($book_id) . '/' . time();
$latestLinks = self::getLinksDir($book_id) . '/latest.links3.gz';
}
$link = [];
- $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, 'pdfjs' => 'normal');
+ $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, 'tooltip' => '', 'numerotation' => 'physical', "inline" => true, 'pdfjs' => 'normal');
$k = 0;
foreach ($cols as $col => $default) {
if (isset($line[$k])) {
}
if ($link['type'] == 18) {
- $link['infobulle'] = $link['to'];
+ $link['tooltip'] = $link['to'];
$link['to'] = '';
}