]> _ Git - fluidbook_tools.git/commitdiff
wip #7049 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Sep 2024 13:11:30 +0000 (15:11 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Sep 2024 13:11:30 +0000 (15:11 +0200)
src/Links/HTMLMultimediaLink.php

index 69577844bf20d515c2587c87474bad9a00cb9357..d290d2d7a4cc6555f548b8bad3de30248adb3ee8 100644 (file)
@@ -66,13 +66,13 @@ class HTMLMultimediaLink extends Link
                 $ih = $this->_config['height'];
 
                 $res = '<div class="mask"></div>';
-                $res .= '<iframe data-scale="' . $s . '" data-width="' . $iw . '" data-height="' . $ih . '" width="' . $iw . '" height="' . $ih . '" src="' . $this->_url . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" style="visibility:hidden;" tabindex="-1" onload="this.style.visibility=\'visible\';"></iframe>';
+                $res .= '<iframe name="' . $this->getIframeName() . '" data-scale="' . $s . '" data-width="' . $iw . '" data-height="' . $ih . '" width="' . $iw . '" height="' . $ih . '" src="' . $this->_url . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" style="visibility:hidden;" tabindex="-1" onload="this.style.visibility=\'visible\';"></iframe>';
             }
             if ($this->_externalIframe !== false) {
                 $iw = $this->_config['width'] * $s;
                 $ih = $this->_config['height'] * $s;
                 $res = '<div class="mask"></div>';
-                $res .= '<iframe data-scale="' . $s . '" data-width="' . $iw . '" data-height="' . $ih . '"  width="' . $iw . '" height="' . $ih . '" src="' . $this->_externalIframe . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" style="visibility:hidden;" tabindex="-1" onload="this.style.visibility=\'visible\';"></iframe>';
+                $res .= '<iframe  name="' . $this->getIframeName() . '" data-scale="' . $s . '" data-width="' . $iw . '" data-height="' . $ih . '"  width="' . $iw . '" height="' . $ih . '" src="' . $this->_externalIframe . '" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" style="visibility:hidden;" tabindex="-1" onload="this.style.visibility=\'visible\';"></iframe>';
             }
 
             //### Debug to see how/where this code is being called multiple times
@@ -111,6 +111,11 @@ class HTMLMultimediaLink extends Link
         return $this->_content;
     }
 
+    public function getIframeName()
+    {
+        return '';
+    }
+
     public function getHTMLContainerClass()
     {
         $res = parent::getHTMLContainerClass() . ' multimedia';