]> _ Git - fluidbook_tools.git/commitdiff
wip #4792 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 18:43:16 +0000 (20:43 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 18:43:16 +0000 (20:43 +0200)
src/Links/AudioLink.php

index d31573f70c2128ffd5bae9f0a9da68795430d8e0..356d53895dbe97a51be9673cc82a5b4ba5fcca67 100644 (file)
@@ -2,6 +2,8 @@
 
 namespace Fluidbook\Tools\Links;
 
+use Fluidbook\Tools\Compiler\Compiler;
+
 class AudioLink extends Link
 {
 
@@ -26,9 +28,16 @@ class AudioLink extends Link
         return $css;
     }
 
+    /**
+     * @param $linkDatas
+     * @param null $w
+     * @param null $h
+     * @param Compiler $compiler
+     * @return string
+     */
     public static function makeAudioTag($linkDatas, $w = null, $h = null, $compiler = null)
     {
-        $theme = $compiler->book->parametres->audioPlayerTheme;
+        $theme = $compiler->config->audioPlayerTheme;
         $controls = '';
         if ($theme === 'native') {
             $controls = 'controls ';