]> _ Git - odl.git/commitdiff
wait #5199 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Mar 2022 13:18:19 +0000 (15:18 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Mar 2022 13:18:19 +0000 (15:18 +0200)
app/Jobs/ProcessFluidbook.php

index 7acc03f2bb3762a53703453a5338e23423a4c458..910bfdb61affbbf193a1b651952ba84ef88b4c36 100644 (file)
@@ -145,6 +145,8 @@ class ProcessFluidbook extends Compiler
             $e = explode(':', $link['to']);
             $ee = Text::multiExplode('/-', $e[0]);
 
+            $link['display_area'] = false;
+
             if ($ee[0] == 'anim') {
                 $base = [['type' => '', 'ease' => 'Power2.easeOut', 'duration' => 1.5, 'transformOrigin' => 'center', 'delay' => 1], []];
                 switch ($ee[1]) {
@@ -209,7 +211,7 @@ class ProcessFluidbook extends Compiler
                 $link['type'] = $ee[0] === 'video' ? 4 : 17;
                 $link['inline'] = $ee[1] === 'inline';
                 $link['to'] = $this->_getAssetFile($e[1]);
-                $link['display_area'] = false;
+
                 if ($link['inline']) {
                     $link['video_auto_start'] = false;
                     $link['video_controls'] = true;
@@ -229,11 +231,23 @@ class ProcessFluidbook extends Compiler
                 } else {
                     $link['type'] = 30;
                 }
+            } else if ($e[0] === 'tooltip') {
+                $link['to'] = $e[1];
+                $link['type'] = 18;
+                $link['inline'] = true;
             }
             $res[$k] = $link;
         }
         return $res;
     }
 
+    protected function compileChapters()
+    {
+        $this->config->chaptersPagesNumber = 'physical';
+        $this->config->chapters = [];
+//        foreach ($this->sources as $source) {
+//            $this->config->chapters += $source->getDocument()->getChapters();
+//        }
+    }
 
 }