From: Vincent Vanwaelscappel Date: Mon, 19 Jan 2026 14:25:41 +0000 (+0100) Subject: #7894 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d57e9cc6e656c3ba72255f6ef7c48770bd92021a;p=fluidbook_tools.git #7894 --- diff --git a/src/Links/HTMLMultimediaPopupImage.php b/src/Links/HTMLMultimediaPopupImage.php index 29d9e52..aef24e0 100644 --- a/src/Links/HTMLMultimediaPopupImage.php +++ b/src/Links/HTMLMultimediaPopupImage.php @@ -4,6 +4,8 @@ namespace Fluidbook\Tools\Links; use Cubist\Util\Graphics\Image; use Cubist\Util\Graphics\Resizer; +use Cubist\Util\Text; +use Nette\Utils\Html; class HTMLMultimediaPopupImage extends NormalLink { @@ -36,11 +38,23 @@ class HTMLMultimediaPopupImage extends NormalLink $imgSizeAttrs = is_array($dim) ? ' data-width="' . $dim[0] . '" data-height="' . $dim[1] . '" width="' . $dim[0] . '" height="' . $dim[1] . '" ' : ''; - $markup = '
'; - $markup .= ''; $alt = $this->getAlternativeText(); if ($alt) { - $markup .= '
' . $alt . '
'; + $adbid = 'adb_' . rand(1000, 100000); + $altmarkup = '
' . $alt . '
'; + $alttxt = Text::html2text($alt); + } + + $markup = '
'; + $markup .= '