$this->writeFonts();\r
$this->writeImages();\r
file_put_contents($this->vdir . '/style/style.css', $this->writeCSS());\r
+\r
+ file_put_contents($this->vdir . '/data/datas.js', $this->writeConfig());\r
+ }\r
+\r
+ protected function writeConfig() {\r
+ $res = 'DATAS=' . json_encode($this->book->parametres->toStandardObject()) . ';' . "\n";\r
+ $res.= 'THEME=' . json_encode($this->theme->parametres->toStandardObject()) . ';' . "\n";\r
+\r
+ return $res;\r
}\r
\r
protected function writeFonts() {\r
}\r
\r
protected function getCSSSize(&$size) {\r
- $size=$this->normalizeFloatValue($size, 1);\r
+ $size = $this->normalizeFloatValue($size, 1);\r
$sizer = round($size * $this->multiply);\r
return $this->getIndex($sizer, $this->cssSize);\r
}\r