}
protected function compile() {
-
+
}
protected function copyFluidbookFiles() {
$link['left'] = $link['left'] + $this->size[0];
}
+ if ($link['type'] == 4 && !$link['inline']) {
+ $link['type'] = 1;
+ $link['to'].='$' . $link['video_width'] . '$' . $link['video_height'];
+ }
+
if ($link['type'] > 6) {
if ($link['type'] == 15) {
$link['type'] = 6;
$link['to'] = $this->__virtualToPhysical($link['to']);
}
- if ($this->_copyWorkingFile($link['to']) && !in_array($link['type'], array( 4, 6))) {
+ if ($this->_copyWorkingFile($link['to']) && !in_array($link['type'], array(4, 6))) {
$link['to'] = 'data/' . $link['to'];
}
}
protected function _copyWorkingFile($file, $dir = null) {
-
+
$e = explode("$", $file);
$file = array_shift($e);
if (is_null($dir)) {
$src = $this->workingDir . '/' . $file;
if (file_exists($src) && is_file($src)) {
- $res= $this->copy($src, $dir . $file);
+ $res = $this->copy($src, $dir . $file);
return $res;
}
return false;