* @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 ';
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()