]> _ Git - fluidbook_tools.git/commitdiff
wait #6574 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Dec 2023 16:27:03 +0000 (17:27 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Dec 2023 16:27:03 +0000 (17:27 +0100)
src/Links/FlipcardLink.php
src/Links/InternalLink.php

index b0b087050bf147457c51ca388b7f1d677e2a6bf4..d810c1c245f08d5c2c7728561a5b2c567a30d03d 100644 (file)
@@ -2,12 +2,14 @@
 
 namespace Fluidbook\Tools\Links;
 
-class FlipcardLink extends ImageLink {
+class FlipcardLink extends ImageLink
+{
     public $interactive = true;
     public $defaultZIndex = 70;
     public $forceTexture = true;
 
-    public function getHTMLContent() {
+    public function getHTMLContent()
+    {
         $this->copyExternalFile($this->to);
         $this->copyExternalFile($this->alternative);
         $res = '<a href="#" ' . $this->getTooltipAttribute() . '></a>';
@@ -18,13 +20,20 @@ class FlipcardLink extends ImageLink {
         return $res;
     }
 
-    public function getDefaultTooltip() {
+    public function getDefaultTooltip()
+    {
         return 'click to flip';
     }
 
-    public function getAdditionnalContent() {
+    public function getAdditionnalContent()
+    {
         $res = parent::getAdditionnalContent();
         $res .= ' data-flipcard="' . ($this->width > $this->height ? 'axis-x' : 'axis-y') . '" ';
         return $res;
     }
+
+    public function getHTMLContainerClass()
+    {
+        return parent::getHTMLContainerClass() . " interactive ";
+    }
 }
index 7d3b5eb2a32e502d8b091ec261ae35d9ae40f57d..b467dd9e46c62413b330bcde0de2752374dc3256 100644 (file)
@@ -20,7 +20,7 @@ class InternalLink extends NormalLink
             $anchor = trim($e[1], '# ');
         }
         if ($anchor) {
-            $res = anchorLink::normalizeAnchor($anchor);
+            $res = AnchorLink::normalizeAnchor($anchor);
         } else if ($this->numerotation === 'physical') {
             $res = $p;
         } else {