From c8396e4faa86ae5706a8968217ceb1b299377b2b Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 14 Oct 2021 20:43:16 +0200 Subject: [PATCH] wip #4792 @0:05 --- src/Links/AudioLink.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 '; -- 2.39.5