]> _ Git - fluidbook_tools.git/commitdiff
wip #6740 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Feb 2024 16:08:21 +0000 (17:08 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 21 Feb 2024 16:08:21 +0000 (17:08 +0100)
src/Links/AudioLink.php
src/Links/AudioPopupLink.php

index f2d0d594dfc51ac54585d58505ffd86b4398d5d3..fba12ced4c0b4f129e3fd2bbbb833181f9b31f03 100644 (file)
@@ -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 ';
index c425ab0fa0f9a5b7af17a2ded87e67c4aa99991b..1f4c218bd2378f06820a472b2ef3a924a0904d08 100644 (file)
@@ -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()