]> _ Git - fluidbook_tools.git/commitdiff
wait #6896 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 May 2024 14:16:26 +0000 (16:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 May 2024 14:16:26 +0000 (16:16 +0200)
src/Links/Link.php

index aae4b4cb8fec7bf7b3be4ddfd1255346fb98e708..5820ac49e0af9fece590a6935da8ace95f15cb7a 100644 (file)
@@ -106,7 +106,7 @@ class Link
     public $extra;
     public $id;
     public $rot;
-    public $class;
+    public $html_class;
     public $uid;
     public $scorm;
     public $hidden = false;
@@ -312,7 +312,7 @@ class Link
             case static::PDF:
                 return new PDFPopupLink($id, $init, $compiler);
             case static::PDF_INLINE:
-                return new PDFInlineLink($id,$init,$compiler);
+                return new PDFInlineLink($id, $init, $compiler);
             case static::COPY_TO_CLIPBOARD:
                 return new CopyToClipboardLink($id, $init, $compiler);
             default:
@@ -620,7 +620,7 @@ class Link
 
     public function getHTMLContainerClass()
     {
-        $res = trim('link ' . $this->class);
+        $res = trim('link ');
         if ((int)$this->page % 2 == 1) {
             $res .= ' odd';
         }
@@ -677,7 +677,7 @@ class Link
     public function getClasses()
     {
 
-        $res = array();
+        $res = Text::multiExplode(' ', $this->html_class ?? '');
         if (isset($this->image_rollover) && $this->image_rollover != 'none') {
             $res[] = 'image_rollover';
         }