From 0a53a4c867caab1fb9a4cc7d72fb29a824bd00ca Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 21 Feb 2024 17:08:21 +0100 Subject: [PATCH] wip #6740 @0.5 --- src/Links/AudioLink.php | 4 ++-- src/Links/AudioPopupLink.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Links/AudioLink.php b/src/Links/AudioLink.php index f2d0d59..fba12ce 100644 --- a/src/Links/AudioLink.php +++ b/src/Links/AudioLink.php @@ -35,9 +35,9 @@ class AudioLink extends Link * @param Compiler $compiler * @return string */ - public static function makeAudioTag($linkDatas, $w = null, $h = null, $compiler = null) + public static function makeAudioTag($linkDatas, $w = null, $h = null, $compiler = null, $theme = null) { - $theme = $compiler->getSetting('audioPlayerTheme'); + $theme = $theme === null || $theme === 'inline' ? $compiler->getSetting('audioPlayerTheme') : $theme; $controls = ''; if ($theme === 'native') { $controls = 'controls '; diff --git a/src/Links/AudioPopupLink.php b/src/Links/AudioPopupLink.php index c425ab0..1f4c218 100644 --- a/src/Links/AudioPopupLink.php +++ b/src/Links/AudioPopupLink.php @@ -18,7 +18,7 @@ class AudioPopupLink extends NormalLink public function getAdditionnalContent() { - return ' data-audio="' . rawurlencode(AudioLink::makeAudioTag($this, null, null, $this->compiler)) . '" '; + return ' data-audio="' . rawurlencode(AudioLink::makeAudioTag($this, null, null, $this->compiler, $this->compiler->getSetting('audioPlayerThemePopup', 'native'))) . '" '; } public function keep() -- 2.39.5