]> _ Git - cubeextranet.git/commitdiff
#813
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 23 Oct 2017 14:05:16 +0000 (14:05 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 23 Oct 2017 14:05:16 +0000 (14:05 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index bcab40373f36aa619c4a1f5cf7c97be2528c85ca..34d01e0b28e9323d8f008fd2432b3f84783eaaf3 100644 (file)
@@ -54,6 +54,7 @@ class wsHTML5Compiler {
                'js/libs/fluidbook/fluidbook.privacy.js',
                'js/libs/fluidbook/fluidbook.zoom.js',
                'js/libs/fluidbook/fluidbook.menu.js',
+               'js/libs/fluidbook/fluidbook.sound.js',
                'js/libs/fluidbook/menu/fluidbook.chapters.js',
                'js/libs/fluidbook/menu/fluidbook.index.js',
                'js/libs/fluidbook/fluidbook.js',
@@ -329,6 +330,8 @@ class wsHTML5Compiler {
                $this->log('Langs written');
                $this->writeIndex();
                $this->log('Index written');
+               $this->writeSounds();
+               $this->log('Sound written');
                $this->writeTexts();
                $this->log('Texts written');
                $this->writeExtras();
@@ -426,6 +429,13 @@ class wsHTML5Compiler {
                }
        }
 
+       protected function writeSounds() {
+               if ($this->book->parametres->soundTheme == '') {
+                       return;
+               }
+               $this->vdir->copyDirectory(WS_SOUNDS . '/' . $this->book->parametres->soundTheme, 'data/sounds');
+       }
+
        protected function writeIndex() {
                global $core;
 
@@ -1223,8 +1233,8 @@ class wsHTML5Compiler {
 
                $lessVariables['page-number-color'] = wsHTML5::colorToCSS($this->theme->parametres->colorPageNumber);
                $lessVariables['display-page-number'] = $this->_lessBoolean($this->theme->parametres->displayPageNumber);
+               $lessVariables['page-transition-duration'] = $this->book->parametres->mobileTransitionDuration . 's';
 
-               $res[] = '.doublePage._2d,.doublePage._3d{' . wsHTML5::writeCSSUA('transition', 'all ' . $this->book->parametres->mobileTransitionDuration . 's ease-in-out') . '}';
 
                $res[] = '.background{' . wsHTML5::writeCSSUA('transform-origin', 'top left') . ';}';
                foreach ($this->getResolutions() as $r) {