$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;
$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 '<a href="' . $this->getURL() . '" data-type="' . $this->type . '" target="' . $this->getTarget() . '"' . $attrs . $this->getAdditionnalContent() . $this->getTrack() . '>' . $this->getInnerContent() . '</a>';
}