From 476a66e8e603c462c9e047dda5db92307b690df1 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 15 Jun 2017 16:47:37 +0000 Subject: [PATCH] done #1480 @0:05 --- fluidbook/compile/index.html | 5 ++++- inc/ws/Metier/class.ws.book.parametres.php | 11 ++++++----- .../Util/html5/master/class.ws.html5.compiler.php | 13 +++++++++---- .../Util/html5/slider/class.ws.html5.compiler.php | 2 ++ inc/ws/Util/packager/class.ws.packager.html.php | 6 ++++++ 5 files changed, 27 insertions(+), 10 deletions(-) diff --git a/fluidbook/compile/index.html b/fluidbook/compile/index.html index 2f905cbdc..1430e7d55 100644 --- a/fluidbook/compile/index.html +++ b/fluidbook/compile/index.html @@ -21,7 +21,9 @@ visibility: hidden; display: none } - + '; - $vars = array('titre', 'credits', 'ga', 'style', 'script', 'print', 'hiddenContents', 'splash', 'message'); + $vars = array('titre', 'credits', 'statsfooter', 'ga', 'style', 'script', 'print', 'hiddenContents', 'splash', 'message'); foreach ($vars as $v) { $thtml = str_replace('', $$v, $thtml); } @@ -1125,7 +1130,7 @@ class wsHTML5Compiler { $this->_makeCover($docdir . 'html/t36-' . $infos['document_page'] . '.jpg'); } - $this->log('Copied image '.$page); + $this->log('Copied image ' . $page); } } diff --git a/inc/ws/Util/html5/slider/class.ws.html5.compiler.php b/inc/ws/Util/html5/slider/class.ws.html5.compiler.php index 14dc81df3..78e9bfa9b 100644 --- a/inc/ws/Util/html5/slider/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/slider/class.ws.html5.compiler.php @@ -1179,6 +1179,8 @@ class wsHTML5Compiler { $res = array(); $lessVariables = array(); + $lessVariables['slider-display'] = $this->theme->parametres->pagesBar ? 'true' : 'false'; + $lessVariables['slider-thumb-background'] = wsHTML5::colorToCSS($this->theme->parametres->pageBarThumbBack); // General theme $cssWidth = $this->cssWidth; diff --git a/inc/ws/Util/packager/class.ws.packager.html.php b/inc/ws/Util/packager/class.ws.packager.html.php index 07648e2eb..d87cc4818 100644 --- a/inc/ws/Util/packager/class.ws.packager.html.php +++ b/inc/ws/Util/packager/class.ws.packager.html.php @@ -53,6 +53,11 @@ class wsPackagerHTML extends wsPackager { $ga = cubePage::googleAnalytics(explode(',', $this->book->parametres->googleAnalytics), true, $variables); } + $statsfooter = ''; + if ($this->book->parametres->statsCustom != '') { + $statsfooter = $this->book->parametres->statsCustom; + } + $facebook = ''; if ($this->book->parametres->facebook) { if ($this->book->parametres->facebook_title != '') { @@ -118,6 +123,7 @@ class wsPackagerHTML extends wsPackager { // Stuffs to replace in html $toReplace = array('lang' => strtolower($this->book->lang), 'ga' => $ga, + 'statsfooter' => $statsfooter, 'facebook' => $facebook, 'bgcolor' => $this->theme->parametres->loadingBackColor, 'redirectMobile' => $redirectMobile, -- 2.39.5