]> _ Git - fluidbook_tools.git/commitdiff
wip #7013 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Jul 2024 17:32:36 +0000 (19:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Jul 2024 17:32:36 +0000 (19:32 +0200)
src/Links/AudioLink.php

index fba12ced4c0b4f129e3fd2bbbb833181f9b31f03..ef24d8f7548a5f9df2de799d88efadc1b5dabee7 100644 (file)
@@ -14,7 +14,9 @@ class AudioLink extends Link
         $w = round($this->width * $this->getCssScale());
         $h = round($this->height * $this->getCssScale());
 
-        return self::makeAudioTag($this, $w, $h, $this->compiler);
+        $attrs = $this->getTooltipAttribute();
+
+        return self::makeAudioTag($this, $w, $h, $this->compiler, null, $attrs);
     }
 
     protected function _getCSSContainer()
@@ -35,7 +37,7 @@ class AudioLink extends Link
      * @param Compiler $compiler
      * @return string
      */
-    public static function makeAudioTag($linkDatas, $w = null, $h = null, $compiler = null, $theme = null)
+    public static function makeAudioTag($linkDatas, $w = null, $h = null, $compiler = null, $theme = null, $attrs = '')
     {
         $theme = $theme === null || $theme === 'inline' ? $compiler->getSetting('audioPlayerTheme') : $theme;
         $controls = '';
@@ -52,8 +54,9 @@ class AudioLink extends Link
         }
         $res .= ' src="' . self::getUniversalLocation($linkDatas->to) . '"';
         $res .= '></audio>';
-        $res .= '<div class="visualPlayer"></div>';
+        $res .= '<div class="visualPlayer" ' . $attrs . '></div>';
         return $res;
     }
 
+
 }