]> _ Git - fluidbook_tools.git/commitdiff
wait #5960 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 30 May 2023 10:10:26 +0000 (12:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 30 May 2023 10:10:26 +0000 (12:10 +0200)
src/Links/ImageLink.php

index 9edfada4b9ad6d404f9a8aa11d452f1b3ca9e8d6..9448e8e6f7b2d5418abbaef7ae7fb343b911fb63 100644 (file)
@@ -21,13 +21,14 @@ class ImageLink extends ContentLink
     {
         $res = parent::getAdditionnalContent();
         $res .= ' data-image="' . $this->getImageUrl() . '"';
-        $res .= ' data-rollover="' . $this->rollover . '"';
+        $res .= ' data-rollover="' . $this->image_rollover . '"';
         return $res;
     }
 
     public function getHTMLContent()
     {
-        if (stristr($this->rollover, 'type=zoom')) {
+        // For zoomin & zoomout animations
+        if (stristr($this->image_rollover, 'type=zoom')) {
             return '<div class="img" style="background-image:url(' . $this->getImageUrl() . ');"></div>';
         } else {
             return '<img src="' . $this->getImageUrl() . '" />';