From 92e06412c84a40bf1f478f82da9811d1a30d26b6 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 3 Apr 2019 12:13:58 +0000 Subject: [PATCH] #2656 --- .../html5/mobilefirst/class.ws.html5.compiler.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php b/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php index 2f365f638..0e857c47f 100644 --- a/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php @@ -38,6 +38,7 @@ class wsHTML5Compiler 'tweenmax' => ['js/libs/gsap/TweenMax.min.js', 'js/libs/gsap/jquery.gsap.min.js', + 'js/libs/gsap/plugins/ScrollToPlugin.min.js', 'js/libs/threejs/Tweenmax.threejs.js',], 'hammer' => ['js/libs/hammer.min.js',], 'gal' => @@ -257,6 +258,7 @@ class wsHTML5Compiler $daoTheme = new wsDAOTheme($core->con); $this->theme = $daoTheme->getThemeOfBook($book_id, true); + $this->themeRoot = WS_THEMES . '/' . $this->theme->theme_id . '/'; $daoDoc = new wsDAODocument($core->con); @@ -290,10 +292,18 @@ class wsHTML5Compiler } $this->numerotation = explode(',', $this->book->numerotation); + if ($this->book->parametres->mobileNavigationType === 'mobilefirst') { + $this->initMobileFirst(); + } $this->initConfig(); $this->log('Defined dimensions'); } + public function initMobileFirst() + { + $this->theme->parametres->usePageEdges = false; + } + public function initConfig() { $this->config = cubeObject::merge($this->book->parametres->toStandardObject(), $this->theme->parametres->toStandardObject()); @@ -1731,6 +1741,7 @@ class wsHTML5Compiler $lessContents = ''; $lessVariables = array(); + $lessVariables['css-scale'] = $this->cssScale; $lessVariables['slider-display'] = $this->_lessBoolean($this->theme->parametres->pagesBar); $lessVariables['slider-thumb-background'] = wsHTML5::colorToCSS($this->theme->parametres->pageBarThumbBack); -- 2.39.5