From 44485d80e97f8fbf4f2de00250f56c7d6a47065c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 19 Jul 2024 19:32:36 +0200 Subject: [PATCH] wip #7013 @0.25 --- src/Links/AudioLink.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Links/AudioLink.php b/src/Links/AudioLink.php index fba12ce..ef24d8f 100644 --- a/src/Links/AudioLink.php +++ b/src/Links/AudioLink.php @@ -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 .= '>'; - $res .= '
'; + $res .= '
'; return $res; } + } -- 2.39.5