]> _ Git - cubeextranet.git/commitdiff
#1392
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 20 Jun 2017 15:37:16 +0000 (15:37 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 20 Jun 2017 15:37:16 +0000 (15:37 +0000)
inc/ws/Metier/class.ws.book.parametres.php
inc/ws/Util/html5/slider/class.ws.html5.compiler.php

index 45c97d250a22f5805efd8b358cb6634250135168..defe081026561e2cb0fc707be45802f0c592de48 100644 (file)
@@ -121,8 +121,9 @@ class wsBookParametres extends wsParametres {
 
                $this->fields['navOrder'] = array('type' => 'textarea', 'default' => 'index, chapters, print, friend, bookmark, pdf, archives, basket, fullscreen, sound, 3d, lang, help', 'editable' => true, 'label' => __('Ordre des icônes dans la nav'), 'grade' => 3);
                $this->fields['tooltipTimer'] = array('type' => 'float', 'default' => 3, "editable" => true, 'label' => __("Temps maximum d'apparition des infos-bulles (en secondes)"));
+
                $this->forms['general'] = array('label' => __('Fonctionnalités générales'),
-                                               'fieldsnames' => array('navOrder', 'tooltipTimer', 'preload', 'pages', 'width', 'height'));
+                                               'fieldsnames' => array('navOrder', 'tooltipTimer', 'tooltipMaxWidth', 'preload', 'pages', 'width', 'height'));
                //.
                //
 
index 9dc60a5e59b9380dd6ba7b045a48a17846600dfb..4e7c70a67187a165fddf2385f263eade33c15c34 100644 (file)
@@ -1128,10 +1128,10 @@ class wsHTML5Compiler {
 
                        if ($page == 1) {
                                $this->_makeCover($docdir . 'html/t36-' . $infos['document_page'] . '.jpg');
-               }
-               $this->makeThumbSprites($thumbs);
+                       }
+                       $this->makeThumbSprites($thumbs);
                        $this->log('Copied image ' . $page);
-       }
+               }
        }
 
        public function makeThumbSprites(array $thumbs) {
@@ -1398,13 +1398,13 @@ class wsHTML5Compiler {
                $this->config->thumbHeight = $thumbh;
                $lessVariables['thumb-height'] = $thumbh . 'px';
 
-               # Tooltip
-               $res[] = '#tooltip{background-color:' . wsHTML5::colorToCSS($this->theme->parametres->tooltipBackColor) . ';color:' . wsHTML5::colorToCSS($this->theme->parametres->tooltipTextColor) . ';}';
+               #tooltip
+               $lessVariables['tooltip-background'] = wsHTML5::colorToCSS($this->theme->parametres->tooltipBackColor);
+               $lessVariables['tooltip-color'] = wsHTML5::colorToCSS($this->theme->parametres->tooltipTextColor);
 
                # ZoomPopup close button background
                $res[] = '.zoomPopupClose {background-color:' . wsHTML5::colorToCSS($this->theme->parametres->couleurB) . ';}';
 
-
                $this->_writeLess($lessVariables);
 
                $res = array_chunk($res, 3500);