From: Vincent Vanwaelscappel Date: Thu, 20 Jun 2024 06:42:59 +0000 (+0200) Subject: wip #6968 @3 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e0f3955aacd4af4a8df5dcfb02c5a5dc41ddd837;p=fluidbook_tools.git wip #6968 @3 --- diff --git a/src/Links/HTMLMultimediaLink.php b/src/Links/HTMLMultimediaLink.php index 090d100..6957784 100644 --- a/src/Links/HTMLMultimediaLink.php +++ b/src/Links/HTMLMultimediaLink.php @@ -30,12 +30,6 @@ class HTMLMultimediaLink extends Link $d = $this->unzipFile($this->to, false); $this->_config = $this->getConfigZIP($d['dir']); $this->copyExternalDir($d['dir'], $d['fdir']); - if (file_exists($d['dir'] . '/index.html')) { - $html = file_get_contents($d['dir'] . '/index.html'); - $html = str_replace('var pRatio = window.devicePixelRatio || 1,', 'var pRatio = 0.5,', $html); - $this->_config['lowDef'] = 'index_ld.html'; - $this->compiler->getVirtualDirectory()->file_put_contents($d['fdir'] . '/' . $this->_config['lowDef'], $html); - } } elseif ($ext === 'html') { $fdir = 'data/links'; $dir = $fdir; diff --git a/src/Links/Link.php b/src/Links/Link.php index 314d4cf..3602b39 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -127,6 +127,7 @@ class Link public $transition; public $polygon = ''; public $cursor = ''; + public $blinkdelay=0; protected $role = 'button'; diff --git a/src/Links/NormalLink.php b/src/Links/NormalLink.php index d13be07..2251de8 100644 --- a/src/Links/NormalLink.php +++ b/src/Links/NormalLink.php @@ -22,8 +22,8 @@ class NormalLink extends Link $attrs .= ' class="' . implode(' ', $class) . '"'; } $attrs .= $this->getTooltipAttribute(); - if (isset($this->extra->blinkdelay)) { - $attrs .= ' data-blinkdelay="' . intval($this->extra->blinkdelay) . '"'; + if ($this->blinkdelay>0) { + $attrs .= ' data-blinkdelay="' . intval($this->blinkdelay) . '"'; } return 'getAdditionnalContent() . $this->getTrack() . '>' . $this->getInnerContent() . ''; }