]> _ Git - fluidbook_tools.git/commitdiff
wait #6261 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Sep 2023 11:48:57 +0000 (13:48 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Sep 2023 11:48:57 +0000 (13:48 +0200)
src/Links/Link.php

index d4bc48bad351e53a407a535925f34e640a78fdc7..1775979161fe85a6fd21ca905692a63ba2ad38c8 100644 (file)
@@ -124,6 +124,8 @@ class Link
 
     protected $_init;
 
+    public $relatedAnimation = '';
+
     protected $_cssContainer = null;
     protected $_htmlContainer = null;
 
@@ -572,6 +574,10 @@ class Link
     {
         $addContent = $this->getAdditionnalContent();
 
+        if ($this->relatedAnimation) {
+            $addContent .= ' data-related-animation="' . $this->relatedAnimation . '"';
+        }
+
         $attached = $this->attached ? ' data-attached="' . $this->attached . '" ' : '';
         return '<div class="' . $this->getHTMLContainerClass() . '" style="mix-blend-mode:' . $this->blendmode . ';" data-blendmode="' . $this->blendmode . '" ' . $attached . ' data-hidden="' . $this->hidden . '" data-scorm="' . $this->scorm . '" data-id="' . $this->uid . '" id="l_' . $this->id . '"' . $addContent . '>' . $this->getHTMLContent() . '</div>';
     }