if (!isset($infos['pattern'])) {\r
$infos['pattern'] = '$1_$2';\r
}\r
- $res .= '<li><a class="popupFSBar" rel="toolbar=yes" rev="' . $infos['version'] . '_$1" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '">' . $infos['icon'] . $infos['title'] . '</a></li>';\r
+ $res .= '<li><a class="popupFSBar" rel="toolbar=1,scrollbars=1" rev="' . $infos['version'] . '_$1" href="' . SITE_PATH . $infos['version'] . '/' . $infos['pattern'] . '/' . $infos['file'] . '">' . $infos['icon'] . $infos['title'] . '</a></li>';\r
}\r
}\r
$res .= '</ul></div>';\r
\r
header('Content-type: text/plain');\r
ob_end_clean();\r
- echo $dao->compile($args[1], 3, isset($args[2]));\r
+ echo $dao->compile($args[1], 3, false,true);\r
exit;\r
}\r
\r
$pages = $this->getPagesOfBook($book_id);\r
}\r
\r
- public function compile($book_id, $version = 'all', $complete = false) {\r
+ public function compile($book_id, $version = 'all', $complete = false, $force = false) {\r
if (is_null($book_id) || !$book_id) {\r
return;\r
}\r
$book = $this->selectById($book_id);\r
$pages = $this->getPagesOfBook($book_id);\r
\r
- $v1 = $v1 && !$this->isUpToDate($book, 1);\r
- $v2 = $v2 && !$this->isUpToDate($book, 2);\r
- $html5 = $html5 && !$this->isUpToDate($book, 'html5');\r
+ if (!$force) {\r
+\r
+ $v1 = $v1 && !$this->isUpToDate($book, 1);\r
+ $v2 = $v2 && !$this->isUpToDate($book, 2);\r
+ $html5 = $html5 && !$this->isUpToDate($book, 'html5');\r
+ } else {\r
+ $v1 = false;\r
+ $html5 = false;\r
+ $v2 = true;\r
+ }\r
\r
\r
\r
}\r
if ($html5) {\r
fb(time(), 'Compile HTML5');\r
- $res.=$this->compileHTML5($book_id,$book);\r
+ $res.=$this->compileHTML5($book_id, $book);\r
$this->touchCompile($book_id, 'html5');\r
}\r
if ($v1 || $v2) {\r
}\r
}\r
\r
- $externalsOptions = array('ongletsSWF', 'tabs2DSWF','externalChapters','externalArchives');\r
+ $externalsOptions = array('ongletsSWF', 'tabs2DSWF', 'externalChapters', 'externalArchives');\r
foreach ($externalsOptions as $e) {\r
if (isset($book->parametres->$e) && $book->parametres->$e != '') {\r
$f = $workingDir . '/' . $book->parametres->$e;\r
}\r
}\r
\r
- public function compileHTML5($book_id,$book) {\r
- $htmlCompiler = wsHTML5Compiler::factory($book_id,$book->parametres->mobileLVersion);\r
+ public function compileHTML5($book_id, $book) {\r
+ $htmlCompiler = wsHTML5Compiler::factory($book_id, $book->parametres->mobileLVersion);\r
$htmlCompiler->compile();\r
}\r
\r
'js/libs/fluidbook/fluidbook.chapters.js',
'js/libs/fluidbook/fluidbook.help.js',
'js/libs/fluidbook/fluidbook.resize.js',
+ 'js/libs/fluidbook/fluidbook.coquillette.js',
'js/libs/fluidbook/fluidbook.js',
'js/main.js');
protected static $debugJsFiles = array(
$this->config->optimalWidth = $this->optimalWidth;
$this->config->optimalHeight = $this->optimalHeight;
$this->config->chapters = $this->book->chapters;
+ $this->config->coquilletteBack = $this->colorToCSS($this->theme->parametres->couleurA);
+ $this->config->coquilletteFront = $this->colorToCSS($this->theme->parametres->arrowsColor);
foreach ($this->additionalConfig as $k => $v) {
$this->config->$k = $v;
}
$res[] = $shade;
// Background
- $body = '#main{';
+ $body = '#main,#view.index{';
$body.='background-color:#' . $this->theme->parametres->backgroundColor . ';';
switch ($this->theme->parametres->repeat) {
case wsTheme::REPEAT: