]> _ Git - fluidbook_tools.git/commitdiff
wip #7770 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 3 Oct 2025 12:57:13 +0000 (14:57 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 3 Oct 2025 12:57:13 +0000 (14:57 +0200)
src/Links/Link.php
src/Links/VideoLink.php

index 147e3b4cbe23527d5890b8b98573f1a198c3bcb6..40db0aa1dd5f9014da25680642c968f3eb8d07d0 100644 (file)
@@ -97,6 +97,7 @@ class Link
     public $video_height;
     public $video_width;
     public $video_service;
+    public $video_autohide;
     public $close_button;
     public $hidelinksonplay;
     public $rollover;
index ee7508c2a90fc92aa67fa63cc9663fad15d58580..bb6d58a0e1e5f3dc614cc5591bd58adc9822ff79 100644 (file)
@@ -84,7 +84,6 @@ class VideoLink extends Link
         $attr['loop'] = ($data->video_loop ? '1' : '0');
         $attr['sound'] = ($data->video_sound_on ? '1' : '0');
         $attr['cc'] = (($data->video_cc ?? '1') ? '1' : '0');
-        $attr['autohide'] = (($data->video_autohide ?? '1') ? '1' : '0');
         $attr['hidelinksonplay'] = $data->hidelinksonplay;
         $attr['link-id'] = $data->uid;
         $attr['backgroundcolor'] = $data->backgroundColor ?? '#000000';
@@ -125,4 +124,13 @@ class VideoLink extends Link
         return $attr;
     }
 
+    public function getAdditionnalContent()
+    {
+        $res = parent::getAdditionnalContent();
+        if ($this->video_autohide) {
+            $res .= ' data-autohide="' . (($data->video_autohide ?? '1') ? '1' : '0') . '"';
+        }
+        return $res;
+    }
+
 }