public function addBookmarkGroup($link);
- public function getConfigZIP($d);
+ public function getConfigZIP($d, $file = null, $uid = null, $page = null);
public function getSetting($key, $default = null);
function getHTMLContent()
{
- return '<iframe src="' . self::_handleFile($this) . '" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" data-scale="' . $this->scale . '" scrolling="' . $this->scrolling . '" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
+ $f = self::_handleFile($this);
+ if (null === $f) {
+ return '';
+ }
+ return '<iframe src="' . $f . '" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" data-scale="' . $this->scale . '" scrolling="' . $this->scrolling . '" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>';
}
/**
$config = $link->getConfigZip($d['dir']);
$link->copyExternalDir($d['dir'], $d['fdir']);
}
+ if (null === $config) {
+ return null;
+ }
if ($config['html']) {
return $d['fdir'] . '/' . $config['html'];
}
public function getConfigZIP($d)
{
- return $this->compiler->getConfigZIP($d);
+ return $this->compiler->getConfigZIP($d, $this->to, $this->uid, $this->page);
}
public function getConfigHTML($d, $html)