From: vincent@cubedesigners.com Date: Wed, 28 Nov 2012 17:59:32 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=98b90aaee15fe15abf4cec8ba6e6ee618fb88f48;p=cubeextranet.git --- diff --git a/inc/ws/Util/html5/class.ws.html5.compiler.php b/inc/ws/Util/html5/class.ws.html5.compiler.php index c86d8e426..316e1ef07 100644 --- a/inc/ws/Util/html5/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/class.ws.html5.compiler.php @@ -433,8 +433,9 @@ class wsHTML5Compiler { $style = array(); foreach ($sheets as $sheet) { - $style[] = ''; + $style[] = ''; } + $style[] = ''; $style = implode("\n\t\t", $style); $pagesContents = ''; @@ -454,7 +455,9 @@ class wsHTML5Compiler { $description = ''; } - $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description'); + $print = $this->writePrint(); + + $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print'); foreach ($vars as $v) { $html = str_replace('', $$v, $html); } @@ -482,13 +485,13 @@ class wsHTML5Compiler { $thtml = $uhtml; - $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents'); + $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'print'); foreach ($vars as $v) { $uhtml = str_replace('', $$v, $uhtml); } $script.="\n\t\t" . ''; - $vars = array('titre', 'credits', 'ga', 'style', 'script'); + $vars = array('titre', 'credits', 'ga', 'style', 'script', 'print'); foreach ($vars as $v) { $thtml = str_replace('', $$v, $thtml); } @@ -509,6 +512,15 @@ class wsHTML5Compiler { file_put_contents($this->vdir . '/widget.html', $whtml); } + protected function writePrint() { + $res = '
'; + for ($i = 1; $i <= $this->book->parametres->pages; $i++) { + $res.='
'; + } + $res.='
'; + return $res; + } + protected function writeLangs() { global $core; $daoLang = new wsDAOLang($core->con);