From: Vincent Vanwaelscappel Date: Thu, 14 Oct 2021 18:43:16 +0000 (+0200) Subject: wip #4792 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c8396e4faa86ae5706a8968217ceb1b299377b2b;p=fluidbook_tools.git wip #4792 @0:05 --- diff --git a/src/Links/AudioLink.php b/src/Links/AudioLink.php index d31573f..356d538 100644 --- a/src/Links/AudioLink.php +++ b/src/Links/AudioLink.php @@ -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 ';