]> _ Git - cubeextranet.git/commitdiff
#1762 @6
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 18 Dec 2017 17:47:00 +0000 (17:47 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 18 Dec 2017 17:47:00 +0000 (17:47 +0000)
fluidbook/icones/15/interface.svg
inc/ws/Metier/class.ws.book.parametres.php
inc/ws/Util/class.ws.links.php
inc/ws/Util/html5/burgermenu/class.ws.html5.compiler.php
inc/ws/Util/html5/centerbook/class.ws.html5.compiler.php
inc/ws/Util/html5/centerbook/class.ws.html5.links.php
inc/ws/Util/html5/master/class.ws.html5.compiler.php
inc/ws/Util/html5/socialarticles/class.ws.html5.compiler.php

index f20703857011591fc32cbce0a7ccdb7ecf667b44..207fbf6889805c60fe8145a33ca121ea7ed19ea4 100644 (file)
         <path d="m160 428c-4 0-8-2-10-4-7-6-7-14 0-21 0 0 94-96 94-186 0-90-45-137-45-137-6-6-6-14 0-21 6-6 14-6 20 0 2 2 53 56 53 158 0 102-98 203-102 207-2 2-6 4-10 4z m49 29c-78 0-143-64-143-144 0-80 63-143 143-143 8 0 14 6 14 14 0 9-6 15-14 15-64 0-115 51-115 114 0 64 51 115 115 115 63 0 115-51 115-115 0-16-5-30-11-45-4-8 0-16 9-18 8-4 16 0 18 8 8 18 12 37 12 57 0 78-63 142-143 142z m158-207c0 0-2 0-2 0-19 0-33-10-43-25-15-22-13-39-7-51 11-22 39-37 62-39 31-4 41-22 41-22 4-7 10-9 16-9 6 2 10 9 10 15 0 8-4 78-28 106-10 17-31 25-49 25z m-23-41c6 8 12 12 21 12 10 0 22-4 28-14 8-10 15-33 19-53-9 4-21 8-33 10-17 0-33 10-39 20 0 4-4 11 4 25z"/>\r
     </symbol>\r
 \r
+    <symbol id="extra-pin" viewBox="0 0 20 25">\r
+        <path d="M10,22.5c-0.1,0-0.3,0-0.4-0.1c-0.3-0.2-7.4-5.4-7.4-12.1C2.3,6,5.8,2.5,10,2.5c4.2,0,7.7,3.5,7.7,7.7\r
+               c0,6.7-7.1,11.9-7.4,12.1C10.3,22.5,10.1,22.5,10,22.5z M10,3.8c-3.5,0-6.5,3-6.5,6.5c0,5.2,5,9.6,6.5,10.8\r
+               c1.4-1.2,6.5-5.6,6.5-10.8C16.5,6.7,13.5,3.8,10,3.8z"/>\r
+        <path d="M10,15.1c-2.7,0-4.8-2.2-4.8-4.8S7.3,5.4,10,5.4c2.7,0,4.8,2.2,4.8,4.8S12.7,15.1,10,15.1z M10,6.7c-2,0-3.5,1.6-3.5,3.5\r
+               c0,2,1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5C13.5,8.3,12,6.7,10,6.7z"/>\r
+    </symbol>\r
+\r
+    <symbol id="extra-doc" viewBox="0 0 19 25">\r
+        <path d="M16.6,22.5H2.4c-0.4,0-0.6-0.3-0.6-0.6V3.1c0-0.4,0.3-0.6,0.6-0.6h8.9c0.2,0,0.3,0.1,0.5,0.2L17.1,8\r
+               c0.1,0.1,0.2,0.3,0.2,0.5v13.4C17.3,22.2,17,22.5,16.6,22.5z M3,21.2h13V8.8l-5-5H3V21.2z"/>\r
+        <path d="M16.6,9.1h-5.3c-0.4,0-0.6-0.3-0.6-0.6V3.1c0-0.4,0.3-0.6,0.6-0.6c0.4,0,0.6,0.3,0.6,0.6v4.7h4.7\r
+               c0.4,0,0.6,0.3,0.6,0.6S17,9.1,16.6,9.1z"/>\r
+        <rect x="4.2" y="11.9" class="st0" width="9.7" height="1.3"/>\r
+        <rect x="4.2" y="15" class="st0" width="9.7" height="1.3"/>\r
+        <rect x="4.2" y="18.1" class="st0" width="9.7" height="1.3"/>\r
+    </symbol>\r
+\r
+    <symbol id="extra-megaphone" viewBox="0 0 25 25">\r
+        <path d="M12,21c-0.1,0-0.2,0-0.3-0.1c-2.4-1.2-4-3.9-4-6.9V6.3c0-0.4,0.3-0.7,0.7-0.7c0.4,0,0.7,0.3,0.7,0.7V14\r
+               c0,2.4,1.3,4.6,3.2,5.6c0.4,0.2,0.5,0.6,0.3,1C12.6,20.9,12.3,21,12,21z"/>\r
+        <path d="M21.6,12.6h-0.7c-0.4,0-0.7-0.3-0.7-0.7V8.2c0-0.4,0.3-0.7,0.7-0.7h0.7c1.2,0,2.2,1,2.2,2.2v0.9\r
+               C23.8,11.7,22.9,12.6,21.6,12.6z M21.6,11.1L21.6,11.1L21.6,11.1z M21.6,8.9v2.2c0.4,0,0.7-0.2,0.7-0.5V9.7\r
+               C22.4,9.3,22,8.9,21.6,8.9z"/>\r
+        <path d="M20.9,18.2c-0.1,0-0.2,0-0.3-0.1l-0.7-0.3c-3.5-1.8-6.8-3.4-14.4-3.4H4.4c-1.9,0-3.3-1.4-3.3-3.3V9.3\r
+               c0-2.1,1.4-3.7,3.3-3.7h1.1c7.9,0,11.3-1.7,14.8-3.4l0.2-0.1c0.2-0.1,0.5-0.1,0.7,0c0.2,0.1,0.3,0.4,0.3,0.6v14.8\r
+               c0,0.3-0.1,0.5-0.3,0.6C21.2,18.2,21.1,18.2,20.9,18.2z M4.4,7.1c-1.1,0-1.8,1.1-1.8,2.2v1.8c0,1.1,0.7,1.8,1.8,1.8h1.1\r
+               c7.6,0,11.3,1.7,14.6,3.4V3.9c-3.4,1.7-7,3.2-14.6,3.2H4.4z"/>\r
+    </symbol>\r
+\r
 </svg>\r
index e6e6e3fa4d75f5a90ba61aace1a7dde811dcd33c..d535d974c928511c5fd69e01cce7ebdaba7c12f1 100644 (file)
@@ -64,6 +64,10 @@ class wsBookParametres extends wsParametres {
                        $branches[$b . ' : git'] = $b . '|git';
                        $branches[$b . ' : local'] = $b . '|local';
                }
+               $extraVisibility = [
+                       __('Navigation horizontale') => 'horizontal',
+                       __('Navigation burger') => 'burger',
+                       __('Navigations horizontale et burger') => 'both'];
 
                $this->fields['mobileLVersion'] = array('type' => 'combo', 'default' => 'stable', 'editable' => true,
                                                        'label' => __('Version logicielle'), 'grade' => 1,
@@ -137,19 +141,36 @@ class wsBookParametres extends wsParametres {
 
                $this->fields['preload'] = array('type' => 'integer', 'default' => 16, 'editable' => true, 'label' => __('Nombre de pages à précharger'), 'grade' => 3);
 
-               $this->fields['navOrder'] = array('type' => 'textarea', 'default' => 'index, chapters, search, print, friend, bookmark, pdf, archives, basket, fullscreen, sound, 3d, help, lang', 'editable' => true, 'label' => __('Ordre des icônes dans la nav'), 'grade' => 3);
+               $this->fields['navOrder'] = array('type' => 'textarea', 'default' => 'index, chapters, search, print, friend, bookmark, pdf, archives, basket, fullscreen, sound, 3d, extra, extra1, extra2, extra3, extra4, extra5, help, lang', '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->fields['navExtraImage'] = array('type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Nav extra image (desktop)'), 'fileFilter' => $imageExtraFilter);
-               $this->fields['navExtraImageMobile'] = array('type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Nav extra image (mobile, optional)'), 'fileFilter' => $imageExtraFilter);
-               $this->fields['navExtraLink'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("URL for Nav extra image"));
-               $this->fields['navExtraTooltip'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Tooltip for Nav extra image"));
 
                $this->forms['general'] = array('label' => __('Fonctionnalités générales'),
-                                               'fieldsnames' => array('navOrder', 'navExtraImage', 'navExtraImageMobile', 'navExtraLink', 'navExtraTooltip', 'tooltipTimer', 'preload', 'pages', 'width', 'height'));
+                                               'fieldsnames' => array('navOrder', 'tooltipTimer', 'preload', 'pages', 'width', 'height'));
                //.
                //
 
+               $this->forms['menu'] = array('label' => __('Menu'), 'fieldsnames' => ['afterSearchDisplayForHTML', '|']);
+               $this->fields['afterSearchDisplayForHTML'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Afficher l\'image après le moteur de recherche sur la version HTML5'), 'grade' => 1);
+               $extraNum = 5;
+               for ($i = 0; $i <= $extraNum; $i++) {
+                       if ($i > 0) {
+                               $j = $i;
+                               $this->fields['navExtraIcon' . $j] = array('type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Icône supplémentaire') . ' ' . $j, 'fileFilter' => $imageExtraFilter);
+                               $this->fields['navExtraLink' . $j] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("URL") . ' ' . $j);
+                               $this->fields['navExtraVisibility' . $j] = array('type' => 'combo', 'datas' => $extraVisibility, 'default' => 'both', 'editable' => true, 'label' => __("Visible") . ' ' . $j);
+                               $this->forms['menu']['fieldsnames'] = array_merge($this->forms['menu']['fieldsnames'], ['navExtraIcon' . $j, 'navExtraLink' . $j, 'navExtraVisibility' . $j, '|']);
+                       } else {
+                               $j = '';
+                               $this->fields['navExtraImage' . $j] = array('type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Image pour navigation'), 'fileFilter' => $imageExtraFilter);
+                               $this->fields['navExtraImageMobile' . $j] = array('type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Image pour mobile'), 'fileFilter' => $imageExtraFilter);
+                               $this->fields['navExtraLink' . $j] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("URL"));
+                               $this->fields['navExtraTooltip' . $j] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Infobulle ou label"));
+                               $this->forms['menu']['fieldsnames'] = array_merge($this->forms['menu']['fieldsnames'], ['navExtraImage' . $j, 'navExtraImageMobile' . $j, 'navExtraLink' . $j, 'navExtraTooltip' . $j, '|']);
+                       }
+               }
+
+
                $this->fields['fullscreen'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Activer le mode plein-écran'));
                $this->fields['fullscreenAuto'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Lancer la publication en mode plein écran (lorsque possible)'));
                $this->forms['fs'] = array('label' => __('Plein écran'),
index ffa7111417faeb734ee16a4fed39cbe721c81b56..45030d8763637b0e46e603d0641169fb9cb5a5f9 100644 (file)
@@ -17,6 +17,7 @@ class wsLinks {
                set_time_limit(0);
 
                $cols = array(
+                       'uid'=>__('Identifiant unique'),
                        'page' => __('Page de la publication'), 'left' => __('x'), 'top' => __('y'), 'width' => __('Largeur'), 'height' => __('Hauteur'), 'rot' => __('Rotation'),
                        'type' => __('Type'), 'to' => __('Destination'), 'target' => __('Cible'),
                        'infobulle' => __('Infobulle'), 'numerotation' => __('Numérotation'),
@@ -341,7 +342,8 @@ class wsLinks {
                                $numerotation = 'physical';
                        }
 
-                       $links[] = array('page' => $page,
+                       $links[] = array(
+                               'page' => $page,
                                         'left' => $left, 'top' => $top, 'width' => $width, 'height' => $height, 'rot' => '',
                                         'type' => $type, 'to' => $to, 'target' => $target,
                                         'infobulle' => '', 'numerotation' => $numerotation, 'display_area' => '1');
index ace9c99ca21765f202f0f3e33ef6ef7cc919b48b..6cb2892c6482ef7ac7e9c107f00d24a3c45869d7 100644 (file)
@@ -1335,7 +1335,7 @@ class wsHTML5Compiler {
                $menuColor = new CubeIT_Graphics_Color($this->theme->parametres->couleurB);
                $menuColor->setAlpha(1);
                $menuTextColor = wsHTML5::colorToCSS($this->theme->parametres->subTextColor);
-               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1080px' : $this->book->parametres->menuBreakpoint;
+               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1023px' : $this->book->parametres->menuBreakpoint;
 
                $lessVariables['menu-breakpoint'] = $menuBreakpoint;
                $lessVariables['menu-background'] = $menuColor->toCSS();
index b8fc35271d997afb23e5d5d734089c0e3bc5ff61..418add26a2bc5b0984e3e297385d570ea23f5ccc 100644 (file)
@@ -1397,7 +1397,7 @@ class wsHTML5Compiler {
                $menuColor = new CubeIT_Graphics_Color($this->theme->parametres->couleurB);
                $menuColor->setAlpha(1);
                $menuTextColor = wsHTML5::colorToCSS($this->theme->parametres->subTextColor);
-               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1080px' : $this->book->parametres->menuBreakpoint;
+               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1023px' : $this->book->parametres->menuBreakpoint;
 
                $lessVariables['menu-breakpoint'] = $menuBreakpoint;
                $lessVariables['menu-background'] = $menuColor->toCSS();
index 57650bc5cf8a974ae31c7cc3d9a9220f338d0566..e45ff4176ecff102df52356db9547a8be18e24c0 100644 (file)
@@ -28,6 +28,7 @@ class wsHTML5Link {
        public $id;
        public $rot;
        public $class;
+       public $uid;
 
        protected $_init;
 
@@ -198,7 +199,7 @@ class wsHTML5Link {
        }
 
        public function getHTMLContainer() {
-               return '<div class="' . $this->getHTMLContainerClass() . '" id="l_' . $this->id . '">' . $this->getHTMLContent() . '</div>';
+               return '<div class="' . $this->getHTMLContainerClass() . '" data-id="' . $this->uid . '" id="l_' . $this->id . '">' . $this->getHTMLContent() . '</div>';
        }
 
        public function getHTMLContainerClass() {
index 2811fec696c8a95d76481cd6eddada773ff6efac..067626e1fc1e3fe7bab7d67d705f1650a4467ec4 100644 (file)
@@ -1397,7 +1397,7 @@ class wsHTML5Compiler {
                $menuColor = new CubeIT_Graphics_Color($this->theme->parametres->couleurB);
                $menuColor->setAlpha(1);
                $menuTextColor = wsHTML5::colorToCSS($this->theme->parametres->subTextColor);
-               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1080px' : $this->book->parametres->menuBreakpoint;
+               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1023px' : $this->book->parametres->menuBreakpoint;
 
                $lessVariables['menu-breakpoint'] = $menuBreakpoint;
                $lessVariables['menu-background'] = $menuColor->toCSS();
index 0aa3ba70822228908ba0ca48e6023a5f8bdcb80a..6f02bfd48d3497cdde2c87ec283b1cb5522b8fd4 100644 (file)
@@ -1385,7 +1385,7 @@ class wsHTML5Compiler {
                $menuColor = new CubeIT_Graphics_Color($this->theme->parametres->couleurB);
                $menuColor->setAlpha(1);
                $menuTextColor = wsHTML5::colorToCSS($this->theme->parametres->subTextColor);
-               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1080px' : $this->book->parametres->menuBreakpoint;
+               $menuBreakpoint = empty($this->book->parametres->menuBreakpoint) ? '1023px' : $this->book->parametres->menuBreakpoint;
 
                $lessVariables['menu-breakpoint'] = $menuBreakpoint;
                $lessVariables['menu-background'] = $menuColor->toCSS();