From: Vincent Vanwaelscappel Date: Fri, 3 Oct 2025 12:57:13 +0000 (+0200) Subject: wip #7770 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d4655f4693bc01abf1dd8641e161f56374d2068d;p=fluidbook_tools.git wip #7770 @0.25 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 147e3b4..40db0aa 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -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; diff --git a/src/Links/VideoLink.php b/src/Links/VideoLink.php index ee7508c..bb6d58a 100644 --- a/src/Links/VideoLink.php +++ b/src/Links/VideoLink.php @@ -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; + } + }